Unable to delete VM : Unregistration of implicit PublicIpAddress failed with error: InvalidAuthenticationTokenTenant

Cameron River 0 Reputation points
2024-06-09T11:02:27.0933333+00:00

After moving Microscroft moved my Visual Studio subscription from my primary email to my alternate email, I am unable to delete resources. The tenant id refers to my primary e-mail directory which has been deleted.

The VM was created after the move of the subscription.

Error:

Unregistration of implicit PublicIpAddress failed with error: InvalidAuthenticationTokenTenant, message: The access token is from the wrong issuer 'https://sts.windows.net/
Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,232 questions
{count} votes

1 answer

Sort by: Most helpful
  1. akinbade abiola 6,020 Reputation points
    2024-06-09T17:44:07.0633333+00:00

    Hello Cameron River,

    Thanks for your question.

    Based on the error message, the access token being used is associated with the old tenant ID, but your subscription is now under a new tenant ID

    You may need to sign out and sign in with credentials associated with the new tenant. You can test in an incognito browser to ensure no cached credentials

    If you are using the CLI please use az login and sign in with the new tenant's tenant ID.

    Regards,

    You can mark it 'Accept Answer' if this helped.