MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.12k stars 21.18k forks source link

Some AZ CLI command-related invalid stuff #109188

Open SQLtattoo opened 1 year ago

SQLtattoo commented 1 year ago

In the following commands "objectId" should be replaced with just "id":

  1. objectid=$(az ad app show --id $clientid --query objectId --output tsv) instead it should be reading objectid=$(az ad app show --id $clientid --query id --output tsv)

  2. also these lines' objectId should be replaced: spid=$(az ad sp create --id $clientid --query objectId --output tsv) spid=$(az ad sp show --id $clientid --query objectId --output tsv) with spid=$(az ad sp create --id $clientid --query id --output tsv) spid=$(az ad sp show --id $clientid --query id --output tsv)

Also, the commands to remove the user_impersonation scope do not work, since by default there is no scope defined, at least not anymore.

HTH

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Naveenommi-MSFT commented 1 year ago

@SQLtattoo Thanks for your feedback! We will investigate and update as appropriate.

mikaelweave commented 9 months ago

reassign:chachachachami

shellyhaverkamp commented 1 month ago

assign: @shellyhaverkamp