Azure trainings!
Infused with experience from the field, brought with lots of passion!

Insufficient permissions to… while being an owner!

Insufficient permissions to… while being an owner!

Lately, I banged my head on an access rights issue.  I was automating an Azure governance through Azure CLI, which included the management group and subscription hierarchy.  My Azure DevOps service principal was owner of the root management group, because it had to...
Resolving the Azure AD Object Id with Azure CLI takes ages!

Resolving the Azure AD Object Id with Azure CLI takes ages!

Recently, I had to retrieve the Azure AD Object Id of a certain Azure AD Group.  Because my script was already intensively leveraging Azure CLI, I used the az ad group list command. My command used the –query functionality to find the appropriate Azure AD group,...
Get subscription id with Azure CLI

Get subscription id with Azure CLI

This is just a quick note to myself.  I spent some time figuring out how to fetch the subscription id within the current Azure CLI context. This one-liner can save you some time: $SUBSCRIPTION_ID = az account show –query id –output tsv Cheers,...