Azure / Azure/azure-cli-extensions

Kusto cli extension does not support AllDatabasesMonitor role

Open
#6,876 2 comments 0 reactions 0 assignees View on GitHub
Auto-Assign Azure Data Explorer bug Service Attention
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

### Describe the bug

Kusto has a role assignment called `AllDatabasesMonitor` ([docs here](https://learn.microsoft.com/en-us/azure/data-explorer/manage-cluster-permissions#cluster-level-permissions)). The `--role` argument is only accepting `AllDatabasesAdmin` and `AllDatabasesViewer`.

### Related command

az kusto cluster-principal-assignment create --role AllDatabasesMonitor

### Errors

az kusto cluster-principal-assignment create: 'AllDatabasesMonitor' is not a valid value for '--role'. Allowed values: AllDatabasesAdmin, AllDatabasesViewer.

### Issue script & Debug output

N/A

### Expected behavior

The cli should assign the valid role to the specified principal.

### Environment Summary

azure-cli 2.53.0

core 2.53.0
telemetry 1.1.0

Extensions:
kusto 0.4.0
resource-graph 2.1.0

Dependencies:
msal 1.24.0b2
azure-mgmt-resource 23.1.0b2

Python location '/opt/az/bin/python3'
Extensions directory '/home/${user}/.azure/cliextensions'

Python (Linux) 3.10.10 (main, Sep 20 2023, 06:08:04) [GCC 9.4.0]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

### Additional context

_No response_

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.