Skip to content

Latest commit

 

History

History
53 lines (46 loc) · 1.52 KB

SETUP.md

File metadata and controls

53 lines (46 loc) · 1.52 KB

Azure CLI commands to setup login with Microsoft

Azure hierarchy

  1. Subscription
  2. Tenant
  3. Application

CLI commands

az login --allow-no-subscriptions

az account tenant list

https://learn.microsoft.com/en-us/cli/azure/ad/app?view=azure-cli-latest#az-ad-app-create

az ad app create --display-name "K33 Dev" \
  --enable-access-token-issuance true \
  --enable-id-token-issuance true \
  --identifier-uris api://dev.auth.k33.com \
  --is-fallback-public-client false \
  --key-display-name "App Secret" \
  --key-type Password \
  --key-value $key \
  --sign-in-audience AzureADMyOrg \
  --web-home-page-url https://dev.k33.com \
  --web-redirect-uris https://dev.auth.k33.com/__/auth/handler

az ad app create --display-name "K33" \
  --enable-access-token-issuance true \
  --enable-id-token-issuance true \
  --identifier-uris api://auth.k33.com \
  --is-fallback-public-client false \
  --key-display-name "App Secret" \
  --key-type Password \
  --key-value ${AZURE_APP_SECRET} \
  --sign-in-audience AzureADandPersonalMicrosoftAccount \
  --web-home-page-url https://k33.com \
  --web-redirect-uris https://auth.k33.com/__/auth/handler

View

az ad app list --output table
az ad app owner list --id ${AZURE_APP_ID} --output table
az ad app credential list --id ${AZURE_APP_ID} --output table
az ad user list --output table