Examples/Resources/IntuneAppConfigurationDevicePolicy/1-Create.ps1
<#
This example creates a new App Configuration Device Policy. #> Configuration Example { param( [Parameter()] [System.String] $ApplicationId, [Parameter()] [System.String] $TenantId, [Parameter()] [System.String] $CertificateThumbprint ) Import-DscResource -ModuleName Microsoft365DSC node localhost { IntuneAppConfigurationDevicePolicy "IntuneAppConfigurationDevicePolicy-Example" { Assignments = @(); Description = ""; DisplayName = "Example"; Ensure = "Present"; Id = "0000000-0000-0000-0000-000000000000"; ConnectedAppsEnabled = $true; PackageId = "app:com.microsoft.office.outlook" PayloadJson = "Base64 encoded settings" PermissionActions = @() ProfileApplicability = "default" RoleScopeTagIds = @("0"); TargetedMobileApps = @("<Mobile App Id>"); ApplicationId = $ApplicationId; TenantId = $TenantId; CertificateThumbprint = $CertificateThumbprint; } } } |