Microsoft.Authorization variables

Bicep resource definition

The variables 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.Authorization/variables resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.Authorization/variables@2022-08-01-preview' = {
  name: 'string'
  properties: {
    columns: [
      {
        columnName: 'string'
      }
    ]
  }
}

Property values

variables

Name Description Value
name The resource name string (required)
properties Properties for the variable. PolicyVariableProperties (required)

PolicyVariableProperties

Name Description Value
columns Variable column definitions. PolicyVariableColumn[] (required)

PolicyVariableColumn

Name Description Value
columnName The name of this policy variable column. string (required)

ARM template resource definition

The variables 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.Authorization/variables resource, add the following JSON to your template.

{
  "type": "Microsoft.Authorization/variables",
  "apiVersion": "2022-08-01-preview",
  "name": "string",
  "properties": {
    "columns": [
      {
        "columnName": "string"
      }
    ]
  }
}

Property values

variables

Name Description Value
type The resource type 'Microsoft.Authorization/variables'
apiVersion The resource api version '2022-08-01-preview'
name The resource name string (required)
properties Properties for the variable. PolicyVariableProperties (required)

PolicyVariableProperties

Name Description Value
columns Variable column definitions. PolicyVariableColumn[] (required)

PolicyVariableColumn

Name Description Value
columnName The name of this policy variable column. string (required)

Terraform (AzAPI provider) resource definition

The variables resource type can be deployed with operations that target:

  • Management groups
  • Subscriptions

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

Resource format

To create a Microsoft.Authorization/variables resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Authorization/variables@2022-08-01-preview"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      columns = [
        {
          columnName = "string"
        }
      ]
    }
  })
}

Property values

variables

Name Description Value
type The resource type "Microsoft.Authorization/variables@2022-08-01-preview"
name The resource name string (required)
parent_id To deploy to a management group, use the ID of that management group. To deploy to a subscription, use the ID of that subscription. string (required)
properties Properties for the variable. PolicyVariableProperties (required)

PolicyVariableProperties

Name Description Value
columns Variable column definitions. PolicyVariableColumn[] (required)

PolicyVariableColumn

Name Description Value
columnName The name of this policy variable column. string (required)