Forum Discussion
WhoThis
May 18, 2021Copper Contributor
Cannot Assign Phone Number to Ressource Account via PowerShell
Hi I'm trying to implement a script to assign phone numbers to resource account through teams, but unfortunately, I keep getting an error stating the format is not valid. Although, when tryin...
paul-lange
May 18, 2021Iron Contributor
Hi,
the docs say the command should look like this:
Set-CsOnlineVoiceApplicationInstance -Identity testra1@contoso.com -TelephoneNumber +14255550100
If this supposed to be a french number, it would look like +33xxxxxxxx
https://docs.microsoft.com/en-us/powershell/module/skype/set-csonlinevoiceapplicationinstance?view=skype-ps
Hope this helps
the docs say the command should look like this:
Set-CsOnlineVoiceApplicationInstance -Identity testra1@contoso.com -TelephoneNumber +14255550100
If this supposed to be a french number, it would look like +33xxxxxxxx
https://docs.microsoft.com/en-us/powershell/module/skype/set-csonlinevoiceapplicationinstance?view=skype-ps
Hope this helps
- WhoThisMay 18, 2021Copper ContributorHi,
I am aware of the docs, I just put $Id which is the ObjectID of the Ressource Account.
Of course I did test with the UPN and have the same result.
As for the number, yes, it is a French number, with 9 digits after +33
But after some more in-depth check, it seems the issue is with the tenant as I cannot assign a phone number to a resource account even with the GUI.
I'll see with Microsoft support about the issue.
Thank you- paul-langeMay 19, 2021Iron ContributorOne thing is worth a check. What is the type of the number you are trying to assign? It should be a service number if you want to assign it to a resource account.
- WhoThisMay 19, 2021Copper ContributorYes of course it is a service number.
I can't assign anything but a service number from the ressource account menu on teams anyway.