Azure / Azure/azure-cli

Please specify --assignee or --assignee-object-id is required parameters to create a new role assignment for a user, group, or service principal.

Open
#21,499 2 comments 0 reactions 1 assignee Claimed by @evelyn-ys View on GitHub
act-identity-squad Auto-Assign Customer Usage KeyVault
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

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

**Describe the bug**
As shown below, to create a new role assignment for a user, group, or service principal using Azure CLI command "az keyvault role assignment create" "--assignee or --assignee-object-id" are optional parameters but to create a new role assignment, either "--assignee" or "--assignee-object-id" is required to specify

![image](https://user-images.githubusercontent.com/33955180/156388814-fd77fb1b-bffe-4cfe-9828-fe1cbb404b82.png)

**To Reproduce**
Please execute Azure CLI command - 'az keyvault role assignment create --hsm-name --role "" --scope /'

![image](https://user-images.githubusercontent.com/33955180/156389418-f6829900-d861-4c69-95aa-cea73ec5f8b4.png)

**Expected behavior**
'az keyvault role assignment create --hsm-name --role "" --scope / --assignee ""' or 'az keyvault role assignment create --hsm-name --role "" --scope / --assignee-object-id "assignee object id"'

**Environment summary**
Install Method CLI version (`az --version`) on Windows/Linux)

**Additional context**

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.