Examples/Resources/TeamsUpgradePolicy/1-AssignUsersToTeamsUpgradePolicy.ps1

<#
This example demonstrates how to assign users to a Teams Upgrade Policy.
#>


Configuration Example
{
    param(
        [Parameter(Mandatory = $true)]
        [PSCredential]
        $credsGlobalAdmin
    )
    Import-DscResource -ModuleName Microsoft365DSC

    node localhost
    {
        TeamsUpgradePolicy 'ConfigureIslandsPolicy'
        {
            Identity               = 'Islands'
            Users                  = @("John.Smith@contoso.com", "Nik.Charlebois@contoso.com")
            MigrateMeetingsToTeams = $true
            Credential             = $credsGlobalAdmin
        }
    }
}