You are on page 1of 1

#Login to Azure AD

az login

#List the Account


az account list
az ad signed-in-user --show

#Azure AD Help
az ad -h
az ad user -h
az ad signed-in-user -h

#Azure AD User Administration


az ad user list | grep displayName
az ad user list --query [].displayName
az ad user create -display-name "David Ralf" --user-principla-name
dralf@hvinodlive.onmicrosoft.com --password "P@ssw0rd2020"

#Azure AD Group Administrator


az ad group -h
az ad group create --display-name "Human Resource" --mail-nickname "Human Resource"
az ad group list | grep displayName
az ad group --query [].displayName
az ad group member list --group "Human Resource"
az ad user show --id creed@hvinodlive.onmicrosoft.com | grep objectId
az ad user show --id creed@hvinodlive.onmicrosoft.com --query objectId
az ad group member add --group "Human Resource" --member-id

You might also like