Describe the bug
I'm using this command to update an Azure AD app permissions, but it is just working for new created apps, we have some apps that were created in the past and when a new permission is added or removed from RequiredResoures.json it is failing with the error "az : ERROR: Property requiredResourceAccess.resourceAccess is invalid.". However, it works for new created Azure AD apps.
az ad app update --id xxxxxxxxxx
--required-resource-accesses "xxxx/RequiredResources.json" `
--app-roles "xxxxx/AppRoles.json"
To Reproduce
Use this command with old created Azure AD apps to update permissions.
az ad app update --id xxxxxxxxxx
--required-resource-accesses "xxxx/RequiredResources.json" `
--app-roles "xxxxx/AppRoles.json"
Expected behavior
The permissions should be updated according to the configuration of the JSON for the permissions.
Environment summary
I'm using azure cli 2.32.0
Describe the bug
I'm using this command to update an Azure AD app permissions, but it is just working for new created apps, we have some apps that were created in the past and when a new permission is added or removed from RequiredResoures.json it is failing with the error "az : ERROR: Property requiredResourceAccess.resourceAccess is invalid.". However, it works for new created Azure AD apps.
az ad app update
--id xxxxxxxxxx--required-resource-accesses "xxxx/RequiredResources.json" `
--app-roles "xxxxx/AppRoles.json"
To Reproduce
Use this command with old created Azure AD apps to update permissions.
az ad app update
--id xxxxxxxxxx--required-resource-accesses "xxxx/RequiredResources.json" `
--app-roles "xxxxx/AppRoles.json"
Expected behavior
The permissions should be updated according to the configuration of the JSON for the permissions.
Environment summary
I'm using azure cli 2.32.0