App roles update is broken after Azure CLI upgrade
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
### **This is autogenerated. Please review and update as needed.**
## Describe the bug
**Command Name**
`az ad app update`
**Errors:**
```
Expected property 'lang' is not present on resource of type 'AppRole'
```
## To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- _Put any pre-requisite steps here..._
- `az ad app update --id {} --app-roles {}`
## Expected Behavior
## Environment Summary
```
Windows-10-10.0.22000-SP0
Python 3.10.4
Installer: MSI
azure-cli 2.37.0
Extensions:
kusto 0.5.0
resource-graph 2.1.0
Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1
```
## Additional Context
Today Azure DevOps rolled out the Azure CLI version 2.37, which forced me to migrate some of our Azure CLI steps as explained in this migration guide: https://docs.microsoft.com/en-gb/cli/azure/microsoft-graph-migration
The only thing that is still not working is the update of our app registration's roles. We are currently using the following json file for the roles deployment:
`[
{
"allowedMemberTypes": [
"User"
],
"description": "Grafana read only Users",
"displayName": "Grafana Viewer",
"id": "....",
"isEnabled": true,
"lang": null,
"origin": "Application",
"value": "Viewer"
},
{
"allowedMemberTypes": [
"User"
],
"description": "Grafana Editor Users",
"displayName": "Grafana Editor",
"id": "...",
"isEnabled": true,
"lang": null,
"origin": "Application",
"value": "Editor"
}
]
`
It looks like this was already fixed in a different cli: https://github.com/pnp/cli-microsoft365/issues/3131
Contributor guide
Assessment
This issue has not been assessed yet.