az grafana service-account token
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 token command. Learn more about extensions.
Commands to manage service account tokens.
Commands
Name | Description | Type | Status |
---|---|---|---|
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 token create
Create a new service account token.
az grafana service-account token create --name
--service-account
--token
[--resource-group]
[--time-to-live]
Examples
create a service account token lasting 1 day
az grafana service-account token create -g myResourceGroup -n myGrafana --service-account myAccount --token myToken --time-to-live 1d
Required Parameters
Name of the Azure Managed Grafana.
Id or name which can identify a service account.
Name of the new service account token.
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The life duration. For example, 1d if your key is going to last fr one day. Supported units are: s,m,h,d,w,M,y.
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 token delete
Delete a service account token.
az grafana service-account token delete --name
--service-account
--token
[--resource-group]
Required Parameters
Name of the Azure Managed Grafana.
Id or name which can identify a service account.
Id or name which can identify a service account token.
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 token list
List existing service account tokens.
az grafana service-account token list --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.
Azure CLI