Add Graph API via az ad app permission fails
问题 I'm attempting to add the Graph API via CLI 2.x. Here is the PowerShell script I'm running: # # (1) Register the app, replyUrl, enable implicitflow # Write-Host " - Create Application " + $appName az ad app create --display-name "$appName" --reply-urls "$replyUrl" --oauth2-allow-implicit-flow true # # (2) get the app id into a variable # $appId=$(az ad app list --display-name $appName --query [].appId -o tsv) # # (3) API Permissions, add Graph API/Permission (delegated)
# Write-Host " - Add