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 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@2024-12-01-preview' = {
scope: resourceSymbolicName or scope
name: 'string'
properties: {
columns: [
{
columnName: 'string'
}
]
}
}
Property Values
Microsoft.Authorization/variables
| Name | Description | Value |
|---|---|---|
| name | The resource name | string (required) |
| properties | Properties for the variable. | PolicyVariableProperties (required) |
| scope | Use when creating a resource at a scope that is different than the deployment scope. | Set this property to the symbolic name of a resource to apply the extension resource. |
PolicyVariableColumn
| Name | Description | Value |
|---|---|---|
| columnName | The name of this policy variable column. | string (required) |
PolicyVariableProperties
| Name | Description | Value |
|---|---|---|
| columns | Variable column definitions. | PolicyVariableColumn[] (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": "2024-12-01-preview",
"name": "string",
"properties": {
"columns": [
{
"columnName": "string"
}
]
}
}
Property Values
Microsoft.Authorization/variables
| Name | Description | Value |
|---|---|---|
| apiVersion | The api version | '2024-12-01-preview' |
| name | The resource name | string (required) |
| properties | Properties for the variable. | PolicyVariableProperties (required) |
| type | The resource type | 'Microsoft.Authorization/variables' |
PolicyVariableColumn
| Name | Description | Value |
|---|---|---|
| columnName | The name of this policy variable column. | string (required) |
PolicyVariableProperties
| Name | Description | Value |
|---|---|---|
| columns | Variable column definitions. | PolicyVariableColumn[] (required) |
Usage Examples
Terraform (AzAPI provider) 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 Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Authorization/variables@2024-12-01-preview"
name = "string"
parent_id = "string"
body = {
properties = {
columns = [
{
columnName = "string"
}
]
}
}
}
Property Values
Microsoft.Authorization/variables
| Name | Description | Value |
|---|---|---|
| name | The resource name | string (required) |
| parent_id | The ID of the resource to apply this extension resource to. | string (required) |
| properties | Properties for the variable. | PolicyVariableProperties (required) |
| type | The resource type | "Microsoft.Authorization/variables@2024-12-01-preview" |
PolicyVariableColumn
| Name | Description | Value |
|---|---|---|
| columnName | The name of this policy variable column. | string (required) |
PolicyVariableProperties
| Name | Description | Value |
|---|---|---|
| columns | Variable column definitions. | PolicyVariableColumn[] (required) |