Azure / Azure/azure-cli

az kusto database-principal-assignment create doesn't work with role UnrestrictedViewers

Open
#16,469 10 comments 0 reactions 0 assignees View on GitHub
customer-reported Kusto Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Kusto

I'm trying to use the ``az kusto database-principal-assignment`` command to grant *UnrestrictedViewers* access but I get the following error: ``(BadRequest) Database principal role is invalid. Please provide valid database principal role (Admin, Viewer, User, etc.).``.

Here is the full command for context:

```
$me = az ad signed-in-user show --query objectId

az kusto database-principal-assignment create `
--cluster-name "mycluster" `
--database-name "mydatabase"`
--principal-id $me `
--principal-type User `
--role UnrestrictedViewers `
--principal-assignment-name "assignmentname" `
--resource-group "myrg"
```

Running ``az kusto database-principal-assignment create -h`` shows UnrestrictedViewers as one of the allowed values for role, but looks like the server rejects it.

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.