TeamsEventsPolicy¶
Parameters¶
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 contoso.onmicrosoft.com | |
CertificateThumbprint | Write | String | Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication. |
Description¶
This resource configures the Teams Events Policies.
Permissions¶
Microsoft Graph¶
To authenticate with the Microsoft Graph API, this resource required the following permissions:
Delegated permissions¶
-
Read
- None
-
Update
- None
Application permissions¶
-
Read
- Organization.Read.All, User.Read.All, Group.ReadWrite.All, AppCatalog.ReadWrite.All, TeamSettings.ReadWrite.All, Channel.Delete.All, ChannelSettings.ReadWrite.All, ChannelMember.ReadWrite.All
-
Update
- Organization.Read.All, User.Read.All, Group.ReadWrite.All, AppCatalog.ReadWrite.All, TeamSettings.ReadWrite.All, Channel.Delete.All, ChannelSettings.ReadWrite.All, ChannelMember.ReadWrite.All
Examples¶
Example 1¶
This example adds a new Teams Events Policy.
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$credsTeamsAdmin
)
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";
}
}
}