Microsoft.TimeSeriesInsights environments/accessPolicies 2021-03-31-preview

Bicep resource definition

The environments/accessPolicies resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.TimeSeriesInsights/environments/accessPolicies resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.TimeSeriesInsights/environments/accessPolicies@2021-03-31-preview' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    description: 'string'
    principalObjectId: 'string'
    roles: [
      'string'
    ]
  }
}

Property values

AccessPolicyResourceProperties

Name Description Value
description An description of the access policy. string
principalObjectId The objectId of the principal in Azure Active Directory. string
roles The list of roles the principal is assigned on the environment. String array containing any of:
'Contributor'
'Reader'

Microsoft.TimeSeriesInsights/environments/accessPolicies

Name Description Value
name The resource name string

Constraints:
Min length = 1
Max length = 1
Pattern = ^[-\w\._\(\)]+$ (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: environments
properties AccessPolicyResourceProperties (required)

ARM template resource definition

The environments/accessPolicies resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.TimeSeriesInsights/environments/accessPolicies resource, add the following JSON to your template.

{
  "type": "Microsoft.TimeSeriesInsights/environments/accessPolicies",
  "apiVersion": "2021-03-31-preview",
  "name": "string",
  "properties": {
    "description": "string",
    "principalObjectId": "string",
    "roles": [ "string" ]
  }
}

Property values

AccessPolicyResourceProperties

Name Description Value
description An description of the access policy. string
principalObjectId The objectId of the principal in Azure Active Directory. string
roles The list of roles the principal is assigned on the environment. String array containing any of:
'Contributor'
'Reader'

Microsoft.TimeSeriesInsights/environments/accessPolicies

Name Description Value
apiVersion The api version '2021-03-31-preview'
name The resource name string

Constraints:
Min length = 1
Max length = 1
Pattern = ^[-\w\._\(\)]+$ (required)
properties AccessPolicyResourceProperties (required)
type The resource type 'Microsoft.TimeSeriesInsights/environments/accessPolicies'

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Create a Pay As You Go (PAYG) Environment with an IoT Hub

Deploy to Azure
This template enables you to deploy a Pay As You Go (PAYG) Time Series Insights environment that is configured to consume events from an IoT Hub.
Create an Environment with an Event Hub Event Source

Deploy to Azure
This template enables you to deploy a Time Series Insights environment that is configured to consume events from an Event Hub.

Terraform (AzAPI provider) resource definition

The environments/accessPolicies resource type can be deployed with operations that target:

  • Resource groups

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.TimeSeriesInsights/environments/accessPolicies resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.TimeSeriesInsights/environments/accessPolicies@2021-03-31-preview"
  name = "string"
  body = jsonencode({
    properties = {
      description = "string"
      principalObjectId = "string"
      roles = [
        "string"
      ]
    }
  })
}

Property values

AccessPolicyResourceProperties

Name Description Value
description An description of the access policy. string
principalObjectId The objectId of the principal in Azure Active Directory. string
roles The list of roles the principal is assigned on the environment. String array containing any of:
'Contributor'
'Reader'

Microsoft.TimeSeriesInsights/environments/accessPolicies

Name Description Value
name The resource name string

Constraints:
Min length = 1
Max length = 1
Pattern = ^[-\w\._\(\)]+$ (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: environments
properties AccessPolicyResourceProperties (required)
type The resource type "Microsoft.TimeSeriesInsights/environments/accessPolicies@2021-03-31-preview"