Examples/Resources/AADAgreement/3-Remove.ps1
<#
This example removes an existing Azure AD Terms of Use Agreement. #> Configuration Example { param( [Parameter()] [System.String] $ApplicationId, [Parameter()] [System.String] $TenantId, [Parameter()] [System.String] $CertificateThumbprint ) Import-DscResource -ModuleName Microsoft365DSC node localhost { AADAgreement 'CompanyTermsOfUse' { DisplayName = "Company Terms of Use" Ensure = "Absent" ApplicationId = $ApplicationId TenantId = $TenantId CertificateThumbprint = $CertificateThumbprint } } } |