DSCResources/cTeamsMeetingConfiguration/cTeamsMeetingConfiguration.schema.psm1

configuration cTeamsMeetingConfiguration {
    param (
        [Parameter()]
        [hashtable[]]
        $Items
)

<#
TeamsMeetingConfiguration [String] #ResourceName
{
    Identity = [string]{ Global }
    [AccessTokens = [string[]]]
    [ApplicationId = [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]]
    [EnableQoS = [bool]]
    [HelpURL = [string]]
    [LegalURL = [string]]
    [LogoURL = [string]]
    [ManagedIdentity = [bool]]
    [PsDscRunAsCredential = [PSCredential]]
    [TenantId = [string]]
}
 
#>



    Import-DscResource -ModuleName PSDesiredStateConfiguration
    Import-DscResource -ModuleName Microsoft365DSC

    $dscResourceName = 'TeamsMeetingConfiguration'

    $param = $PSBoundParameters
    $param.Remove("InstanceName")

    $dscParameterKeys = 'Identity' -split ', '

        foreach ($item in $Items)
        {
            $keyValues = foreach ($key in $dscParameterKeys)
        {
            $item.$key
        }
        $executionName = $keyValues -join '_'
        $executionName = $executionName -replace "[\s()\\:*-+/{}```"']", '_'
        (Get-DscSplattedResource -ResourceName $dscResourceName -ExecutionName $executionName -Properties $item -NoInvoke).Invoke($item)
    }
}