az grafana service-account
Note
This reference is part of the amg extension for the Azure CLI (version 2.61.0 or higher). The extension will automatically install the first time you run an az grafana service-account command. Learn more about extensions.
Commands to manage service accounts.
Commands
Name | Description | Type | Status |
---|---|---|---|
az grafana service-account create |
Create a new service account. |
Extension | GA |
az grafana service-account delete |
Delete a service account. |
Extension | GA |
az grafana service-account list |
List existing service accounts. |
Extension | GA |
az grafana service-account show |
Get the details of a service account. |
Extension | GA |
az grafana service-account token |
Commands to manage service account tokens. |
Extension | GA |
az grafana service-account token create |
Create a new service account token. |
Extension | GA |
az grafana service-account token delete |
Delete a service account token. |
Extension | GA |
az grafana service-account token list |
List existing service account tokens. |
Extension | GA |
az grafana service-account update |
Update a service account. |
Extension | GA |
az grafana service-account create
Create a new service account.
az grafana service-account create --name
--service-account
[--is-disabled {false, true}]
[--resource-group]
[--role {Admin, Editor, Viewer}]
Examples
Create a service account with admin role
az grafana service-account create -g myResourceGroup -n myGrafana --service-account myAccount --role admin
Required Parameters
Name of the Azure Managed Grafana.
Service account name.
Optional Parameters
Disable the service account. default: false.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Grafana role name.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az grafana service-account delete
Delete a service account.
az grafana service-account delete --name
--service-account
[--resource-group]
Required Parameters
Name of the Azure Managed Grafana.
Id or name which can identify a service account.
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az grafana service-account list
List existing service accounts.
az grafana service-account list --name
[--resource-group]
Required Parameters
Name of the Azure Managed Grafana.
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az grafana service-account show
Get the details of a service account.
az grafana service-account show --name
--service-account
[--resource-group]
Required Parameters
Name of the Azure Managed Grafana.
Id or name which can identify a service account.
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az grafana service-account update
Update a service account.
az grafana service-account update --name
--service-account
[--is-disabled {false, true}]
[--new-name]
[--resource-group]
[--role {Admin, Editor, Viewer}]
Examples
disable a service account
az grafana service-account update -g myResourceGroup -n myGrafana --service-account myAccount --is-disabled true
Required Parameters
Name of the Azure Managed Grafana.
Id or name which can identify a service account.
Optional Parameters
Disable the service account. default: false.
New name of the service account.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Grafana role name.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.