when using az command you get error message “The current subscription type is not permitted to perform operations on any provider namespace. Please use a different subscription”

This happens when you have lot of different subscription in your azure login best to fix it

by typing az account set –<subscription ID>

If you don’t know your subscription ID

az account list