DSCResources/cTeamsMeetingConfiguration/cTeamsMeetingConfiguration.schema.psm1
|
configuration cTeamsMeetingConfiguration { param ( [Parameter(Mandatory = $true)] [ValidateSet('Yes')] [string] $IsSingleInstance, [Parameter()] [string] $LogoURL, [Parameter()] [string] $LegalURL, [Parameter()] [string] $HelpURL, [Parameter()] [string] $CustomFooterText, [Parameter()] [bool] $DisableAnonymousJoin, [Parameter()] [bool] $DisableAppInteractionForAnonymousUsers, [Parameter()] [bool] $EnableQoS, [Parameter()] [ValidateSet('Disabled', 'Enabled')] [string] $FeedbackSurveyForAnonymousUsers, [Parameter()] [bool] $LimitPresenterRolePermissions, [Parameter()] [System.UInt32] $ClientAudioPort, [Parameter()] [System.UInt32] $ClientAudioPortRange, [Parameter()] [System.UInt32] $ClientVideoPort, [Parameter()] [System.UInt32] $ClientVideoPortRange, [Parameter()] [System.UInt32] $ClientAppSharingPort, [Parameter()] [bool] $ClientMediaPortRangeEnabled, [Parameter()] [System.UInt32] $ClientAppSharingPortRange, [Parameter()] [PSCredential] $Credential, [Parameter()] [string] $ApplicationId, [Parameter()] [string] $TenantId, [Parameter()] [string] $CertificateThumbprint, [Parameter()] [PSCredential] $CertificatePassword, [Parameter()] [string] $CertificatePath, [Parameter()] [bool] $ManagedIdentity, [Parameter()] [string[]] $AccessTokens ) <# TeamsMeetingConfiguration [String] #ResourceName { IsSingleInstance = [string]{ Yes } [AccessTokens = [string[]]] [ApplicationId = [string]] [CertificatePassword = [PSCredential]] [CertificatePath = [string]] [CertificateThumbprint = [string]] [ClientAppSharingPort = [UInt32]] [ClientAppSharingPortRange = [UInt32]] [ClientAudioPort = [UInt32]] [ClientAudioPortRange = [UInt32]] [ClientMediaPortRangeEnabled = [bool]] [ClientVideoPort = [UInt32]] [ClientVideoPortRange = [UInt32]] [Credential = [PSCredential]] [CustomFooterText = [string]] [DependsOn = [string[]]] [DisableAnonymousJoin = [bool]] [DisableAppInteractionForAnonymousUsers = [bool]] [EnableQoS = [bool]] [FeedbackSurveyForAnonymousUsers = [string]{ Disabled | Enabled }] [HelpURL = [string]] [LegalURL = [string]] [LimitPresenterRolePermissions = [bool]] [LogoURL = [string]] [ManagedIdentity = [bool]] [PsDscRunAsCredential = [PSCredential]] [TenantId = [string]] } #> Import-DscResource -ModuleName PSDesiredStateConfiguration Import-DscResource -ModuleName Microsoft365DSC $dscResourceName = 'TeamsMeetingConfiguration' $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) } |