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. Manage resource accounts in Teams - Microsoft Teams | Microsoft Docs It states: Make sure you...
- 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>
nharwood
Jul 14, 2022Copper Contributor
I had the same issue but managed to resolve it by going to the Azure AD admin centre and purging the deleted resource account from deleted users.
Took about 30mins from the list when running the command "Get-CsPhoneNumberAssignment -PstnAssignmentStatus VoiceApplicationAssigned"
Took about 30mins from the list when running the command "Get-CsPhoneNumberAssignment -PstnAssignmentStatus VoiceApplicationAssigned"
- kirstyaireyMay 31, 2023Copper ContributorThis worked for me. Thank you