Le Cloud de Christophe BOUCETTA

Voici le blog sur les communications unifiées et la collaboration Microsoft par un MVP nominé depuis 11 ans

Une annonce Microsoft sous le libellé  "MC316139 - Changes coming to phone number assignment using Teams PowerShell Module cmdlets" présente une modification dans le processus d'assignation et de retrait des numéros de téléphones en powershell Teams.

Ce changement est prévu pour début Avril 2022.

Extrait de l'annonce:

When this change is implemented, administrators will no longer be able to assign and remove phone numbers from users and resource accounts using the following cmdlets.

  • Set-CsUser

We will be fully retiring the following Teams PowerShell Module cmdlets:

  • Set-CsOnlineVoiceUser
  • Set-CsOnlineApplicationInstance
  • Set-CsOnlineVoiceApplicationInstance

Il sera nécessaire désormais d'utiliser les deux nouvelles commandes ci-dessous pour réaliser ces opérations:

Les commandes permettent de gérer autant des numéros Calling Plan que Direct Routing ou Operator Connect

Exemple 1: Assignation d'un numéro de téléphone pour un utilisateur Calling plan

Set-CsPhoneNumberAssignment -Identity charles@ucexpert.ca -PhoneNumber +14388138218 -PhoneNumberType CallingPlan -LocationId d58de13c-0284-4d5b-bd9b-40eb6be17526

get-csonlineuser charles@ucexpert.ca | Format-List UserPrincipalName, DisplayName, SipAddress, LineURI, OnPremLineURI, EnterpriseVoiceEnabled

Exemple 2: Activation du mode entreprise voice et assignation d'un numéro de téléphone pour un utilisateur Direct Routing

Set-CsPhoneNumberAssignment -Identity arnaud@ucexpert.ca -EnterpriseVoiceEnabled $true
Set-CsPhoneNumberAssignment -Identity arnaud@ucexpert.ca -PhoneNumber +55485 -PhoneNumberType DirectRouting

get-csonlineuser arnaud@ucexpert.ca | Format-List UserPrincipalName, DisplayName, SipAddress, LineURI, OnPremLineURI, EnterpriseVoiceEnabled

Exemple 3: Suppression d'un numéro Direct Routing

Set-CsPhoneNumberAssignment -Identity arnaud@ucexpert.ca -EnterpriseVoiceEnabled $false
Remove-CsPhoneNumberAssignment -Identity arnaud@ucexpert.ca -PhoneNumber +55485 -PhoneNumberType DirectRouting
get-csonlineuser arnaud@ucexpert.ca | Format-List UserPrincipalName, DisplayName, SipAddress, LineURI, OnPremLineURI, EnterpriseVoiceEnabled

Exemple 4: Suppression d'un numéro

Set-CsPhoneNumberAssignment -Identity arnaud@ucexpert.ca -EnterpriseVoiceEnabled $false
Remove-CsPhoneNumberAssignment -Identity arnaud@ucexpert.ca -RemoveAll

get-csonlineuser arnaud@ucexpert.ca | Format-List UserPrincipalName, DisplayName, SipAddress, LineURI, OnPremLineURI, EnterpriseVoiceEnabled

Il est maintenant nécessaire de réviser vos procédures d'assignation des numéros de téléphones!

Annonce officielle:

Facebook Like