Azure / Azure/azure-cli

az ad app update permissions update failing for an old app

Open
#21,075 2 comments 0 reactions 1 assignee Claimed by @jiasli View on GitHub
act-identity-squad customer-reported feature-request Graph
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.