DscResources/AzureAD/AzureAD.schema.psm1
# (2024-11-08 01:25:22) Generated using Microsoft365DSC v1.24.1106.1 Configuration 'AzureAD' { param ( [Parameter(Mandatory = $true)] [System.String] $ApplicationId, [Parameter(Mandatory = $true)] [System.String] $TenantId, [Parameter(Mandatory = $true)] [System.String] $CertificateThumbprint ) Import-DscResource -ModuleName Microsoft365DSC foreach ($AccessReviewDefinition in $ConfigurationData.NonNodeData.AzureAD.AccessReviewDefinitions) { $resourceTitle = 'AADAccessReviewDefinition-{0}' -f $AccessReviewDefinition.Id $parameters = $AccessReviewDefinition $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('ScopeValue')) { $parameters.ScopeValue = $parameters.ScopeValue | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('PrincipalScopes')) { $_.PrincipalScopes = $_.PrincipalScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ResourceScopes')) { $_.ResourceScopes = $_.ResourceScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphaccessReviewScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('SettingsValue')) { $parameters.SettingsValue = $parameters.SettingsValue | ForEach-Object { if ($_.ContainsKey('ApplyActions')) { $_.ApplyActions = $_.ApplyActions | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewApplyAction' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('RecommendationInsightSettings')) { $_.RecommendationInsightSettings = $_.RecommendationInsightSettings | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewRecommendationInsightSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Recurrence')) { $_.Recurrence = $_.Recurrence | ForEach-Object { if ($_.ContainsKey('Pattern')) { $_.Pattern = $_.Pattern | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphRecurrencePattern' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Range')) { $_.Range = $_.Range | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphRecurrenceRange' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphPatternedRecurrence' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphaccessReviewScheduleSettings' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('StageSettings')) { $parameters.StageSettings = $parameters.StageSettings | ForEach-Object { if ($_.ContainsKey('RecommendationInsightSettings')) { $_.RecommendationInsightSettings = $_.RecommendationInsightSettings | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAccessReviewRecommendationInsightSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphaccessReviewStageSettings' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADAccessReviewDefinition' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.AzureAD.ContainsKey('AccessReviewPolicy')) { $resourceTitle = 'AccessReviewPolicyDefaults' $parameters = $ConfigurationData.NonNodeData.AzureAD.AccessReviewPolicy $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADAccessReviewPolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($ActivityBasedTimeoutPolicy in $ConfigurationData.NonNodeData.AzureAD.ActivityBasedTimeoutPolicies) { $resourceTitle = 'AADActivityBasedTimeoutPolicy-{0}' -f $ActivityBasedTimeoutPolicy.DisplayName $parameters = $ActivityBasedTimeoutPolicy $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADActivityBasedTimeoutPolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.AzureAD.ContainsKey('AdminConsentRequestPolicy')) { $resourceTitle = 'AdminConsentRequestPolicyDefaults' $parameters = $ConfigurationData.NonNodeData.AzureAD.AdminConsentRequestPolicy $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Reviewers')) { $parameters.Reviewers = $parameters.Reviewers | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAdminConsentRequestPolicyReviewer' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADAdminConsentRequestPolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AdministrativeUnit in $ConfigurationData.NonNodeData.AzureAD.AdministrativeUnits) { $resourceTitle = 'AADAdministrativeUnit-{0}' -f $AdministrativeUnit.DisplayName $parameters = $AdministrativeUnit $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Members')) { $parameters.Members = $parameters.Members | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphMember' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('ScopedRoleMembers')) { $parameters.ScopedRoleMembers = $parameters.ScopedRoleMembers | ForEach-Object { if ($_.ContainsKey('RoleMemberInfo')) { $_.RoleMemberInfo = $_.RoleMemberInfo | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphMember' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphScopedRoleMembership' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADAdministrativeUnit' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($Application in $ConfigurationData.NonNodeData.AzureAD.Applications) { $resourceTitle = 'AADApplication-{0}' -f $Application.DisplayName $parameters = $Application $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('OptionalClaims')) { $parameters.OptionalClaims = $parameters.OptionalClaims | ForEach-Object { if ($_.ContainsKey('AccessToken')) { $_.AccessToken = $_.AccessToken | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphOptionalClaim' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('IdToken')) { $_.IdToken = $_.IdToken | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphOptionalClaim' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Saml2Token')) { $_.Saml2Token = $_.Saml2Token | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphOptionalClaim' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphoptionalClaims' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Api')) { $parameters.Api = $parameters.Api | ForEach-Object { if ($_.ContainsKey('PreAuthorizedApplications')) { $_.PreAuthorizedApplications = $_.PreAuthorizedApplications | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphPreAuthorizedApplication' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphapiApplication' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('AuthenticationBehaviors')) { $parameters.AuthenticationBehaviors = $parameters.AuthenticationBehaviors | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphauthenticationBehaviors' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('PasswordCredentials')) { $parameters.PasswordCredentials = $parameters.PasswordCredentials | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphpasswordCredential' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('KeyCredentials')) { $parameters.KeyCredentials = $parameters.KeyCredentials | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphkeyCredential' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('AppRoles')) { $parameters.AppRoles = $parameters.AppRoles | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphappRole' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('OnPremisesPublishing')) { $parameters.OnPremisesPublishing = $parameters.OnPremisesPublishing | ForEach-Object { if ($_.ContainsKey('onPremisesApplicationSegments')) { $_.onPremisesApplicationSegments = $_.onPremisesApplicationSegments | ForEach-Object { if ($_.ContainsKey('corsConfigurations')) { $_.corsConfigurations = $_.corsConfigurations | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADApplicationOnPremisesPublishingSegmentCORS' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADApplicationOnPremisesPublishingSegment' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('singleSignOnSettings')) { $_.singleSignOnSettings = $_.singleSignOnSettings | ForEach-Object { if ($_.ContainsKey('kerberosSignOnSettings')) { $_.kerberosSignOnSettings = $_.kerberosSignOnSettings | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADApplicationOnPremisesPublishingSingleSignOnSettingKerberos' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADApplicationOnPremisesPublishingSingleSignOnSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADApplicationOnPremisesPublishing' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Permissions')) { $parameters.Permissions = $parameters.Permissions | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADApplicationPermission' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADApplication' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AttributeSet in $ConfigurationData.NonNodeData.AzureAD.AttributeSets) { $resourceTitle = 'AADAttributeSet-{0}' -f $AttributeSet.Id $parameters = $AttributeSet $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADAttributeSet' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AuthenticationContextClassReference in $ConfigurationData.NonNodeData.AzureAD.AuthenticationContextClassReferences) { $resourceTitle = 'AADAuthenticationContextClassReference-{0}' -f $AuthenticationContextClassReference.Id $parameters = $AuthenticationContextClassReference $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADAuthenticationContextClassReference' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.AzureAD.ContainsKey('AuthenticationFlowPolicy')) { $resourceTitle = 'AuthenticationFlowPolicyDefaults' $parameters = $ConfigurationData.NonNodeData.AzureAD.AuthenticationFlowPolicy $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADAuthenticationFlowPolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AuthenticationMethodPolicy in $ConfigurationData.NonNodeData.AzureAD.AuthenticationMethodPolicies) { $resourceTitle = 'AADAuthenticationMethodPolicy-{0}' -f $AuthenticationMethodPolicy.DisplayName $parameters = $AuthenticationMethodPolicy $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('RegistrationEnforcement')) { $parameters.RegistrationEnforcement = $parameters.RegistrationEnforcement | ForEach-Object { if ($_.ContainsKey('AuthenticationMethodsRegistrationCampaign')) { $_.AuthenticationMethodsRegistrationCampaign = $_.AuthenticationMethodsRegistrationCampaign | ForEach-Object { if ($_.ContainsKey('ExcludeTargets')) { $_.ExcludeTargets = $_.ExcludeTargets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphExcludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('IncludeTargets')) { $_.IncludeTargets = $_.IncludeTargets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAuthenticationMethodsRegistrationCampaignIncludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAuthenticationMethodsRegistrationCampaign' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphregistrationEnforcement' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('ReportSuspiciousActivitySettings')) { $parameters.ReportSuspiciousActivitySettings = $parameters.ReportSuspiciousActivitySettings | ForEach-Object { if ($_.ContainsKey('IncludeTarget')) { $_.IncludeTarget = $_.IncludeTarget | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyIncludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphreportSuspiciousActivitySettings' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('SystemCredentialPreferences')) { $parameters.SystemCredentialPreferences = $parameters.SystemCredentialPreferences | ForEach-Object { if ($_.ContainsKey('ExcludeTargets')) { $_.ExcludeTargets = $_.ExcludeTargets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyExcludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('IncludeTargets')) { $_.IncludeTargets = $_.IncludeTargets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyIncludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphsystemCredentialPreferences' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADAuthenticationMethodPolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AuthenticationMethodPolicyAuthenticator in $ConfigurationData.NonNodeData.AzureAD.AuthenticationMethodPoliciesAuthenticator) { $resourceTitle = 'AADAuthenticationMethodPolicyAuthenticator-{0}' -f $AuthenticationMethodPolicyAuthenticator.Id $parameters = $AuthenticationMethodPolicyAuthenticator $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('FeatureSettings')) { $parameters.FeatureSettings = $parameters.FeatureSettings | ForEach-Object { if ($_.ContainsKey('CompanionAppAllowedState')) { $_.CompanionAppAllowedState = $_.CompanionAppAllowedState | ForEach-Object { if ($_.ContainsKey('ExcludeTarget')) { $_.ExcludeTarget = $_.ExcludeTarget | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyAuthenticatorFeatureTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('IncludeTarget')) { $_.IncludeTarget = $_.IncludeTarget | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyAuthenticatorFeatureTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAuthenticationMethodFeatureConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('DisplayAppInformationRequiredState')) { $_.DisplayAppInformationRequiredState = $_.DisplayAppInformationRequiredState | ForEach-Object { if ($_.ContainsKey('ExcludeTarget')) { $_.ExcludeTarget = $_.ExcludeTarget | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyAuthenticatorFeatureTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('IncludeTarget')) { $_.IncludeTarget = $_.IncludeTarget | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyAuthenticatorFeatureTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAuthenticationMethodFeatureConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('DisplayLocationInformationRequiredState')) { $_.DisplayLocationInformationRequiredState = $_.DisplayLocationInformationRequiredState | ForEach-Object { if ($_.ContainsKey('ExcludeTarget')) { $_.ExcludeTarget = $_.ExcludeTarget | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyAuthenticatorFeatureTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('IncludeTarget')) { $_.IncludeTarget = $_.IncludeTarget | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyAuthenticatorFeatureTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAuthenticationMethodFeatureConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('NumberMatchingRequiredState')) { $_.NumberMatchingRequiredState = $_.NumberMatchingRequiredState | ForEach-Object { if ($_.ContainsKey('ExcludeTarget')) { $_.ExcludeTarget = $_.ExcludeTarget | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyAuthenticatorFeatureTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('IncludeTarget')) { $_.IncludeTarget = $_.IncludeTarget | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyAuthenticatorFeatureTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphAuthenticationMethodFeatureConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphMicrosoftAuthenticatorFeatureSettings' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('ExcludeTargets')) { $parameters.ExcludeTargets = $parameters.ExcludeTargets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyAuthenticatorExcludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('IncludeTargets')) { $parameters.IncludeTargets = $parameters.IncludeTargets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyAuthenticatorIncludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADAuthenticationMethodPolicyAuthenticator' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AuthenticationMethodPolicyEmail in $ConfigurationData.NonNodeData.AzureAD.AuthenticationMethodPoliciesEmail) { $resourceTitle = 'AADAuthenticationMethodPolicyEmail-{0}' -f $AuthenticationMethodPolicyEmail.Id $parameters = $AuthenticationMethodPolicyEmail $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('ExcludeTargets')) { $parameters.ExcludeTargets = $parameters.ExcludeTargets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyEmailExcludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('IncludeTargets')) { $parameters.IncludeTargets = $parameters.IncludeTargets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyEmailIncludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADAuthenticationMethodPolicyEmail' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AuthenticationMethodPolicyExternal in $ConfigurationData.NonNodeData.AzureAD.AuthenticationMethodPoliciesExternal) { $resourceTitle = 'AADAuthenticationMethodPolicyExternal-{0}' -f $AuthenticationMethodPolicyExternal.DisplayName $parameters = $AuthenticationMethodPolicyExternal $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('ExcludeTargets')) { $parameters.ExcludeTargets = $parameters.ExcludeTargets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyExternalExcludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('IncludeTargets')) { $parameters.IncludeTargets = $parameters.IncludeTargets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyExternalIncludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('OpenIdConnectSetting')) { $parameters.OpenIdConnectSetting = $parameters.OpenIdConnectSetting | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyExternalOpenIdConnectSetting' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADAuthenticationMethodPolicyExternal' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AuthenticationMethodPolicyFido2 in $ConfigurationData.NonNodeData.AzureAD.AuthenticationMethodPoliciesFido2) { $resourceTitle = 'AADAuthenticationMethodPolicyFido2-{0}' -f $AuthenticationMethodPolicyFido2.Id $parameters = $AuthenticationMethodPolicyFido2 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('KeyRestrictions')) { $parameters.KeyRestrictions = $parameters.KeyRestrictions | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphfido2KeyRestrictions' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('ExcludeTargets')) { $parameters.ExcludeTargets = $parameters.ExcludeTargets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyFido2ExcludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('IncludeTargets')) { $parameters.IncludeTargets = $parameters.IncludeTargets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyFido2IncludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADAuthenticationMethodPolicyFido2' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AuthenticationMethodPolicyHardware in $ConfigurationData.NonNodeData.AzureAD.AuthenticationMethodPoliciesHardware) { $resourceTitle = 'AADAuthenticationMethodPolicyHardware-{0}' -f $AuthenticationMethodPolicyHardware.Id $parameters = $AuthenticationMethodPolicyHardware $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('ExcludeTargets')) { $parameters.ExcludeTargets = $parameters.ExcludeTargets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyHardwareExcludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('IncludeTargets')) { $parameters.IncludeTargets = $parameters.IncludeTargets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyHardwareIncludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADAuthenticationMethodPolicyHardware' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AuthenticationMethodPolicySms in $ConfigurationData.NonNodeData.AzureAD.AuthenticationMethodPoliciesSms) { $resourceTitle = 'AADAuthenticationMethodPolicySms-{0}' -f $AuthenticationMethodPolicySms.Id $parameters = $AuthenticationMethodPolicySms $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('ExcludeTargets')) { $parameters.ExcludeTargets = $parameters.ExcludeTargets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicySmsExcludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('IncludeTargets')) { $parameters.IncludeTargets = $parameters.IncludeTargets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicySmsIncludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADAuthenticationMethodPolicySms' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AuthenticationMethodPolicySoftware in $ConfigurationData.NonNodeData.AzureAD.AuthenticationMethodPoliciesSoftware) { $resourceTitle = 'AADAuthenticationMethodPolicySoftware-{0}' -f $AuthenticationMethodPolicySoftware.Id $parameters = $AuthenticationMethodPolicySoftware $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('ExcludeTargets')) { $parameters.ExcludeTargets = $parameters.ExcludeTargets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicySoftwareExcludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('IncludeTargets')) { $parameters.IncludeTargets = $parameters.IncludeTargets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicySoftwareIncludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADAuthenticationMethodPolicySoftware' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AuthenticationMethodPolicyTemporary in $ConfigurationData.NonNodeData.AzureAD.AuthenticationMethodPolicyTemporaries) { $resourceTitle = 'AADAuthenticationMethodPolicyTemporary-{0}' -f $AuthenticationMethodPolicyTemporary.Id $parameters = $AuthenticationMethodPolicyTemporary $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('ExcludeTargets')) { $parameters.ExcludeTargets = $parameters.ExcludeTargets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyTemporaryExcludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('IncludeTargets')) { $parameters.IncludeTargets = $parameters.IncludeTargets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyTemporaryIncludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADAuthenticationMethodPolicyTemporary' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AuthenticationMethodPolicyVoice in $ConfigurationData.NonNodeData.AzureAD.AuthenticationMethodPoliciesVoice) { $resourceTitle = 'AADAuthenticationMethodPolicyVoice-{0}' -f $AuthenticationMethodPolicyVoice.Id $parameters = $AuthenticationMethodPolicyVoice $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('ExcludeTargets')) { $parameters.ExcludeTargets = $parameters.ExcludeTargets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyVoiceExcludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('IncludeTargets')) { $parameters.IncludeTargets = $parameters.IncludeTargets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyVoiceIncludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADAuthenticationMethodPolicyVoice' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AuthenticationMethodPolicyX509 in $ConfigurationData.NonNodeData.AzureAD.AuthenticationMethodPoliciesX509) { $resourceTitle = 'AADAuthenticationMethodPolicyX509-{0}' -f $AuthenticationMethodPolicyX509.Id $parameters = $AuthenticationMethodPolicyX509 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('AuthenticationModeConfiguration')) { $parameters.AuthenticationModeConfiguration = $parameters.AuthenticationModeConfiguration | ForEach-Object { if ($_.ContainsKey('Rules')) { $_.Rules = $_.Rules | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphX509CertificateRule' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphx509CertificateAuthenticationModeConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('CertificateUserBindings')) { $parameters.CertificateUserBindings = $parameters.CertificateUserBindings | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphx509CertificateUserBinding' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('ExcludeTargets')) { $parameters.ExcludeTargets = $parameters.ExcludeTargets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyX509ExcludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('IncludeTargets')) { $parameters.IncludeTargets = $parameters.IncludeTargets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADAuthenticationMethodPolicyX509IncludeTarget' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADAuthenticationMethodPolicyX509' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AuthenticationRequirement in $ConfigurationData.NonNodeData.AzureAD.AuthenticationRequirements) { $resourceTitle = 'AADAuthenticationRequirement-{0}' -f $AuthenticationRequirement.UserPrincipalName $parameters = $AuthenticationRequirement $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADAuthenticationRequirement' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AuthenticationStrengthPolicy in $ConfigurationData.NonNodeData.AzureAD.AuthenticationStrengthPolicies) { $resourceTitle = 'AADAuthenticationStrengthPolicy-{0}' -f $AuthenticationStrengthPolicy.DisplayName $parameters = $AuthenticationStrengthPolicy $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADAuthenticationStrengthPolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.AzureAD.ContainsKey('AuthorizationPolicy')) { $resourceTitle = 'AuthorizationPolicyDefaults' $parameters = $ConfigurationData.NonNodeData.AzureAD.AuthorizationPolicy $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADAuthorizationPolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($ClaimsMappingPolicy in $ConfigurationData.NonNodeData.AzureAD.ClaimsMappingPolicies) { $resourceTitle = 'AADClaimsMappingPolicy-{0}' -f $ClaimsMappingPolicy.DisplayName $parameters = $ClaimsMappingPolicy $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Definition')) { $parameters.Definition = $parameters.Definition | ForEach-Object { if ($_.ContainsKey('ClaimsMappingPolicy')) { $_.ClaimsMappingPolicy = $_.ClaimsMappingPolicy | ForEach-Object { if ($_.ContainsKey('ClaimsSchema')) { $_.ClaimsSchema = $_.ClaimsSchema | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADClaimsMappingPolicyDefinitionMappingPolicyClaimsSchema' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ClaimsTransformation')) { $_.ClaimsTransformation = $_.ClaimsTransformation | ForEach-Object { if ($_.ContainsKey('InputParameters')) { $_.InputParameters = $_.InputParameters | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADClaimsMappingPolicyDefinitionMappingPolicyClaimsTransformationInputParameter' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('OutputClaims')) { $_.OutputClaims = $_.OutputClaims | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADClaimsMappingPolicyDefinitionMappingPolicyClaimsTransformationOutputClaims' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADClaimsMappingPolicyDefinitionMappingPolicyClaimsTransformation' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADClaimsMappingPolicyDefinitionMappingPolicy' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADClaimsMappingPolicyDefinition' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADClaimsMappingPolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($ConditionalAccessPolicy in $ConfigurationData.NonNodeData.AzureAD.ConditionalAccessPolicies) { $resourceTitle = 'AADConditionalAccessPolicy-{0}' -f $ConditionalAccessPolicy.DisplayName $parameters = $ConditionalAccessPolicy $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADConditionalAccessPolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($ConnectorGroupApplicationProxy in $ConfigurationData.NonNodeData.AzureAD.ConnectorGroupApplicationProxies) { $resourceTitle = 'AADConnectorGroupApplicationProxy-{0}' -f $ConnectorGroupApplicationProxy.Name $parameters = $ConnectorGroupApplicationProxy $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADConnectorGroupApplicationProxy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.AzureAD.ContainsKey('CrossTenantAccessPolicy')) { $resourceTitle = 'CrossTenantAccessPolicyDefaults' $parameters = $ConfigurationData.NonNodeData.AzureAD.CrossTenantAccessPolicy $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADCrossTenantAccessPolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.AzureAD.ContainsKey('CrossTenantAccessPolicyConfigurationDefault')) { $resourceTitle = 'CrossTenantAccessPolicyConfigurationDefaultDefaults' $parameters = $ConfigurationData.NonNodeData.AzureAD.CrossTenantAccessPolicyConfigurationDefault $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('B2BCollaborationInbound')) { $parameters.B2BCollaborationInbound = $parameters.B2BCollaborationInbound | ForEach-Object { if ($_.ContainsKey('Applications')) { $_.Applications = $_.Applications | ForEach-Object { if ($_.ContainsKey('Targets')) { $_.Targets = $_.Targets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTargetConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UsersAndGroups')) { $_.UsersAndGroups = $_.UsersAndGroups | ForEach-Object { if ($_.ContainsKey('Targets')) { $_.Targets = $_.Targets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTargetConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyB2BSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('B2BCollaborationOutbound')) { $parameters.B2BCollaborationOutbound = $parameters.B2BCollaborationOutbound | ForEach-Object { if ($_.ContainsKey('Applications')) { $_.Applications = $_.Applications | ForEach-Object { if ($_.ContainsKey('Targets')) { $_.Targets = $_.Targets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTargetConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UsersAndGroups')) { $_.UsersAndGroups = $_.UsersAndGroups | ForEach-Object { if ($_.ContainsKey('Targets')) { $_.Targets = $_.Targets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTargetConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyB2BSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('B2BDirectConnectInbound')) { $parameters.B2BDirectConnectInbound = $parameters.B2BDirectConnectInbound | ForEach-Object { if ($_.ContainsKey('Applications')) { $_.Applications = $_.Applications | ForEach-Object { if ($_.ContainsKey('Targets')) { $_.Targets = $_.Targets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTargetConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UsersAndGroups')) { $_.UsersAndGroups = $_.UsersAndGroups | ForEach-Object { if ($_.ContainsKey('Targets')) { $_.Targets = $_.Targets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTargetConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyB2BSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('B2BDirectConnectOutbound')) { $parameters.B2BDirectConnectOutbound = $parameters.B2BDirectConnectOutbound | ForEach-Object { if ($_.ContainsKey('Applications')) { $_.Applications = $_.Applications | ForEach-Object { if ($_.ContainsKey('Targets')) { $_.Targets = $_.Targets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTargetConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UsersAndGroups')) { $_.UsersAndGroups = $_.UsersAndGroups | ForEach-Object { if ($_.ContainsKey('Targets')) { $_.Targets = $_.Targets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTargetConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyB2BSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('InboundTrust')) { $parameters.InboundTrust = $parameters.InboundTrust | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyInboundTrust' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADCrossTenantAccessPolicyConfigurationDefault' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($CrossTenantAccessPolicyConfigurationPartner in $ConfigurationData.NonNodeData.AzureAD.CrossTenantAccessPoliciesConfigurationPartner) { $resourceTitle = 'AADCrossTenantAccessPolicyConfigurationPartner-{0}' -f $CrossTenantAccessPolicyConfigurationPartner.PartnerTenantId $parameters = $CrossTenantAccessPolicyConfigurationPartner $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('B2BCollaborationInbound')) { $parameters.B2BCollaborationInbound = $parameters.B2BCollaborationInbound | ForEach-Object { if ($_.ContainsKey('Applications')) { $_.Applications = $_.Applications | ForEach-Object { if ($_.ContainsKey('Targets')) { $_.Targets = $_.Targets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTargetConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UsersAndGroups')) { $_.UsersAndGroups = $_.UsersAndGroups | ForEach-Object { if ($_.ContainsKey('Targets')) { $_.Targets = $_.Targets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTargetConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyB2BSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('B2BCollaborationOutbound')) { $parameters.B2BCollaborationOutbound = $parameters.B2BCollaborationOutbound | ForEach-Object { if ($_.ContainsKey('Applications')) { $_.Applications = $_.Applications | ForEach-Object { if ($_.ContainsKey('Targets')) { $_.Targets = $_.Targets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTargetConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UsersAndGroups')) { $_.UsersAndGroups = $_.UsersAndGroups | ForEach-Object { if ($_.ContainsKey('Targets')) { $_.Targets = $_.Targets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTargetConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyB2BSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('B2BDirectConnectInbound')) { $parameters.B2BDirectConnectInbound = $parameters.B2BDirectConnectInbound | ForEach-Object { if ($_.ContainsKey('Applications')) { $_.Applications = $_.Applications | ForEach-Object { if ($_.ContainsKey('Targets')) { $_.Targets = $_.Targets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTargetConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UsersAndGroups')) { $_.UsersAndGroups = $_.UsersAndGroups | ForEach-Object { if ($_.ContainsKey('Targets')) { $_.Targets = $_.Targets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTargetConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyB2BSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('B2BDirectConnectOutbound')) { $parameters.B2BDirectConnectOutbound = $parameters.B2BDirectConnectOutbound | ForEach-Object { if ($_.ContainsKey('Applications')) { $_.Applications = $_.Applications | ForEach-Object { if ($_.ContainsKey('Targets')) { $_.Targets = $_.Targets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTargetConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UsersAndGroups')) { $_.UsersAndGroups = $_.UsersAndGroups | ForEach-Object { if ($_.ContainsKey('Targets')) { $_.Targets = $_.Targets | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTarget' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyTargetConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyB2BSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('AutomaticUserConsentSettings')) { $parameters.AutomaticUserConsentSettings = $parameters.AutomaticUserConsentSettings | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyAutomaticUserConsentSettings' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('InboundTrust')) { $parameters.InboundTrust = $parameters.InboundTrust | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCrossTenantAccessPolicyInboundTrust' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADCrossTenantAccessPolicyConfigurationPartner' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($CustomAuthenticationExtension in $ConfigurationData.NonNodeData.AzureAD.CustomAuthenticationExtensions) { $resourceTitle = 'AADCustomAuthenticationExtension-{0}' -f $CustomAuthenticationExtension.DisplayName $parameters = $CustomAuthenticationExtension $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('EndpointConfiguration')) { $parameters.EndpointConfiguration = $parameters.EndpointConfiguration | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCustomAuthenticationExtensionEndPointConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('ClaimsForTokenConfiguration')) { $parameters.ClaimsForTokenConfiguration = $parameters.ClaimsForTokenConfiguration | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADCustomAuthenticationExtensionClaimForTokenConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADCustomAuthenticationExtension' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($CustomSecurityAttributeDefinition in $ConfigurationData.NonNodeData.AzureAD.CustomSecurityAttributeDefinitions) { $resourceTitle = 'AADCustomSecurityAttributeDefinition-{0}-{1}' -f $CustomSecurityAttributeDefinition.Name,$CustomSecurityAttributeDefinition.AttributeSet $parameters = $CustomSecurityAttributeDefinition $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADCustomSecurityAttributeDefinition' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.AzureAD.ContainsKey('DeviceRegistrationPolicy')) { $resourceTitle = 'DeviceRegistrationPolicyDefaults' $parameters = $ConfigurationData.NonNodeData.AzureAD.DeviceRegistrationPolicy $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADDeviceRegistrationPolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($Domain in $ConfigurationData.NonNodeData.AzureAD.Domains) { $resourceTitle = 'AADDomain-{0}' -f $Domain.Id $parameters = $Domain $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADDomain' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.AzureAD.ContainsKey('EnrichedAuditLogs')) { $resourceTitle = 'EnrichedAuditLogsDefaults' $parameters = $ConfigurationData.NonNodeData.AzureAD.EnrichedAuditLogs $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADEnrichedAuditLogs' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($EntitlementManagementAccessPackage in $ConfigurationData.NonNodeData.AzureAD.EntitlementManagementAccessPackages) { $resourceTitle = 'AADEntitlementManagementAccessPackage-{0}' -f $EntitlementManagementAccessPackage.DisplayName $parameters = $EntitlementManagementAccessPackage $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('AccessPackageResourceRoleScopes')) { $parameters.AccessPackageResourceRoleScopes = $parameters.AccessPackageResourceRoleScopes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AccessPackageResourceRoleScope' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADEntitlementManagementAccessPackage' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($EntitlementManagementAccessPackageAssignmentPolicy in $ConfigurationData.NonNodeData.AzureAD.EntitlementManagementAccessPackageAssignmentPolicies) { $resourceTitle = 'AADEntitlementManagementAccessPackageAssignmentPolicy-{0}' -f $EntitlementManagementAccessPackageAssignmentPolicy.DisplayName $parameters = $EntitlementManagementAccessPackageAssignmentPolicy $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('AccessReviewSettings')) { $parameters.AccessReviewSettings = $parameters.AccessReviewSettings | ForEach-Object { if ($_.ContainsKey('Reviewers')) { $_.Reviewers = $_.Reviewers | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphuserset' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphassignmentreviewsettings' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Questions')) { $parameters.Questions = $parameters.Questions | ForEach-Object { if ($_.ContainsKey('QuestionText')) { $_.QuestionText = $_.QuestionText | ForEach-Object { if ($_.ContainsKey('LocalizedTexts')) { $_.LocalizedTexts = $_.LocalizedTexts | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphaccessPackageLocalizedText' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphaccessPackageLocalizedContent' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Choices')) { $_.Choices = $_.Choices | ForEach-Object { if ($_.ContainsKey('displayValue')) { $_.displayValue = $_.displayValue | ForEach-Object { if ($_.ContainsKey('LocalizedTexts')) { $_.LocalizedTexts = $_.LocalizedTexts | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphaccessPackageLocalizedText' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphaccessPackageLocalizedContent' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphaccessPackageAnswerChoice' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphaccesspackagequestion' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('RequestApprovalSettings')) { $parameters.RequestApprovalSettings = $parameters.RequestApprovalSettings | ForEach-Object { if ($_.ContainsKey('ApprovalStages')) { $_.ApprovalStages = $_.ApprovalStages | ForEach-Object { if ($_.ContainsKey('PrimaryApprovers')) { $_.PrimaryApprovers = $_.PrimaryApprovers | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphuserset' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('EscalationApprovers')) { $_.EscalationApprovers = $_.EscalationApprovers | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphuserset' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphapprovalstage1' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphapprovalsettings' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('RequestorSettings')) { $parameters.RequestorSettings = $parameters.RequestorSettings | ForEach-Object { if ($_.ContainsKey('AllowedRequestors')) { $_.AllowedRequestors = $_.AllowedRequestors | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphuserset' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphrequestorsettings' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('CustomExtensionHandlers')) { $parameters.CustomExtensionHandlers = $parameters.CustomExtensionHandlers | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphcustomextensionhandler' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADEntitlementManagementAccessPackageAssignmentPolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($EntitlementManagementAccessPackageCatalog in $ConfigurationData.NonNodeData.AzureAD.EntitlementManagementAccessPackageCatalogs) { $resourceTitle = 'AADEntitlementManagementAccessPackageCatalog-{0}' -f $EntitlementManagementAccessPackageCatalog.DisplayName $parameters = $EntitlementManagementAccessPackageCatalog $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADEntitlementManagementAccessPackageCatalog' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($EntitlementManagementAccessPackageCatalogResource in $ConfigurationData.NonNodeData.AzureAD.EntitlementManagementAccessPackageCatalogResources) { $resourceTitle = 'AADEntitlementManagementAccessPackageCatalogResource-{0}' -f $EntitlementManagementAccessPackageCatalogResource.DisplayName $parameters = $EntitlementManagementAccessPackageCatalogResource $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Attributes')) { $parameters.Attributes = $parameters.Attributes | ForEach-Object { if ($_.ContainsKey('AttributeDestination')) { $_.AttributeDestination = $_.AttributeDestination | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphaccesspackageresourceattributedestination' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('AttributeSource')) { $_.AttributeSource = $_.AttributeSource | ForEach-Object { if ($_.ContainsKey('Question')) { $_.Question = $_.Question | ForEach-Object { if ($_.ContainsKey('QuestionText')) { $_.QuestionText = $_.QuestionText | ForEach-Object { if ($_.ContainsKey('LocalizedTexts')) { $_.LocalizedTexts = $_.LocalizedTexts | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphaccessPackageLocalizedText' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphaccessPackageLocalizedContent' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Choices')) { $_.Choices = $_.Choices | ForEach-Object { if ($_.ContainsKey('displayValue')) { $_.displayValue = $_.displayValue | ForEach-Object { if ($_.ContainsKey('LocalizedTexts')) { $_.LocalizedTexts = $_.LocalizedTexts | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphaccessPackageLocalizedText' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphaccessPackageLocalizedContent' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphaccessPackageAnswerChoice' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphaccessPackageResourceAttributeQuestion' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphaccesspackageresourceattributesource' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphaccesspackageresourceattribute' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADEntitlementManagementAccessPackageCatalogResource' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($EntitlementManagementConnectedOrganization in $ConfigurationData.NonNodeData.AzureAD.EntitlementManagementConnectedOrganizations) { $resourceTitle = 'AADEntitlementManagementConnectedOrganization-{0}' -f $EntitlementManagementConnectedOrganization.DisplayName $parameters = $EntitlementManagementConnectedOrganization $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('IdentitySources')) { $parameters.IdentitySources = $parameters.IdentitySources | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADEntitlementManagementConnectedOrganizationIdentitySource' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADEntitlementManagementConnectedOrganization' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($EntitlementManagementRoleAssignment in $ConfigurationData.NonNodeData.AzureAD.EntitlementManagementRoleAssignments) { $resourceTitle = 'AADEntitlementManagementRoleAssignment-{0}-{1}' -f $EntitlementManagementRoleAssignment.Principal,$EntitlementManagementRoleAssignment.RoleDefinition $parameters = $EntitlementManagementRoleAssignment $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADEntitlementManagementRoleAssignment' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.AzureAD.ContainsKey('EntitlementManagementSettings')) { $resourceTitle = 'EntitlementManagementSettingsDefaults' $parameters = $ConfigurationData.NonNodeData.AzureAD.EntitlementManagementSettings $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADEntitlementManagementSettings' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.AzureAD.ContainsKey('ExternalIdentityPolicy')) { $resourceTitle = 'ExternalIdentityPolicyDefaults' $parameters = $ConfigurationData.NonNodeData.AzureAD.ExternalIdentityPolicy $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADExternalIdentityPolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($FeatureRolloutPolicy in $ConfigurationData.NonNodeData.AzureAD.FeatureRolloutPolicies) { $resourceTitle = 'AADFeatureRolloutPolicy-{0}' -f $FeatureRolloutPolicy.DisplayName $parameters = $FeatureRolloutPolicy $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADFeatureRolloutPolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($FederationConfiguration in $ConfigurationData.NonNodeData.AzureAD.FederationConfigurations) { $resourceTitle = 'AADFederationConfiguration-{0}' -f $FederationConfiguration.DisplayName $parameters = $FederationConfiguration $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADFederationConfiguration' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($FilteringPolicy in $ConfigurationData.NonNodeData.AzureAD.FilteringPolicies) { $resourceTitle = 'AADFilteringPolicy-{0}' -f $FilteringPolicy.Name $parameters = $FilteringPolicy $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADFilteringPolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($FilteringPolicyRule in $ConfigurationData.NonNodeData.AzureAD.FilteringPoliciesRule) { $resourceTitle = 'AADFilteringPolicyRule-{0}-{1}' -f $FilteringPolicyRule.Name,$FilteringPolicyRule.Policy $parameters = $FilteringPolicyRule $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Destinations')) { $parameters.Destinations = $parameters.Destinations | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADFilteringPolicyRuleDestination' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADFilteringPolicyRule' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($FilteringProfile in $ConfigurationData.NonNodeData.AzureAD.FilteringProfiles) { $resourceTitle = 'AADFilteringProfile-{0}' -f $FilteringProfile.Name $parameters = $FilteringProfile $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Policies')) { $parameters.Policies = $parameters.Policies | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADFilteringProfilePolicyLink' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADFilteringProfile' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($Group in $ConfigurationData.NonNodeData.AzureAD.Groups) { $resourceTitle = 'AADGroup-{0}-{1}' -f $Group.DisplayName,$Group.MailNickname $parameters = $Group $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('AssignedLicenses')) { $parameters.AssignedLicenses = $parameters.AssignedLicenses | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADGroupLicense' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADGroup' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.AzureAD.ContainsKey('GroupLifecyclePolicy')) { $resourceTitle = 'GroupLifecyclePolicyDefaults' $parameters = $ConfigurationData.NonNodeData.AzureAD.GroupLifecyclePolicy $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADGroupLifecyclePolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.AzureAD.ContainsKey('GroupsNamingPolicy')) { $resourceTitle = 'GroupsNamingPolicyDefaults' $parameters = $ConfigurationData.NonNodeData.AzureAD.GroupsNamingPolicy $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADGroupsNamingPolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.AzureAD.ContainsKey('GroupsSettings')) { $resourceTitle = 'GroupsSettingsDefaults' $parameters = $ConfigurationData.NonNodeData.AzureAD.GroupsSettings $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADGroupsSettings' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($HomeRealmDiscoveryPolicy in $ConfigurationData.NonNodeData.AzureAD.HomeRealmDiscoveryPolicies) { $resourceTitle = 'AADHomeRealmDiscoveryPolicy-{0}' -f $HomeRealmDiscoveryPolicy.DisplayName $parameters = $HomeRealmDiscoveryPolicy $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Definition')) { $parameters.Definition = $parameters.Definition | ForEach-Object { if ($_.ContainsKey('AlternateIdLogin')) { $_.AlternateIdLogin = $_.AlternateIdLogin | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADHomeRealDiscoveryPolicyDefinitionAlternateIdLogin' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADHomeRealDiscoveryPolicyDefinition' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADHomeRealmDiscoveryPolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($IdentityAPIConnector in $ConfigurationData.NonNodeData.AzureAD.IdentityAPIConnectors) { $resourceTitle = 'AADIdentityAPIConnector-{0}' -f $IdentityAPIConnector.Id $parameters = $IdentityAPIConnector $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Certificates')) { $parameters.Certificates = $parameters.Certificates | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADIdentityAPIConnectionCertificate' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADIdentityAPIConnector' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($IdentityB2XUserFlow in $ConfigurationData.NonNodeData.AzureAD.IdentityB2XUserFlows) { $resourceTitle = 'AADIdentityB2XUserFlow-{0}' -f $IdentityB2XUserFlow.Id $parameters = $IdentityB2XUserFlow $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('ApiConnectorConfiguration')) { $parameters.ApiConnectorConfiguration = $parameters.ApiConnectorConfiguration | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphuserFlowApiConnectorConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserAttributeAssignments')) { $parameters.UserAttributeAssignments = $parameters.UserAttributeAssignments | ForEach-Object { if ($_.ContainsKey('UserAttributeValues')) { $_.UserAttributeValues = $_.UserAttributeValues | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphuserFlowUserAttributeAssignmentUserAttributeValues' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphuserFlowUserAttributeAssignment' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADIdentityB2XUserFlow' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($IdentityGovernanceLifecycleWorkflow in $ConfigurationData.NonNodeData.AzureAD.IdentityGovernanceLifecycleWorkflows) { $resourceTitle = 'AADIdentityGovernanceLifecycleWorkflow-{0}' -f $IdentityGovernanceLifecycleWorkflow.DisplayName $parameters = $IdentityGovernanceLifecycleWorkflow $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Tasks')) { $parameters.Tasks = $parameters.Tasks | ForEach-Object { if ($_.ContainsKey('Arguments')) { $_.Arguments = $_.Arguments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADIdentityGovernanceTaskArguments' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADIdentityGovernanceTask' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('ExecutionConditions')) { $parameters.ExecutionConditions = $parameters.ExecutionConditions | ForEach-Object { if ($_.ContainsKey('ScopeValue')) { $_.ScopeValue = $_.ScopeValue | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_IdentityGovernanceScope' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('TriggerValue')) { $_.TriggerValue = $_.TriggerValue | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_IdentityGovernanceTrigger' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_IdentityGovernanceWorkflowExecutionConditions' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADIdentityGovernanceLifecycleWorkflow' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($IdentityGovernanceLifecycleWorkflowCustomTaskExtension in $ConfigurationData.NonNodeData.AzureAD.IdentityGovernanceLifecycleWorkflowCustomTaskExtensions) { $resourceTitle = 'AADIdentityGovernanceLifecycleWorkflowCustomTaskExtension-{0}' -f $IdentityGovernanceLifecycleWorkflowCustomTaskExtension.DisplayName $parameters = $IdentityGovernanceLifecycleWorkflowCustomTaskExtension $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('ClientConfiguration')) { $parameters.ClientConfiguration = $parameters.ClientConfiguration | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADIdentityGovernanceLifecycleWorkflowCustomTaskExtensionClientConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('EndpointConfiguration')) { $parameters.EndpointConfiguration = $parameters.EndpointConfiguration | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADIdentityGovernanceLifecycleWorkflowCustomTaskExtensionEndpointConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('CallbackConfiguration')) { $parameters.CallbackConfiguration = $parameters.CallbackConfiguration | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCallbackConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADIdentityGovernanceLifecycleWorkflowCustomTaskExtension' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($IdentityGovernanceProgram in $ConfigurationData.NonNodeData.AzureAD.IdentityGovernancePrograms) { $resourceTitle = 'AADIdentityGovernanceProgram-{0}' -f $IdentityGovernanceProgram.DisplayName $parameters = $IdentityGovernanceProgram $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADIdentityGovernanceProgram' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.AzureAD.ContainsKey('IdentityProtectionPolicySettings')) { $resourceTitle = 'IdentityProtectionPolicySettingsDefaults' $parameters = $ConfigurationData.NonNodeData.AzureAD.IdentityProtectionPolicySettings $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADIdentityProtectionPolicySettings' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.AzureAD.ContainsKey('LifecycleWorkflowSettings')) { $resourceTitle = 'LifecycleWorkflowSettingsDefaults' $parameters = $ConfigurationData.NonNodeData.AzureAD.LifecycleWorkflowSettings $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADLifecycleWorkflowSettings' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($NamedLocationPolicy in $ConfigurationData.NonNodeData.AzureAD.NamedLocationPolicies) { $resourceTitle = 'AADNamedLocationPolicy-{0}' -f $NamedLocationPolicy.DisplayName $parameters = $NamedLocationPolicy $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADNamedLocationPolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($NetworkAccessForwardingPolicy in $ConfigurationData.NonNodeData.AzureAD.NetworkAccessForwardingPolicies) { $resourceTitle = 'AADNetworkAccessForwardingPolicy-{0}' -f $NetworkAccessForwardingPolicy.Name $parameters = $NetworkAccessForwardingPolicy $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('PolicyRules')) { $parameters.PolicyRules = $parameters.PolicyRules | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphNetworkAccessForwardingPolicyRule' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADNetworkAccessForwardingPolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($NetworkAccessForwardingProfile in $ConfigurationData.NonNodeData.AzureAD.NetworkAccessForwardingProfiles) { $resourceTitle = 'AADNetworkAccessForwardingProfile-{0}' -f $NetworkAccessForwardingProfile.Name $parameters = $NetworkAccessForwardingProfile $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Policies')) { $parameters.Policies = $parameters.Policies | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphNetworkaccessPolicyLink' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADNetworkAccessForwardingProfile' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.AzureAD.ContainsKey('NetworkAccessSettingConditionalAccess')) { $resourceTitle = 'NetworkAccessSettingConditionalAccessDefaults' $parameters = $ConfigurationData.NonNodeData.AzureAD.NetworkAccessSettingConditionalAccess $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADNetworkAccessSettingConditionalAccess' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.AzureAD.ContainsKey('NetworkAccessSettingCrossTenantAccess')) { $resourceTitle = 'NetworkAccessSettingCrossTenantAccessDefaults' $parameters = $ConfigurationData.NonNodeData.AzureAD.NetworkAccessSettingCrossTenantAccess $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADNetworkAccessSettingCrossTenantAccess' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.AzureAD.ContainsKey('OnPremisesPublishingProfilesSettings')) { $resourceTitle = 'OnPremisesPublishingProfilesSettingsDefaults' $parameters = $ConfigurationData.NonNodeData.AzureAD.OnPremisesPublishingProfilesSettings $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADOnPremisesPublishingProfilesSettings' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($OrganizationCertificateBasedAuthConfiguration in $ConfigurationData.NonNodeData.AzureAD.OrganizationCertificateBasedAuthConfigurations) { $resourceTitle = 'AADOrganizationCertificateBasedAuthConfiguration-{0}' -f $OrganizationCertificateBasedAuthConfiguration.OrganizationId $parameters = $OrganizationCertificateBasedAuthConfiguration $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('CertificateAuthorities')) { $parameters.CertificateAuthorities = $parameters.CertificateAuthorities | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphcertificateAuthority' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADOrganizationCertificateBasedAuthConfiguration' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.AzureAD.ContainsKey('PasswordRuleSettings')) { $resourceTitle = 'PasswordRuleSettingsDefaults' $parameters = $ConfigurationData.NonNodeData.AzureAD.PasswordRuleSettings $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADPasswordRuleSettings' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($RemoteNetwork in $ConfigurationData.NonNodeData.AzureAD.RemoteNetworks) { $resourceTitle = 'AADRemoteNetwork-{0}' -f $RemoteNetwork.Name $parameters = $RemoteNetwork $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('DeviceLinks')) { $parameters.DeviceLinks = $parameters.DeviceLinks | ForEach-Object { if ($_.ContainsKey('BgpConfiguration')) { $_.BgpConfiguration = $_.BgpConfiguration | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADRemoteNetworkDeviceLinkbgpConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('RedundancyConfiguration')) { $_.RedundancyConfiguration = $_.RedundancyConfiguration | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADRemoteNetworkDeviceLinkRedundancyConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('TunnelConfiguration')) { $_.TunnelConfiguration = $_.TunnelConfiguration | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADRemoteNetworkDeviceLinkTunnelConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADRemoteNetworkDeviceLink' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADRemoteNetwork' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($RoleDefinition in $ConfigurationData.NonNodeData.AzureAD.RoleDefinitions) { $resourceTitle = 'AADRoleDefinition-{0}' -f $RoleDefinition.DisplayName $parameters = $RoleDefinition $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADRoleDefinition' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($RoleEligibilityScheduleRequest in $ConfigurationData.NonNodeData.AzureAD.RoleEligibilityScheduleRequests) { $resourceTitle = 'AADRoleEligibilityScheduleRequest-{0}-{1}' -f $RoleEligibilityScheduleRequest.Principal,$RoleEligibilityScheduleRequest.RoleDefinition $parameters = $RoleEligibilityScheduleRequest $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('ScheduleInfo')) { $parameters.ScheduleInfo = $parameters.ScheduleInfo | ForEach-Object { if ($_.ContainsKey('expiration')) { $_.expiration = $_.expiration | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADRoleEligibilityScheduleRequestScheduleExpiration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('recurrence')) { $_.recurrence = $_.recurrence | ForEach-Object { if ($_.ContainsKey('pattern')) { $_.pattern = $_.pattern | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADRoleEligibilityScheduleRequestScheduleRecurrencePattern' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('range')) { $_.range = $_.range | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADRoleEligibilityScheduleRequestScheduleRecurrenceRange' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADRoleEligibilityScheduleRequestScheduleRecurrence' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADRoleEligibilityScheduleRequestSchedule' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('TicketInfo')) { $parameters.TicketInfo = $parameters.TicketInfo | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADRoleEligibilityScheduleRequestTicketInfo' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADRoleEligibilityScheduleRequest' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($RoleManagementPolicyRule in $ConfigurationData.NonNodeData.AzureAD.RoleManagementPoliciesRule) { $resourceTitle = 'AADRoleManagementPolicyRule-{0}-{1}' -f $RoleManagementPolicyRule.id,$RoleManagementPolicyRule.roleDisplayName $parameters = $RoleManagementPolicyRule $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('expirationRule')) { $parameters.expirationRule = $parameters.expirationRule | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADRoleManagementPolicyExpirationRule' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('notificationRule')) { $parameters.notificationRule = $parameters.notificationRule | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADRoleManagementPolicyNotificationRule' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('enablementRule')) { $parameters.enablementRule = $parameters.enablementRule | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADRoleManagementPolicyEnablementRule' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('approvalRule')) { $parameters.approvalRule = $parameters.approvalRule | ForEach-Object { if ($_.ContainsKey('setting')) { $_.setting = $_.setting | ForEach-Object { if ($_.ContainsKey('approvalStages')) { $_.approvalStages = $_.approvalStages | ForEach-Object { if ($_.ContainsKey('escalationApprovers')) { $_.escalationApprovers = $_.escalationApprovers | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADRoleManagementPolicySubjectSet' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('primaryApprovers')) { $_.primaryApprovers = $_.primaryApprovers | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADRoleManagementPolicySubjectSet' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADRoleManagementPolicyApprovalStage' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADRoleManagementPolicyApprovalSettings' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADRoleManagementPolicyApprovalRule' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('authenticationContextRule')) { $parameters.authenticationContextRule = $parameters.authenticationContextRule | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADRoleManagementPolicyAuthenticationContextRule' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADRoleManagementPolicyRule' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($RoleSetting in $ConfigurationData.NonNodeData.AzureAD.RoleSettings) { $resourceTitle = 'AADRoleSetting-{0}' -f $RoleSetting.DisplayName $parameters = $RoleSetting $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADRoleSetting' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.AzureAD.ContainsKey('SecurityDefaults')) { $resourceTitle = 'SecurityDefaultsDefaults' $parameters = $ConfigurationData.NonNodeData.AzureAD.SecurityDefaults $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADSecurityDefaults' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($ServicePrincipal in $ConfigurationData.NonNodeData.AzureAD.ServicePrincipals) { $resourceTitle = 'AADServicePrincipal-{0}' -f $ServicePrincipal.AppId $parameters = $ServicePrincipal $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('AppRoleAssignedTo')) { $parameters.AppRoleAssignedTo = $parameters.AppRoleAssignedTo | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADServicePrincipalRoleAssignment' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('DelegatedPermissionClassifications')) { $parameters.DelegatedPermissionClassifications = $parameters.DelegatedPermissionClassifications | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADServicePrincipalDelegatedPermissionClassification' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('CustomSecurityAttributes')) { $parameters.CustomSecurityAttributes = $parameters.CustomSecurityAttributes | ForEach-Object { if ($_.ContainsKey('AttributeValues')) { $_.AttributeValues = $_.AttributeValues | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADServicePrincipalAttributeValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADServicePrincipalAttributeSet' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('PasswordCredentials')) { $parameters.PasswordCredentials = $parameters.PasswordCredentials | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphpasswordCredential' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('KeyCredentials')) { $parameters.KeyCredentials = $parameters.KeyCredentials | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphkeyCredential' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADServicePrincipal' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($SocialIdentityProvider in $ConfigurationData.NonNodeData.AzureAD.SocialIdentityProviders) { $resourceTitle = 'AADSocialIdentityProvider-{0}' -f $SocialIdentityProvider.ClientId $parameters = $SocialIdentityProvider $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADSocialIdentityProvider' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.AzureAD.ContainsKey('TenantDetails')) { $resourceTitle = 'TenantDetailsDefaults' $parameters = $ConfigurationData.NonNodeData.AzureAD.TenantDetails $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADTenantDetails' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($TokenLifetimePolicy in $ConfigurationData.NonNodeData.AzureAD.TokenLifetimePolicies) { $resourceTitle = 'AADTokenLifetimePolicy-{0}' -f $TokenLifetimePolicy.DisplayName $parameters = $TokenLifetimePolicy $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADTokenLifetimePolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($User in $ConfigurationData.NonNodeData.AzureAD.Users) { $resourceTitle = 'AADUser-{0}' -f $User.UserPrincipalName $parameters = $User $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADUser' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($UserFlowAttribute in $ConfigurationData.NonNodeData.AzureAD.UserFlowAttributes) { $resourceTitle = 'AADUserFlowAttribute-{0}' -f $UserFlowAttribute.DisplayName $parameters = $UserFlowAttribute $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AADUserFlowAttribute' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($VerifiedIdAuthority in $ConfigurationData.NonNodeData.AzureAD.VerifiedIdAuthorities) { $resourceTitle = 'AADVerifiedIdAuthority-{0}' -f $VerifiedIdAuthority.LinkedDomainUrl $parameters = $VerifiedIdAuthority $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('KeyVaultMetadata')) { $parameters.KeyVaultMetadata = $parameters.KeyVaultMetadata | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADVerifiedIdAuthorityKeyVaultMetadata' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADVerifiedIdAuthority' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($VerifiedIdAuthorityContract in $ConfigurationData.NonNodeData.AzureAD.VerifiedIdAuthorityContracts) { $resourceTitle = 'AADVerifiedIdAuthorityContract-{0}-{1}' -f $VerifiedIdAuthorityContract.linkedDomainUrl,$VerifiedIdAuthorityContract.name $parameters = $VerifiedIdAuthorityContract $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('displays')) { $parameters.displays = $parameters.displays | ForEach-Object { if ($_.ContainsKey('card')) { $_.card = $_.card | ForEach-Object { if ($_.ContainsKey('logo')) { $_.logo = $_.logo | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADVerifiedIdAuthorityContractDisplayCredentialLogo' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADVerifiedIdAuthorityContractDisplayCard' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('consent')) { $_.consent = $_.consent | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADVerifiedIdAuthorityContractDisplayConsent' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('claims')) { $_.claims = $_.claims | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADVerifiedIdAuthorityContractDisplayClaims' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADVerifiedIdAuthorityContractDisplayModel' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('rules')) { $parameters.rules = $parameters.rules | ForEach-Object { if ($_.ContainsKey('attestations')) { $_.attestations = $_.attestations | ForEach-Object { if ($_.ContainsKey('idTokenHints')) { $_.idTokenHints = $_.idTokenHints | ForEach-Object { if ($_.ContainsKey('mapping')) { $_.mapping = $_.mapping | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADVerifiedIdAuthorityContractClaimMapping' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADVerifiedIdAuthorityContractAttestationValues' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('idTokens')) { $_.idTokens = $_.idTokens | ForEach-Object { if ($_.ContainsKey('mapping')) { $_.mapping = $_.mapping | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADVerifiedIdAuthorityContractClaimMapping' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADVerifiedIdAuthorityContractAttestationValues' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('presentations')) { $_.presentations = $_.presentations | ForEach-Object { if ($_.ContainsKey('mapping')) { $_.mapping = $_.mapping | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADVerifiedIdAuthorityContractClaimMapping' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADVerifiedIdAuthorityContractAttestationValues' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('selfIssued')) { $_.selfIssued = $_.selfIssued | ForEach-Object { if ($_.ContainsKey('mapping')) { $_.mapping = $_.mapping | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADVerifiedIdAuthorityContractClaimMapping' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADVerifiedIdAuthorityContractAttestationValues' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('accessTokens')) { $_.accessTokens = $_.accessTokens | ForEach-Object { if ($_.ContainsKey('mapping')) { $_.mapping = $_.mapping | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADVerifiedIdAuthorityContractClaimMapping' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADVerifiedIdAuthorityContractAttestationValues' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADVerifiedIdAuthorityContractAttestations' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('vc')) { $_.vc = $_.vc | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADVerifiedIdAuthorityContractVcType' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('customStatusEndpoint')) { $_.customStatusEndpoint = $_.customStatusEndpoint | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADVerifiedIdAuthorityContractCustomStatusEndpoint' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_AADVerifiedIdAuthorityContractRulesModel' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'AADVerifiedIdAuthorityContract' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } } |