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:
- Management groups - See management group deployment commands* Subscription - See subscription deployment commands
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' = {
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) |
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:
- Management groups - See management group deployment commands* Subscription - See subscription deployment commands
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:
- Management groups* Subscription
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) |
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) |