Skip to content

Could not create keyvault with service principal after graph module migration #22540

@FumingZhang

Description

@FumingZhang

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Related command

az keyvault create

Describe the bug

Could not create keyvault with service principal after graph module migration.

image

To Reproduce

Create keyvault with a service principal.

Expected behavior

Able to create keyvault with a service principal like it used to be.

Environment summary

WSL2, Ubuntu18.04, Python3.8, CLI dev branch + tags/azure-cli-2.36.0

Additional context

Before the migration, function _get_current_user_object_id would raise GraphErrorException and retry with _get_object_id.

Screenshot 2022-05-20 152110

After the migration, function _get_current_user_object_id would not raise an error. Without retry, empty object id would result in raising CLIError.

Screenshot 2022-05-20 152633

Metadata

Metadata

Labels

Auto-AssignAuto assign by botGraph(doesn't work with label-triggered comments; use Graph.Microsoft instead) az adInstallationKeyVaultaz keyvault

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions