In the following commands "objectId" should be replaced with just "id":
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)
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.
ID: 7b38cbb3-a70a-4869-2f37-ca2c9ca7e3d8
Version Independent ID: e4b15b6b-e0fe-fc0e-4981-5b23e3d343ea
In the following commands "objectId" should be replaced with just "id":
objectid=$(az ad app show --id $clientid --query objectId --output tsv)
instead it should be readingobjectid=$(az ad app show --id $clientid --query id --output tsv)
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)
withspid=$(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.