az tsi access-policy

Note

This reference is part of the timeseriesinsights extension for the Azure CLI (version 2.11.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

az tsi access-policy create

Create an access policy in the specified environment.

az tsi access-policy delete

Delete the access policy.

az tsi access-policy list

List all the available access policies associated with the environment.

az tsi access-policy show

Show the access policy with the specified name in the specified environment.

az tsi access-policy update

Update the access policy.

az tsi access-policy create

Create an access policy in the specified environment.

az tsi access-policy create --access-policy-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

--access-policy-name --name -n

The name of the Time Series Insights access policy associated with the specified environment.

--environment-name

The name of the Time Series Insights environment associated with the specified resource group.

--resource-group -g

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

Optional Parameters

--description

An description of the access policy.

--principal-object-id

The objectId of the principal in Azure Active Directory.

value from: az ad user, az ad sp
--roles

The list of roles the principal is assigned on the environment.

az tsi access-policy delete

Delete the access policy.

az tsi access-policy delete --access-policy-name
                            --environment-name
                            --resource-group
                            [--yes]

Examples

AccessPoliciesDelete

az tsi access-policy delete --name "ap1" --environment-name "env1" --resource-group "rg1"

Required Parameters

--access-policy-name --name -n

The name of the Time Series Insights access policy associated with the specified environment.

--environment-name

The name of the Time Series Insights environment associated with the specified resource group.

--resource-group -g

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

Optional Parameters

--yes -y

Do not prompt for confirmation.

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

--environment-name

The name of the Time Series Insights environment associated with the specified resource group.

--resource-group -g

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

az tsi access-policy show

Show the access policy with the specified name in the specified environment.

az tsi access-policy show --access-policy-name
                          --environment-name
                          --resource-group

Examples

AccessPoliciesGet

az tsi access-policy show --name "ap1" --environment-name "env1" --resource-group "rg1"

Required Parameters

--access-policy-name --name -n

The name of the Time Series Insights access policy associated with the specified environment.

--environment-name

The name of the Time Series Insights environment associated with the specified resource group.

--resource-group -g

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

az tsi access-policy update

Update the access policy.

az tsi access-policy update --access-policy-name
                            --environment-name
                            --resource-group
                            [--description]
                            [--roles]

Examples

AccessPoliciesUpdate

az tsi access-policy update --name "ap1" --roles "Reader" --roles "Contributor" --environment-name "env1" --resource-group "rg1"

Required Parameters

--access-policy-name --name -n

The name of the Time Series Insights access policy associated with the specified environment.

--environment-name

The name of the Time Series Insights environment associated with the specified resource group.

--resource-group -g

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

Optional Parameters

--description

An description of the access policy.

--roles

The list of roles the principal is assigned on the environment.