79409523

Date: 2025-02-03 17:17:17
Score: 1
Natty:
Report link

To get all tenant names with their ids

az rest --method get --url https://management.azure.com/tenants?api-version=2022-12-01 --query "value[].{Name: displayName, TenantID: tenantId}" --output table
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ben