az tsi access-policy
Note
This reference is part of the timeseriesinsights extension for the Azure CLI (version 2.50.0 or higher). The extension will automatically install the first time you run an az tsi access-policy command. Learn more about extensions.
Manage access policy with timeseriesinsights.
Commands
Name | Description | Type | Status |
---|---|---|---|
az tsi access-policy create |
Create an access policy in the specified environment. |
Extension | GA |
az tsi access-policy delete |
Delete the access policy with the specified name in the specified subscription, resource group, and environment. |
Extension | GA |
az tsi access-policy list |
List all the available access policies associated with the environment. |
Extension | GA |
az tsi access-policy show |
Get the access policy with the specified name in the specified environment. |
Extension | GA |
az tsi access-policy update |
Update the access policy with the specified name in the specified subscription, resource group, and environment. |
Extension | GA |
az tsi access-policy create
Create an access policy in the specified environment.
az tsi access-policy create --access-policy-name --name
--environment-name
--resource-group
[--description]
[--principal-object-id]
[--roles]
Examples
AccessPoliciesCreate
az tsi access-policy create --name "ap1" --environment-name "env1" --description "some description" --principal-object-id "aGuid" --roles Reader Contributor --resource-group "rg1"
Required Parameters
Name of the access policy.
The name of the Time Series Insights environment associated with the specified resource group.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
An description of the access policy.
Property | Value |
---|---|
Parameter group: | Properties Arguments |
The objectId of the principal in Azure Active Directory. Values from: az ad user, az ad sp.
Property | Value |
---|---|
Parameter group: | Properties Arguments |
The list of roles the principal is assigned on the environment. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Property | Value |
---|---|
Parameter group: | Properties Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az tsi access-policy delete
Delete the access policy with the specified name in the specified subscription, resource group, and environment.
az tsi access-policy delete [--access-policy-name --name]
[--environment-name]
[--ids]
[--resource-group]
[--subscription]
[--yes]
Examples
AccessPoliciesDelete
az tsi access-policy delete --name "ap1" --environment-name "env1" --resource-group "rg1"
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
The name of the Time Series Insights access policy associated with the specified environment.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The name of the Time Series Insights environment associated with the specified resource group.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Do not prompt for confirmation.
Property | Value |
---|---|
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az tsi access-policy list
List all the available access policies associated with the environment.
az tsi access-policy list --environment-name
--resource-group
Examples
AccessPoliciesByEnvironment
az tsi access-policy list --environment-name "env1" --resource-group "rg1"
Required Parameters
The name of the Time Series Insights environment associated with the specified resource group.
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.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az tsi access-policy show
Get the access policy with the specified name in the specified environment.
az tsi access-policy show [--access-policy-name --name]
[--environment-name]
[--ids]
[--resource-group]
[--subscription]
Examples
AccessPoliciesGet
az tsi access-policy show --name "ap1" --environment-name "env1" --resource-group "rg1"
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
The name of the Time Series Insights access policy associated with the specified environment.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The name of the Time Series Insights environment associated with the specified resource group.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az tsi access-policy update
Update the access policy with the specified name in the specified subscription, resource group, and environment.
az tsi access-policy update [--access-policy-name --name]
[--description]
[--environment-name]
[--ids]
[--resource-group]
[--roles]
[--subscription]
Examples
AccessPoliciesUpdate
az tsi access-policy update --name "ap1" --roles "Reader" --roles "Contributor" --environment-name "env1" --resource-group "rg1"
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
The name of the Time Series Insights access policy associated with the specified environment.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
An description of the access policy.
Property | Value |
---|---|
Parameter group: | Properties Arguments |
The name of the Time Series Insights environment associated with the specified resource group.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The list of roles the principal is assigned on the environment. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Property | Value |
---|---|
Parameter group: | Properties Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |