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 configurationAssignments 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.Maintenance/configurationAssignments resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Maintenance/configurationAssignments@2022-07-01-preview' = {
scope: resourceSymbolicName or scope
location: 'string'
name: 'string'
properties: {
maintenanceConfigurationId: 'string'
resourceId: 'string'
}
}
Property Values
Microsoft.Maintenance/configurationAssignments
Name | Description | Value |
---|---|---|
location | Location of the resource | string |
name | The resource name | string (required) |
properties | Properties of the configuration assignment | ConfigurationAssignmentProperties |
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. |
ConfigurationAssignmentProperties
Name | Description | Value |
---|---|---|
maintenanceConfigurationId | The maintenance configuration Id | string |
resourceId | The unique resourceId | string |
Usage Examples
Azure Verified Modules
The following Azure Verified Modules can be used to deploy this resource type.
Module | Description |
---|---|
Maintenance Configuration Assignment | AVM Resource Module for Maintenance Configuration Assignment |
ARM template resource definition
The configurationAssignments 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.Maintenance/configurationAssignments resource, add the following JSON to your template.
{
"type": "Microsoft.Maintenance/configurationAssignments",
"apiVersion": "2022-07-01-preview",
"name": "string",
"location": "string",
"properties": {
"maintenanceConfigurationId": "string",
"resourceId": "string"
}
}
Property Values
Microsoft.Maintenance/configurationAssignments
Name | Description | Value |
---|---|---|
apiVersion | The api version | '2022-07-01-preview' |
location | Location of the resource | string |
name | The resource name | string (required) |
properties | Properties of the configuration assignment | ConfigurationAssignmentProperties |
type | The resource type | 'Microsoft.Maintenance/configurationAssignments' |
ConfigurationAssignmentProperties
Name | Description | Value |
---|---|---|
maintenanceConfigurationId | The maintenance configuration Id | string |
resourceId | The unique resourceId | string |
Usage Examples
Terraform (AzAPI provider) resource definition
The configurationAssignments 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.Maintenance/configurationAssignments resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Maintenance/configurationAssignments@2022-07-01-preview"
name = "string"
parent_id = "string"
location = "string"
body = {
properties = {
maintenanceConfigurationId = "string"
resourceId = "string"
}
}
}
Property Values
Microsoft.Maintenance/configurationAssignments
Name | Description | Value |
---|---|---|
location | Location of the resource | string |
name | The resource name | string (required) |
parent_id | The ID of the resource to apply this extension resource to. | string (required) |
properties | Properties of the configuration assignment | ConfigurationAssignmentProperties |
type | The resource type | "Microsoft.Maintenance/configurationAssignments@2022-07-01-preview" |
ConfigurationAssignmentProperties
Name | Description | Value |
---|---|---|
maintenanceConfigurationId | The maintenance configuration Id | string |
resourceId | The unique resourceId | string |