DSCResources/cTeamsDialInConferencingTenantSettings/cTeamsDialInConferencingTenantSettings.schema.psm1
configuration cTeamsDialInConferencingTenantSettings { param ( [Parameter(Mandatory = $true)] [ValidateSet('Yes')] [string] $IsSingleInstance, [Parameter()] [bool] $AllowPSTNOnlyMeetingsByDefault, [Parameter()] [bool] $AutomaticallyMigrateUserMeetings, [Parameter()] [bool] $AutomaticallyReplaceAcpProvider, [Parameter()] [bool] $AutomaticallySendEmailsToUsers, [Parameter()] [bool] $EnableDialOutJoinConfirmation, [Parameter()] [bool] $EnableEntryExitNotifications, [Parameter()] [string] $EntryExitAnnouncementsType, [Parameter()] [ValidateSet('MaskedForExternalUsers', 'MaskedForAllUsers', 'NoMasking')] [string] $MaskPstnNumbersType, [Parameter()] [System.UInt32] $PinLength, [Parameter()] [PSCredential] $Credential, [Parameter()] [string] $ApplicationId, [Parameter()] [string] $TenantId, [Parameter()] [string] $CertificateThumbprint, [Parameter()] [bool] $ManagedIdentity, [Parameter()] [string[]] $AccessTokens ) <# TeamsDialInConferencingTenantSettings [String] #ResourceName { IsSingleInstance = [string]{ Yes } [AccessTokens = [string[]]] [AllowPSTNOnlyMeetingsByDefault = [bool]] [ApplicationId = [string]] [AutomaticallyMigrateUserMeetings = [bool]] [AutomaticallyReplaceAcpProvider = [bool]] [AutomaticallySendEmailsToUsers = [bool]] [CertificateThumbprint = [string]] [Credential = [PSCredential]] [DependsOn = [string[]]] [EnableDialOutJoinConfirmation = [bool]] [EnableEntryExitNotifications = [bool]] [EntryExitAnnouncementsType = [string]] [ManagedIdentity = [bool]] [MaskPstnNumbersType = [string]{ MaskedForAllUsers | MaskedForExternalUsers | NoMasking }] [PinLength = [UInt32]] [PsDscRunAsCredential = [PSCredential]] [TenantId = [string]] } #> Import-DscResource -ModuleName PSDesiredStateConfiguration Import-DscResource -ModuleName Microsoft365DSC $dscResourceName = 'TeamsDialInConferencingTenantSettings' $param = $PSBoundParameters $param.Remove("InstanceName") $dscParameterKeys = 'IsSingleInstance' -split ', ' $keyValues = foreach ($key in $dscParameterKeys) { $param.$key } $executionName = $keyValues -join '_' $executionName = $executionName -replace "[\s()\\:*-+/{}```"']", '_' (Get-DscSplattedResource -ResourceName $dscResourceName -ExecutionName $executionName -Properties $param -NoInvoke).Invoke($param) } |