DscResources/Azure/Azure.schema.psm1
# (2024-10-18 01:26:36) Generated using Microsoft365DSC v1.24.1016.1 Configuration 'Azure' { param ( [Parameter(Mandatory = $true)] [System.String] $ApplicationId, [Parameter(Mandatory = $true)] [System.String] $TenantId, [Parameter(Mandatory = $true)] [System.String] $CertificateThumbprint ) Import-DscResource -ModuleName Microsoft365DSC foreach ($Subscription in $ConfigurationData.NonNodeData.Azure.Subscriptions) { $resourceTitle = 'AzureSubscription-{0}' -f $Subscription.Name $parameters = $Subscription $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'AzureSubscription' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } } |