The Azure CLI command az ad app permission add command allows duplicate permission on subsequent runs. We use this command in a shell script, and it would be good to make the command check for the same permission before creating one.
Example CLI Command is given below
az ad app permission add --id <appId> --api 00000003-0000-0000-c000-000000000000 --api-permissions 5b567255-7703-4780-807c-7be8301ae99b=Role
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
ID: 6a5b5348-f67e-ef14-0529-4c80fddd4bc6
Version Independent ID: bfd7e6b1-1fba-3d25-8ee3-5105bcf4157d
The Azure CLI command
az ad app permission add
command allows duplicate permission on subsequent runs. We use this command in a shell script, and it would be good to make the command check for the same permission before creating one.Example CLI Command is given below
az ad app permission add --id <appId> --api 00000003-0000-0000-c000-000000000000 --api-permissions 5b567255-7703-4780-807c-7be8301ae99b=Role
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.