Microsoft.Maintenance configurationAssignments 2022-07-01-preview

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

ConfigurationAssignmentProperties

Name Description Value
maintenanceConfigurationId The maintenance configuration Id string
resourceId The unique resourceId string

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.

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

ConfigurationAssignmentProperties

Name Description Value
maintenanceConfigurationId The maintenance configuration Id string
resourceId The unique resourceId string

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'

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 = jsonencode({
    properties = {
      maintenanceConfigurationId = "string"
      resourceId = "string"
    }
  })
}

Property values

ConfigurationAssignmentProperties

Name Description Value
maintenanceConfigurationId The maintenance configuration Id string
resourceId The unique resourceId string

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"