Skip to content

az ad app update permissions update failing for an old app #21075

@roberAlb

Description

@roberAlb

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

Metadata

Metadata

Assignees

Labels

Graph(doesn't work with label-triggered comments; use Graph.Microsoft instead) az adact-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions