Azure / azure-cli

Azure Command-Line Interface
MIT License
3.99k stars 2.97k forks source link

az ad app permission add duplicate permissions #24512

Open jeevanions opened 1 year ago

jeevanions commented 1 year ago

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.

yonzhan commented 1 year ago

@jiasli for awareness