Azure CLI cannot set values on nested properties #23443
Labels
Auto-Assign
Auto assign by bot
Azure CLI Team
The command of the issue is owned by Azure CLI team
Documentation
Graph
az ad
Installation
needs-team-attention
This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Related command
az ad app update --set
Describe the bug
Attempting to set a value on a nested property returns an error. It appears that the cli is unaware of the changes made to the graph. Specifically cannot set these two properties:
To Reproduce
az ad app update --id $clientid --set api.oauth2PermissionScopes="[ { value: '$scopeName', adminConsentDescription: 'My API access', adminConsentDisplayName: 'My API access', id: 'b3e5bc7f-8568-45ee-b913-3a30f72d830b', isEnabled: true, type: 'Admin' } ] } }"
Expected behavior
Expected the command to set oauth2PermissionScopes.
Environment summary
running on Ubuntu WSL 2 install
install command
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
az version
Additional context
can work around the issues with
az rest
commandoption1: update scopes
option1: update preAuthorizedClients
The text was updated successfully, but these errors were encountered: