I converted by Entra user to internal and now I'm locked out of my Azure Subscription

Saji 20 Reputation points
2026-01-15T20:00:46.5166667+00:00

I was trying to get access to an Azure Key Vault secret and Copilot suggested converting my Entra user (the on linked to my Micrsoft account) to an internal user and assigning the appropriate permissions to it.

However, as soon as I converted it to an internal user I got locked out of Azure subscription.

I did the following.

C:\Users\sajiw> Remove-Item -Recurse -Force "$HOME\.azure"
C:\Users\sajiw> az login --allow-no-subscriptions --use-device-code
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code xxxx to authenticate.

Retrieving tenants and subscriptions for the selection...

[Tenant and subscription selection]



The command failed with an unexpected error. Here is the traceback:
'NoneType' object is not subscriptable
Traceback (most recent call last):
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 666, in execute
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 734, in _run_jobs_serially
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 703, in _run_job
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 336, in __call__
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 120, in handler
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/profile/custom.py", line 192, in login
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/profile/_subscription_selector.py", line 69, in __call__
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/profile/_subscription_selector.py", line 99, in _get_tenant_string
TypeError: 'NoneType' object is not subscriptable

I can't submit an Azure support request because I can't access anything in the Azure Portal.

Any ideas on how to fix my Azure account?

Microsoft Security | Microsoft Entra | Microsoft Entra ID

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.