Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit editor mode

Azure Maintenance Configuration as an Event Grid source

Feedback

In this article

This article provides the properties and schema for Azure Maintenance Configurations events. For an introduction to event schemas, seeAzure Event Grid event schema. It also gives you links to articles to use Maintenance Configuration as an event source.

Available event types

Maintenance Configuration emits the following event types:

Event typeDescription
Microsoft.Maintenance.PreMaintenanceEventRaised before maintenance job start and gives user an opportunity to perform pre maintenance operations.
Microsoft.Maintenance.PostMaintenanceEventRaised after maintenance job completes and gives an opportunity to perform post maintenance operations.

Example event

Following is an example for a schema of a pre-maintenance event:

[{   "id": "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/testrg/providers/Microsoft.Maintenance/maintenanceConfigurations/contosomaintenanceconfiguration/providers/microsoft.maintenance/applyupdates/20230509150000",   "source": "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/testrg/providers/Microsoft.Maintenance/maintenanceConfigurations/contosomaintenanceconfiguration",   "subject": "contosomaintenanceconfiguration", "data": {    "CorrelationId": "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/testrg/providers/Microsoft.Maintenance/maintenanceConfigurations/contosomaintenanceconfiguration/providers/microsoft.maintenance/applyupdates/20230509150000",     "MaintenanceConfigurationId": "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/testrg/providers/Microsoft.Maintenance/maintenanceConfigurations/contosomaintenanceconfiguration",     "StartDateTime": "2023-05-09T15:00:00Z",     "EndDateTime": "2023-05-09T18:55:00Z",     "CancellationCutOffDateTime": "2023-05-09T14:59:00Z",     "ResourceSubscriptionIds": ["subscription guid 1", "subscription guid 2"] } "type": "Microsoft.Maintenance.PreMaintenanceEvent", "time": "2023-05-09T14:25:00.3717473Z",   "specversion": "1.0" }]

Following is an example for a post maintenance event:

[{   "id": "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/testrg/providers/Microsoft.Maintenance/maintenanceConfigurations/contosomaintenanceconfiguration/providers/microsoft.maintenance/applyupdates/20230509150000",   "source": "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/testrg/providers/Microsoft.Maintenance/maintenanceConfigurations/contosomaintenanceconfiguration",   "subject": "contosomaintenanceconfiguration", "data": {    "CorrelationId": "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/testrg/providers/Microsoft.Maintenance/maintenanceConfigurations/contosomaintenanceconfiguration/providers/microsoft.maintenance/applyupdates/20230509150000",     "MaintenanceConfigurationId": "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/testrg/providers/Microsoft.Maintenance/maintenanceConfigurations/contosomaintenanceconfiguration",     "Status": "Succeeded",    "StartDateTime": "2023-05-09T15:00:00Z",     "EndDateTime": "2023-05-09T18:55:00Z",     "ResourceSubscriptionIds": ["subscription guid 1", "subscription guid 2"] } "type": "Microsoft.Maintenance.PostMaintenanceEvent", "time": "2023-05-09T15:55:00.3717473Z",   "specversion": "1.0" }]

Event properties

An event has the following top-level data:

PropertyTypeDescription
sourcestringFull resource path to the event source. This field isn't writeable. Event Grid provides this value.
subjectstringPublisher-defined path to the event subject.
typestringOne of the registered event types for this event source.
timestringThe time the event is generated based on the provider's UTC time.
IDstringUnique identifier for the event.
dataobjectApp Configuration event data.
specversionstringCloudEvents schema specification version.

The data object has the following properties:

PropertyTypeDescription
CorrelationIdstringThe resource ID of specific maintenance schedule instance.
MaintenanceConfigurationIdstringThe resource ID of maintenance configuration.
StartDateTimestringThe maintenance schedule start time.
EndDateTimestringThe maintenance schedule end time.
CancellationCutOffDateTimestringThe maintenance schedule instance cancellation cut-off time.
ResourceSubscriptionIdsstringThe subscription IDs from which VMs are included in this schedule instance.
StatusstringThe completion status of maintenance schedule instance.

Next steps


Feedback

Was this page helpful?

YesNoNo

Need help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?

  • Last updated on

In this article

Was this page helpful?

YesNo
NoNeed help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?