Implementing Microsoft Teams Phone System for PSTN Calling: PowerShell cmdlets for Pilot Project

Configuring PSTN Calling for Microsoft Teams Pilot Project

Question

You plan to implement a pilot project on Phone System for 100 users.

The pilot project will use a Microsoft Calling Plan.

You need to ensure that the users can establish calls to the PSTN.

Which cmdlets should you run?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D.

A Microsoft Calling plan requires an additional license.The three cmdlets in this answer assign a phone system license to the user, assigns a phone number to the user and enables the user for Enterprise Voice.

https://docs.microsoft.com/en-us/microsoftteams/calling-plans-for-office-365 https://docs.microsoft.com/en-us/microsoftteams/set-up-calling-plans

To ensure that the users in the pilot project can establish calls to the PSTN using Microsoft Calling Plan, we need to configure a few settings using PowerShell cmdlets. The correct answer is C: Set-AzureADUser, Grant-CsOnlineVoiceRoutingPolicy, and Set-CsOnlineVoiceUser.

Here's a breakdown of each cmdlet and what it does:

  1. Set-AzureADUser: This cmdlet is used to update the properties of a user account in Azure Active Directory (AD). In this case, we need to update the user's phone number and other related settings. The command syntax for this cmdlet is as follows:

Set-AzureADUser -ObjectID <UserObjectID> -OfficePhone <PhoneNumber> -MobilePhone <PhoneNumber> -UsageLocation <LocationCode>

  1. Grant-CsOnlineVoiceRoutingPolicy: This cmdlet is used to assign a voice routing policy to a user in Microsoft Teams. A voice routing policy is a set of rules that determine how incoming and outgoing calls are handled. The command syntax for this cmdlet is as follows:

Grant-CsOnlineVoiceRoutingPolicy -Identity <UserPrincipalName> -PolicyName <PolicyName>

  1. Set-CsOnlineVoiceUser: This cmdlet is used to configure the voice-related settings for a user in Microsoft Teams. This includes settings such as the user's phone number, voicemail settings, and emergency location information. The command syntax for this cmdlet is as follows:

Set-CsOnlineVoiceUser -Identity <UserPrincipalName> -TelephoneNumber <PhoneNumber> -VoicePolicyName <PolicyName> -EmergencyLocationId <LocationID>

So to summarize, in order to ensure that the users can establish calls to the PSTN using Microsoft Calling Plan, we need to do the following:

  1. Use Set-AzureADUser to update the user's phone number and related settings.
  2. Use Grant-CsOnlineVoiceRoutingPolicy to assign a voice routing policy to the user.
  3. Use Set-CsOnlineVoiceUser to configure the user's voice-related settings.

Therefore, the correct answer is C: Set-AzureADUser, Grant-CsOnlineVoiceRoutingPolicy, and Set-CsOnlineVoiceUser.