Mar 31 2022 03:04 PM
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 dissociate the telephone number from the resource account before deleting it, to avoid getting your service number stuck in pending mode.
My question is: what happens if you forgot to unassign the phone number from the resource account before deleting it? 😐
I worked with a tech from Support and he had me try several powershell commands, but nothing worked. He is going to get back to be, but I thought I'd ask here!
Apr 07 2022 10:22 AM
I may have a similar issue. Did you hear anything from support? @rsmoot
May 12 2022 03:00 AM
May 12 2022 04:24 AM
Jun 08 2022 10:13 AM
In the same boat. Have a ticket open with MS now on this. Hopefully I'll get an answer and can come back here and reply.
Jul 13 2022 05:25 PM
May 31 2023 02:57 AM
Jun 22 2023 04:39 AM
Hellas,
We're stuck with the same problem. Our IT partner deleted the Resource Account with our main office Number. And now we're stuck with the problem as mentionned by others.
Unfortunately nothing helps via Azure. We're in contact with Microsoft but it takes ages to explain and to deliver log-files and re-explain.
Any one any idea how to speed things up?
Regards
André
Jul 12 2023 12:44 PM
This worked for 2/3 accounts @nharwood
Jan 10 2024 02:22 PM - edited Jan 10 2024 03:00 PM
This is what worked for me.
I got the AssignedPstnTargetId of the phone number from running this command “Get-CsPhoneNumberAssignment -PstnAssignmentStatus VoiceApplicationAssigned”.
I then ran the command using the value of AssignedPstnTargetId for the Identity.
“Remove-CsPhoneNumberAssignment -Identity ‘AssignedPstnTargetId’ -RemoveAll”
Jan 29 2024 06:19 AM
SolutionIf 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>
Jan 29 2024 11:53 AM
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
Feb 14 2024 03:59 PM
If you delete a resource account via the Microsoft 365 Admin center, you can complete wipe it away from your tenant by accessing the "deleted users" under the Microsoft Entra admin center...select the offending account and "delete permanently"!
Jan 29 2024 06:19 AM
SolutionIf 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>