Microsoft.Maintenance applyUpdates

Bicep resource definition

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

resource symbolicname 'Microsoft.Maintenance/applyUpdates@2023-09-01-preview' = {
  scope: resourceSymbolicName or scope
  name: 'string'
  properties: {
    lastUpdateTime: 'string'
    resourceId: 'string'
    status: 'string'
  }
}

Property Values

Microsoft.Maintenance/applyUpdates

Name Description Value
name The resource name string (required)
properties Properties of the apply update ApplyUpdateProperties
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.

ApplyUpdateProperties

Name Description Value
lastUpdateTime Last Update time string
resourceId The resourceId string
status The status 'Cancel'
'Cancelled'
'Completed'
'InProgress'
'NoUpdatesPending'
'Pending'
'RetryLater'
'RetryNow'

ARM template resource definition

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

{
  "type": "Microsoft.Maintenance/applyUpdates",
  "apiVersion": "2023-09-01-preview",
  "name": "string",
  "properties": {
    "lastUpdateTime": "string",
    "resourceId": "string",
    "status": "string"
  }
}

Property Values

Microsoft.Maintenance/applyUpdates

Name Description Value
apiVersion The api version '2023-09-01-preview'
name The resource name string (required)
properties Properties of the apply update ApplyUpdateProperties
type The resource type 'Microsoft.Maintenance/applyUpdates'

ApplyUpdateProperties

Name Description Value
lastUpdateTime Last Update time string
resourceId The resourceId string
status The status 'Cancel'
'Cancelled'
'Completed'
'InProgress'
'NoUpdatesPending'
'Pending'
'RetryLater'
'RetryNow'

Usage Examples

Terraform (AzAPI provider) resource definition

The applyUpdates 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/applyUpdates resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Maintenance/applyUpdates@2023-09-01-preview"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      lastUpdateTime = "string"
      resourceId = "string"
      status = "string"
    }
  }
}

Property Values

Microsoft.Maintenance/applyUpdates

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 of the apply update ApplyUpdateProperties
type The resource type "Microsoft.Maintenance/applyUpdates@2023-09-01-preview"

ApplyUpdateProperties

Name Description Value
lastUpdateTime Last Update time string
resourceId The resourceId string
status The status 'Cancel'
'Cancelled'
'Completed'
'InProgress'
'NoUpdatesPending'
'Pending'
'RetryLater'
'RetryNow'