Parameter Attribute DataType Description Allowed Values
Identity Key String Identity of the Teams Events Policy.
Description Write String Description of the Teams Events Policy.
AllowWebinars Write String Determines if webinars are allowed by the policy or not. Disabled, Enabled
EventAccessType Write String Defines who is allowed to join the event. Everyone, EveryoneInCompanyExcludingGuests
Ensure Write String Present ensures the policy exists, absent ensures it is removed. Present, Absent
Credential Write PSCredential Credentials of the Teams Global Admin.
ApplicationId Write String Id of the Azure Active Directory application to authenticate with.
TenantId Write String Name of the Azure Active Directory tenant used for authentication. Format
CertificateThumbprint Write String Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.


This resource configures the Teams Events Policies.


Microsoft Graph

To authenticate with the Microsoft Graph API, this resource required the following permissions:

Delegated permissions

  • Read

    • None
  • Update

    • None

Application permissions

  • Read

    • None
  • Update

    • None


Example 1

This example adds a new Teams Events Policy.

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

    node localhost
        TeamsEventsPolicy 'ConfigureEventsPolicy'
            Identity             = "My Events Policy";
            Description          = "This is a my Events Policy";
            AllowWebinars        = "Disabled";
            EventAccessType      = "EveryoneInCompanyExcludingGuests";
            Credential           = $credsTeamsAdmin
            Ensure               = "Present";