DscResources/Office365/Office365.schema.psm1
# (2023-11-29 11:52:03) Generated using Microsoft365DSC v1.23.1122.1 Configuration 'Office365' { param ( [Parameter(Mandatory = $true)] [System.String] $ApplicationId, [Parameter(Mandatory = $true)] [System.String] $TenantId, [Parameter(Mandatory = $true)] [System.String] $CertificateThumbprint ) Import-DscResource -ModuleName Microsoft365DSC if ($ConfigurationData.NonNodeData.Office365.ContainsKey('AdminAuditLogConfig')) { $resourceTitle = 'AdminAuditLogConfigDefaults' $parameters = $ConfigurationData.NonNodeData.Office365.AdminAuditLogConfig $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'O365AdminAuditLogConfig' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($Group in $ConfigurationData.NonNodeData.Office365.Groups) { $resourceTitle = 'O365Group-{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') } (Get-DscSplattedResource -ResourceName 'O365Group' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.Office365.ContainsKey('OrgCustomizationSetting')) { $resourceTitle = 'OrgCustomizationSettingDefaults' $parameters = $ConfigurationData.NonNodeData.Office365.OrgCustomizationSetting $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'O365OrgCustomizationSetting' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.Office365.ContainsKey('OrgSettings')) { $resourceTitle = 'OrgSettingsDefaults' $parameters = $ConfigurationData.NonNodeData.Office365.OrgSettings $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'O365OrgSettings' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } } |