az timeseriesinsights access-policy

Commands to manage timeseriesinsights access policy.

Commands

az timeseriesinsights access-policy create

Create or update an access policy in the specified environment.

az timeseriesinsights access-policy delete

Delete the access policy with the specified name in the specified subscription, resource group, and environment.

az timeseriesinsights access-policy list

List all the available access policies associated with the environment.

az timeseriesinsights access-policy show

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

az timeseriesinsights access-policy update

Create or update an access policy in the specified environment.

az timeseriesinsights access-policy create

Create or update an access policy in the specified environment.

az timeseriesinsights access-policy create --environment-name
                                           --name
                                           --resource-group
                                           [--description]
                                           [--principal-object-id]
                                           [--roles {Contributor, Reader}]

Examples

Create access-policy

az timeseriesinsights access-policy create -g {rg} --environment-name {env} -n ap1 --principal-object-id 001 --description "some description" --roles Contributor Reader

Required Parameters

--environment-name

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

--name -n

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

--resource-group -g

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

Optional Parameters

--description

A description of the access policy.

--principal-object-id

The objectId of the principal in Azure Active Directory.

--roles

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

accepted values: Contributor, Reader

az timeseriesinsights access-policy delete

Delete the access policy with the specified name in the specified subscription, resource group, and environment.

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

Examples

Delete access-policy

az timeseriesinsights access-policy delete -g {rg} --environment-name {env} -n {ap}

Required Parameters

--environment-name

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

--name -n

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

--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 timeseriesinsights access-policy list

List all the available access policies associated with the environment.

az timeseriesinsights access-policy list --environment-name
                                         --resource-group

Examples

List access-policy by environment

az timeseriesinsights access-policy list -g {rg} --environment-name {env}

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 timeseriesinsights access-policy show

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

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

Examples

Get access-policy

az timeseriesinsights access-policy show -g {rg} --environment-name {env} -n {ap}

Required Parameters

--environment-name

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

--name -n

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

--resource-group -g

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

az timeseriesinsights access-policy update

Create or update an access policy in the specified environment.

az timeseriesinsights access-policy update --environment-name
                                           --name
                                           --resource-group
                                           [--description]
                                           [--roles {Contributor, Reader}]

Examples

Update access-policy

az timeseriesinsights access-policy update -g {rg} --environment-name \
{env} -n {ap} --roles "Reader,Contributor"

Required Parameters

--environment-name

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

--name -n

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

--resource-group -g

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

Optional Parameters

--description

A description of the access policy.

--roles

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

accepted values: Contributor, Reader