-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
az ad app credential reset
fails when provided a description for the credential: When present, application key identifier cannot be empty and can be at most 32 bytes.
#20561
Comments
@jiasli for awareness |
I can reproduce. Here is the
azure-cli/src/azure-cli/azure/cli/command_modules/role/custom.py Lines 1773 to 1776 in 3c34079
However, if we make
During Microsoft Graph migration (#12946), as discussed with AAD team, we are considering deprecating
Instead, custom description string will be set as |
A more detailed comparison: AD Graph
MS Graph
|
az ad app credential reset
fails when provided a description for the credentialaz ad app credential reset
fails when provided a description for the credential: When present, application key identifier cannot be empty and can be at most 32 bytes.
This issue has been resolved by #22432. Documentation is updated accordingly: https://docs.microsoft.com/en-us/cli/azure/microsoft-graph-migration |
Describe the bug
The following command fails, and should succeed:
To Reproduce
Run the above command against an application registration.
Expected behavior
It succeeds, creating a new credential.
Environment summary
brew
Additional context
It seems like this is also https://github.com/Azure/azure-docs-powershell-azuread/issues/296 ; that bug was closed without any meaningful resolution. It seems like
az
is mixing up the description with something else. The error emitted here is grade A bonkers: "can be at most 32 bytes" when the input text is less than 32 bytes? It seems like it is getting mixed up with an encryption key, or something, and isn't actually transmitting the provided value as a description.The value itself is also fine: it is possible to go to the Portal & create a new credential with the description
a description here
without problems. Hence, this seems to be an azure-cli problem.The text was updated successfully, but these errors were encountered: