שתף באמצעות


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 -n

Name of the Azure Managed Grafana.

--service-account

Id or name which can identify a service account.

--token

Name of the new service account token.

Optional Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--time-to-live

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.

Default value: 1d
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

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 -n

Name of the Azure Managed Grafana.

--service-account

Id or name which can identify a service account.

--token

Id or name which can identify a service account token.

Optional Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

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 -n

Name of the Azure Managed Grafana.

--service-account

Id or name which can identify a service account.

Optional Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.