Forum Discussion
rsmoot
Mar 31, 2022Copper Contributor
Deleted Resource account with phone number still assigned.
At the bottom Manage resource accounts in teams, there is a section for deleting resource accounts. https://docs.microsoft.com/en-us/microsoftteams/manage-resource-accounts It states: Make sure...
- Jan 29, 2024
If you delete a resource account without first removing the phone number you can run Get-CsPhoneNumberAssignment -TelephoneNumber <+phonenumber> and note the AssignedPstnTargetId which is the Identity of the deleted Resource Account.
Then run the following to remove the number.
Remove-CsPhoneNumberAssignment -Identity <AssignedPstnTargetId> -PhoneNumber <+phonenumber to unassign> -PhoneNumberType <DirectRouting|CallingPlan|OperatorConnect>
Greg Anthony
Microsoft
Jan 29, 2024If you delete a resource account without first removing the phone number you can run Get-CsPhoneNumberAssignment -TelephoneNumber <+phonenumber> and note the AssignedPstnTargetId which is the Identity of the deleted Resource Account.
Then run the following to remove the number.
Remove-CsPhoneNumberAssignment -Identity <AssignedPstnTargetId> -PhoneNumber <+phonenumber to unassign> -PhoneNumberType <DirectRouting|CallingPlan|OperatorConnect>
vorsite
Jan 29, 2024Copper Contributor
I haven't tried this but if this works, this is a great solution. Typically you need to open a support case with Microsoft and it takes 2-3 days to find the right contact and reach a resolution. Greg Anthony