Skip to content

az ad app create error: Invalid key type.Β #24072

@Niviral

Description

@Niviral

This is autogenerated. Please review and update as needed.

Describe the bug

MS documentation and --help command describe that --key-type can be set as one of three values {AsymmetricX509Cert, Password, Symmetric}. However, trying to set value as Password led to error. It's funny because if you make a typo and set value of --key-type as for example Passwor it will ask if I had in mind Password. But providing Password will throw Invalid key Type
Command Name
az ad app create

Errors:

Invalid key type.

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • az ad app create --display-name {} --key-type --key-value {} --key-display-name {}

Expected Behavior

Create app registration containing password secret.

Environment Summary

Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31, Ubuntu 20.04.5 LTS
Python 3.10.5
Installer: DEB

azure-cli 2.40.0

Extensions:
interactive 0.4.5

Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1

Additional Context

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamGraphaz adOKR CandidateThis label is used to track how many GitHub issues we have resolved for OKR purpose.customer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions