Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Bicep resource definition
The environments/accessPolicies resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
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@2017-11-15' = {
parent: resourceSymbolicName
name: 'string'
properties: {
description: 'string'
principalObjectId: 'string'
roles: [
'string'
]
}
}
Property Values
Microsoft.TimeSeriesInsights/environments/accessPolicies
Name | Description | Value |
---|---|---|
name | The resource name | string Constraints: Min length = 1 Max length = 90 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) |
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' |
ARM template resource definition
The environments/accessPolicies resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
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": "2017-11-15",
"name": "string",
"properties": {
"description": "string",
"principalObjectId": "string",
"roles": [ "string" ]
}
}
Property Values
Microsoft.TimeSeriesInsights/environments/accessPolicies
Name | Description | Value |
---|---|---|
apiVersion | The api version | '2017-11-15' |
name | The resource name | string Constraints: Min length = 1 Max length = 90 Pattern = ^[-\w\._\(\)]+$ (required) |
properties | AccessPolicyResourceProperties (required) | |
type | The resource type | 'Microsoft.TimeSeriesInsights/environments/accessPolicies' |
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' |
Usage Examples
Azure Quickstart Templates
The following Azure Quickstart templates deploy this resource type.
Template | Description |
---|---|
Create a Pay As You Go (PAYG) Environment with an IoT Hub |
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 |
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@2017-11-15"
name = "string"
parent_id = "string"
body = {
properties = {
description = "string"
principalObjectId = "string"
roles = [
"string"
]
}
}
}
Property Values
Microsoft.TimeSeriesInsights/environments/accessPolicies
Name | Description | Value |
---|---|---|
name | The resource name | string Constraints: Min length = 1 Max length = 90 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@2017-11-15" |
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' |