az maintenance scheduledevents

Note

This reference is part of the maintenance extension for the Azure CLI (version 2.75.0 or higher). The extension will automatically install the first time you run an az maintenance scheduledevents command. Learn more about extensions.

This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Manage Scheduled Events.

Commands

Name Description Type Status
az maintenance scheduledevents acknowledge

Acknowledge a single ScheduledEvents Id.

Extension Preview
az maintenance scheduledevents list-acknowledge

Acknowledge a list of ScheduledEvents Id.

Extension Preview

az maintenance scheduledevents acknowledge

Preview

Command group 'az maintenance scheduledevents' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Acknowledge a single ScheduledEvents Id.

Approves the event on ScheduledEvents resource before timeout when it is safe to proceed. Supported resource types are VirtualMachines, VirtualMachineScaleSets, AvailabilitySets.

az maintenance scheduledevents acknowledge [--acquire-policy-token]
                                           [--change-reference]
                                           [--ids]
                                           [--name --resource-name]
                                           [--resource-group]
                                           [--resource-type]
                                           [--scheduled-events-id]
                                           [--subscription]

Examples

Acknowledge a single Scheduled Events on a VirtualMachines

az maintenance scheduledevents acknowledge --resource-group {resourceGroupName} --resource-type "virtualMachines" --resource-name {VMname} --scheduled-events-id {scheduledEventsId} --subscription {subscriptionId}
az maintenance scheduledevents acknowledge --ids /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.compute/virtualMachines/{resourceName}/providers/microsoft.maintenance/scheduledevents/{scheduledEventsId}

Acknowledge a single Scheduled Events on a VirtualMachineScaleSets

az maintenance scheduledevents acknowledge --resource-group {resourceGroup} --resource-type "virtualMachineScaleSets" --resource-name {VMSSname} --scheduled-events-id {scheduledEventsId} --subscription {subscriptionId}
az maintenance scheduledevents acknowledge --ids /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.compute/virtualMachineScaleSets/{resourceName}/providers/microsoft.maintenance/scheduledevents/{scheduledEventsId}

Acknowledge a single Scheduled Events on a AvailabilitySets

az maintenance scheduledevents acknowledge--resource-group {resourceGroupName} --resource-type "availabilitySets"--resource-name {AVSetname} --scheduled-events-id {scheduledEventsId} --subscription {subscriptionId}
az maintenance scheduledevents acknowledge --ids /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.compute/AvalabilitySets/{resourceName}/providers/microsoft.maintenance/scheduledevents/{scheduledEventsId}

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

Property Value
Parameter group: Resource Id Arguments
--name --resource-name -n
Preview

Resource Name.

Property Value
Parameter group: Resource Id Arguments
--resource-group -g
Preview

ResourceGroupName.

Property Value
Parameter group: Resource Id Arguments
--resource-type
Preview

Resource Type.

Property Value
Parameter group: Resource Id Arguments
--scheduled-events-id
Preview

ScheduledEvents Id. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).

Property Value
Parameter group: Resource Id Arguments
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Property Value
Parameter group: Resource Id Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az maintenance scheduledevents list-acknowledge

Preview

Command group 'az maintenance scheduledevents' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Acknowledge a list of ScheduledEvents Id.

Approves list of events on ScheduledEvents resource before timeout when it is safe to procced. Supported resource types are VirtualMachines, VirtualMachineScaleSets, AvailabilitySets.

az maintenance scheduledevents list-acknowledge --value
                                                [--acquire-policy-token]
                                                [--change-reference]
                                                [--ids]
                                                [--name --resource-name]
                                                [--resource-group]
                                                [--resource-type]
                                                [--subscription]

Examples

Acknowledge list of Scheduled Events on VirtualMachineScaleSets

az maintenance scheduledevents list-acknowledge --resource-group {resourceGroupName} --resource-type "virtualMachineScaleSets" --resource-name {VMSSName} --subscription {subscriptionId} --value scheduledEventsId1 scheduledEventsId2 .... scheduledEventsIdN
az maintenance scheduledevents list-acknowledge --resource-group {resourceGroupName} --resource-type "virtualMachineScaleSets" --resource-name {VMSSName} --subscription {subscriptionId} --value '["scheduledEventsId1","scheduledEventsId2",..,"scheduledEventsIdN"]'

Acknowledge list of ScheduledEvents on AvailabilitySets

az maintenance scheduledvents list-acknowledge --resource-group {resourceGroupName} --resource-type "availabilitySets"--resource-name {AvSetname} --value scheduledEventsId1 scheduledEventsId2 .... scheduledEventsIdN
az maintenance scheduledvents list-acknowledge --resource-group {resourceGroupName} --resource-type "availabilitySets"--resource-name {AvSetname} --value '["scheduledEventsId1","scheduledEventsId2",..,"scheduledEventsIdN"]'

Acknowledge a single Scheduled Events on VirtualMachines

az maintenance scheduledevents list-acknowledge --resource-group {resourceGroupName} --resource-type "virtualMachines" --resource-name {VMname} --value scheduledEventsId1 scheduledEventsId2 .... scheduledEventsIdN
az maintenance scheduledevents list-acknowledge --resource-group {resourceGroupName} --resource-type "virtualMachines" --resource-name {VMname} --value '["scheduledEventsId1","scheduledEventsId2",..,"scheduledEventsIdN"]'

Required Parameters

--value
Preview

The list of Scheduled Events Id Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

Property Value
Parameter group: ScheduledEventsIdList Arguments

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

Property Value
Parameter group: Resource Id Arguments
--name --resource-name -n
Preview

Resource Name.

Property Value
Parameter group: Resource Id Arguments
--resource-group -g
Preview

ResourceGroupName.

Property Value
Parameter group: Resource Id Arguments
--resource-type
Preview

Resource Type.

Property Value
Parameter group: Resource Id Arguments
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Property Value
Parameter group: Resource Id Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False