From fb7d8836ec92420bd593bbafe7c4d573b8a06a1e Mon Sep 17 00:00:00 2001 From: rbandi124 <143381870+rbandi124@users.noreply.github.com> Date: Fri, 17 Apr 2026 15:17:00 -0700 Subject: [PATCH 1/2] Create scheduledevents list acknowledge command --- Commands/maintenance/readme.md | 4 +- .../scheduledevent/_acknowledge.md | 29 -------- Commands/maintenance/scheduledevent/readme.md | 8 -- .../scheduledevents/_acknowledge.md | 29 ++++++++ .../scheduledevents/list/_acknowledge.md | 29 ++++++++ .../scheduledevents/list/readme.md | 8 ++ .../maintenance/scheduledevents/readme.md | 13 ++++ .../2026-02-01-preview.json | 1 + .../2026-02-01-preview.xml | 73 +++++++++++++++++++ .../2026-02-01-preview.json | 1 + .../2026-02-01-preview.xml | 62 ++++++++++++++++ 11 files changed, 218 insertions(+), 39 deletions(-) delete mode 100644 Commands/maintenance/scheduledevent/_acknowledge.md delete mode 100644 Commands/maintenance/scheduledevent/readme.md create mode 100644 Commands/maintenance/scheduledevents/_acknowledge.md create mode 100644 Commands/maintenance/scheduledevents/list/_acknowledge.md create mode 100644 Commands/maintenance/scheduledevents/list/readme.md create mode 100644 Commands/maintenance/scheduledevents/readme.md create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRz/2026-02-01-preview.json create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRz/2026-02-01-preview.xml create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRzL3t9L2Fja25vd2xlZGdl/2026-02-01-preview.json create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRzL3t9L2Fja25vd2xlZGdl/2026-02-01-preview.xml diff --git a/Commands/maintenance/readme.md b/Commands/maintenance/readme.md index 23d490a20..1270596c5 100644 --- a/Commands/maintenance/readme.md +++ b/Commands/maintenance/readme.md @@ -16,8 +16,8 @@ Manage Maintenance - [public-configuration](/Commands/maintenance/public-configuration/readme.md) : Manage public maintenance configuration with maintenance -- [scheduledevent](/Commands/maintenance/scheduledevent/readme.md) -: ScheduledEvents action +- [scheduledevents](/Commands/maintenance/scheduledevents/readme.md) +: Manage Scheduled Events - [update](/Commands/maintenance/update/readme.md) : Manage update with maintenance diff --git a/Commands/maintenance/scheduledevent/_acknowledge.md b/Commands/maintenance/scheduledevent/_acknowledge.md deleted file mode 100644 index 4eb81f2c3..000000000 --- a/Commands/maintenance/scheduledevent/_acknowledge.md +++ /dev/null @@ -1,29 +0,0 @@ -# [Command] _maintenance scheduledevent acknowledge_ - -Acknowledge Scheduled Event - -## Versions - -### [2023-10-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRzL3t9L2Fja25vd2xlZGdl/2023-10-01-preview.xml) **Preview** - - - -#### examples - -- Acknowledge scheduled event of a VirtualMachine - ```bash - maintenance scheduledevent acknowledge --resource-group {resourceGroupName} --resource-type "virtualMachines" --resource-name {VMname} --scheduled-event-id {scheduledEventId} --subscription {subscriptionId} - maintenance scheduledevent acknowledge --ids /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.compute/virtualMachines/{resourceName}/providers/microsoft.maintenance/scheduledevents/{scheduledEventId} - ``` - -- Acknowledge scheduled event of a VirtualMachineScaleSets - ```bash - maintenance scheduledevent acknowledge --resource-group {resourceGroup} --resource-type "virtualMachineScaleSets" --resource-name {VMSSname} --scheduled-event-id {scheduledEventId} --subscription {subscriptionId} - maintenance scheduledevent acknowledge --ids /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.compute/virtualMachineScaleSets/{resourceName}/providers/microsoft.maintenance/scheduledevents/{scheduledEventId} - ``` - -- Acknowledge scheduled event of a AvailabilitySet - ```bash - maintenance scheduledevent acknowledge--resource-group {resourceGroupName} --resource-type "availabilitySets"--resource-name {AVSetname} --scheduled-event-id {scheduledEventId} --subscription {subscriptionId} - maintenance scheduledevent acknowledge --ids /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.compute/AvalabilitySets/{resourceName}/providers/microsoft.maintenance/scheduledevents/{scheduledEventId} - ``` diff --git a/Commands/maintenance/scheduledevent/readme.md b/Commands/maintenance/scheduledevent/readme.md deleted file mode 100644 index d0833e032..000000000 --- a/Commands/maintenance/scheduledevent/readme.md +++ /dev/null @@ -1,8 +0,0 @@ -# [Group] _maintenance scheduledevent_ - -ScheduledEvents action - -## Commands - -- [acknowledge](/Commands/maintenance/scheduledevent/_acknowledge.md) -: Acknowledge Scheduled Event diff --git a/Commands/maintenance/scheduledevents/_acknowledge.md b/Commands/maintenance/scheduledevents/_acknowledge.md new file mode 100644 index 000000000..c49a6978a --- /dev/null +++ b/Commands/maintenance/scheduledevents/_acknowledge.md @@ -0,0 +1,29 @@ +# [Command] _maintenance scheduledevents acknowledge_ + +Acknowledge a single Scheduled Events + +## Versions + +### [2026-02-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRzL3t9L2Fja25vd2xlZGdl/2026-02-01-preview.xml) **Stable** + + + +#### examples + +- Acknowledge a single Scheduled Events on a VirtualMachine + ```bash + maintenance scheduledevents acknowledge --resource-group {resourceGroupName} --resource-type "virtualMachines" --resource-name {VMname} --scheduled-events-id {scheduledEventsId} --subscription {subscriptionId} + 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 + ```bash + maintenance scheduledevents acknowledge --resource-group {resourceGroup} --resource-type "virtualMachineScaleSets" --resource-name {VMSSname} --scheduled-events-id {scheduledEventsId} --subscription {subscriptionId} + 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 AvailabilitySet + ```bash + maintenance scheduledevents acknowledge--resource-group {resourceGroupName} --resource-type "availabilitySets"--resource-name {AVSetname} --scheduled-events-id {scheduledEventsId} --subscription {subscriptionId} + maintenance scheduledevents acknowledge --ids /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.compute/AvalabilitySets/{resourceName}/providers/microsoft.maintenance/scheduledevents/{scheduledEventsId} + ``` diff --git a/Commands/maintenance/scheduledevents/list/_acknowledge.md b/Commands/maintenance/scheduledevents/list/_acknowledge.md new file mode 100644 index 000000000..ccfb53afd --- /dev/null +++ b/Commands/maintenance/scheduledevents/list/_acknowledge.md @@ -0,0 +1,29 @@ +# [Command] _maintenance scheduledevents list acknowledge_ + +Post List of Scheduled Events Acknowledgement + +## Versions + +### [2026-02-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRz/2026-02-01-preview.xml) **Stable** + + + +#### examples + +- Acknowledge list of Scheduled Events on VirtualMachineScaleSets + ```bash + maintenance scheduledevents list acknowledge --resource-group {resourceGroupName} --resource-type "virtualMachinesScaleSets" --resource-name {VMSSName} --subscription {subscriptionId} --value [] + maintenance scheduledevents list acknowledge --ids /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.compute/virtualMachineScaleSets/{VMSSName}/providers/microsoft.maintenance/scheduledevents --body "{value:[]}" + ``` + +- Acknowledge list of ScheduledEvents on AvailabilitySets + ```bash + maintenance scheduledvents list acknowledge --resource-group {resourceGroupName} --resource-type "availabilitySets"--resource-name {AvSetname} --value [] + maintenance scheduledevents list acknowledge --ids /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.compute/availabilitySets/{AvSetName}/providers/microsoft.maintenance/scheduledevents --body "{value:[]}" + ``` + +- Acknowledge a single Scheduled Events on VirtualMachine + ```bash + maintenance scheduledevents list acknowledge --resource-group {resourceGroupName} --resource-type "virtualMachines" --resource-name {VMname} --value [] + maintenance scheduledevents list acknowledge --ids /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.compute/virtualMachines/{virtualMachineName}/providers/microsoft.maintenance/scheduledevents --body "{value:[]}" + ``` diff --git a/Commands/maintenance/scheduledevents/list/readme.md b/Commands/maintenance/scheduledevents/list/readme.md new file mode 100644 index 000000000..3c93a03e9 --- /dev/null +++ b/Commands/maintenance/scheduledevents/list/readme.md @@ -0,0 +1,8 @@ +# [Group] _maintenance scheduledevents list_ + +manage list of scheduled Events + +## Commands + +- [acknowledge](/Commands/maintenance/scheduledevents/list/_acknowledge.md) +: Post List of Scheduled Events Acknowledgement diff --git a/Commands/maintenance/scheduledevents/readme.md b/Commands/maintenance/scheduledevents/readme.md new file mode 100644 index 000000000..e75b1bbaf --- /dev/null +++ b/Commands/maintenance/scheduledevents/readme.md @@ -0,0 +1,13 @@ +# [Group] _maintenance scheduledevents_ + +Manage Scheduled Events + +## Subgroups + +- [list](/Commands/maintenance/scheduledevents/list/readme.md) +: manage list of scheduled Events + +## Commands + +- [acknowledge](/Commands/maintenance/scheduledevents/_acknowledge.md) +: Acknowledge a single Scheduled Events diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRz/2026-02-01-preview.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRz/2026-02-01-preview.json new file mode 100644 index 000000000..8cd1deed2 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRz/2026-02-01-preview.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/{}/{}/providers/microsoft.maintenance/scheduledevents", "version": "2026-02-01-preview", "swagger": "mgmt-plane/maintenance/ResourceProviders/Microsoft.Maintenance/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS97cmVzb3VyY2VUeXBlfS97cmVzb3VyY2VOYW1lfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk1haW50ZW5hbmNlL3NjaGVkdWxlZGV2ZW50cw==/V/MjAyNi0wMi0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "maintenance scheduledevents list", "commands": [{"name": "acknowledge", "version": "2026-02-01-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/{}/{}/providers/microsoft.maintenance/scheduledevents", "version": "2026-02-01-preview", "swagger": "mgmt-plane/maintenance/ResourceProviders/Microsoft.Maintenance/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS97cmVzb3VyY2VUeXBlfS97cmVzb3VyY2VOYW1lfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk1haW50ZW5hbmNlL3NjaGVkdWxlZGV2ZW50cw==/V/MjAyNi0wMi0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "string", "var": "$Path.resourceName", "options": ["resource-name"], "required": true, "idPart": "name", "help": {"short": "Resource name"}}, {"type": "string", "var": "$Path.resourceType", "options": ["resource-type"], "required": true, "idPart": "type", "help": {"short": "Resource type"}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "ScheduledEventsIdList", "args": [{"type": "array", "var": "$scheduledEventsIdList.value", "options": ["value"], "required": true, "group": "ScheduledEventsIdList", "help": {"short": "The list of Scheduled Events Id."}, "item": {"type": "string"}}]}], "operations": [{"operationId": "ScheduledEventOperationGroup_AcknowledgeList", "http": {"path": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Compute/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/scheduledevents", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"pattern": "^[-\\w\\._\\(\\)]+$", "maxLength": 90, "minLength": 1}}, {"type": "string", "name": "resourceName", "arg": "$Path.resourceName", "required": true}, {"type": "string", "name": "resourceType", "arg": "$Path.resourceType", "required": true}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-02-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"schema": {"type": "object", "name": "scheduledEventsIdList", "required": true, "props": [{"type": "array", "name": "value", "arg": "$scheduledEventsIdList.value", "required": true, "item": {"type": "string"}}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "value"}]}}}}, {"isError": true, "body": {"json": {"schema": {"readOnly": true, "type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRz/2026-02-01-preview.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRz/2026-02-01-preview.xml new file mode 100644 index 000000000..5a0bd6ffb --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRz/2026-02-01-preview.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRzL3t9L2Fja25vd2xlZGdl/2026-02-01-preview.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRzL3t9L2Fja25vd2xlZGdl/2026-02-01-preview.json new file mode 100644 index 000000000..905644684 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRzL3t9L2Fja25vd2xlZGdl/2026-02-01-preview.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/{}/{}/providers/microsoft.maintenance/scheduledevents/{}/acknowledge", "version": "2026-02-01-preview", "swagger": "mgmt-plane/maintenance/ResourceProviders/Microsoft.Maintenance/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS97cmVzb3VyY2VUeXBlfS97cmVzb3VyY2VOYW1lfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk1haW50ZW5hbmNlL3NjaGVkdWxlZGV2ZW50cy97c2NoZWR1bGVkRXZlbnRJZH0vYWNrbm93bGVkZ2U=/V/MjAyNi0wMi0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "maintenance scheduledevents", "commands": [{"name": "acknowledge", "version": "2026-02-01-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/{}/{}/providers/microsoft.maintenance/scheduledevents/{}/acknowledge", "version": "2026-02-01-preview", "swagger": "mgmt-plane/maintenance/ResourceProviders/Microsoft.Maintenance/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS97cmVzb3VyY2VUeXBlfS97cmVzb3VyY2VOYW1lfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk1haW50ZW5hbmNlL3NjaGVkdWxlZGV2ZW50cy97c2NoZWR1bGVkRXZlbnRJZH0vYWNrbm93bGVkZ2U=/V/MjAyNi0wMi0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "string", "var": "$Path.resourceName", "options": ["resource-name"], "required": true, "idPart": "name", "help": {"short": "Resource Name"}}, {"type": "string", "var": "$Path.resourceType", "options": ["resource-type"], "required": true, "idPart": "type", "help": {"short": "Resource type"}}, {"type": "string", "var": "$Path.scheduledEventId", "options": ["scheduled-events-id"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Scheduled Events Id. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)"}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "ScheduledEventOperationGroup_Acknowledge", "http": {"path": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Compute/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/scheduledevents/{scheduledEventId}/acknowledge", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"pattern": "^[-\\w\\._\\(\\)]+$", "maxLength": 90, "minLength": 1}}, {"type": "string", "name": "resourceName", "arg": "$Path.resourceName", "required": true}, {"type": "string", "name": "resourceType", "arg": "$Path.resourceType", "required": true}, {"type": "string", "name": "scheduledEventId", "arg": "$Path.scheduledEventId", "required": true}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-02-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "value"}]}}}}, {"isError": true, "body": {"json": {"schema": {"readOnly": true, "type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance"}], "confirmation": ""}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRzL3t9L2Fja25vd2xlZGdl/2026-02-01-preview.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRzL3t9L2Fja25vd2xlZGdl/2026-02-01-preview.xml new file mode 100644 index 000000000..1a4eaaa52 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRzL3t9L2Fja25vd2xlZGdl/2026-02-01-preview.xml @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 600b9f9648f7f69e050638e5084a52ca903e7dd0 Mon Sep 17 00:00:00 2001 From: rbandi124 <143381870+rbandi124@users.noreply.github.com> Date: Mon, 20 Apr 2026 13:03:27 -0700 Subject: [PATCH 2/2] fix examples --- .../scheduledevents/list/_acknowledge.md | 12 ++-- .../2023-10-01-preview.json | 1 - .../2023-10-01-preview.xml | 60 ------------------- 3 files changed, 6 insertions(+), 67 deletions(-) delete mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRzL3t9L2Fja25vd2xlZGdl/2023-10-01-preview.json delete mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRzL3t9L2Fja25vd2xlZGdl/2023-10-01-preview.xml diff --git a/Commands/maintenance/scheduledevents/list/_acknowledge.md b/Commands/maintenance/scheduledevents/list/_acknowledge.md index ccfb53afd..a33bfe3df 100644 --- a/Commands/maintenance/scheduledevents/list/_acknowledge.md +++ b/Commands/maintenance/scheduledevents/list/_acknowledge.md @@ -12,18 +12,18 @@ Post List of Scheduled Events Acknowledgement - Acknowledge list of Scheduled Events on VirtualMachineScaleSets ```bash - maintenance scheduledevents list acknowledge --resource-group {resourceGroupName} --resource-type "virtualMachinesScaleSets" --resource-name {VMSSName} --subscription {subscriptionId} --value [] - maintenance scheduledevents list acknowledge --ids /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.compute/virtualMachineScaleSets/{VMSSName}/providers/microsoft.maintenance/scheduledevents --body "{value:[]}" + maintenance scheduledevents list acknowledge --resource-group {resourceGroupName} --resource-type "virtualMachinesScaleSets" --resource-name {VMSSName} --subscription {subscriptionId} --value ["scheduledEventsId1","scheduledEventsId2",..,"scheduledEventsIdN"] + maintenance scheduledevents list acknowledge --ids /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.compute/virtualMachineScaleSets/{VMSSName}/providers/microsoft.maintenance/scheduledevents --body "{\"value\":[\"scheduledEventsId1\",\"scheduledEventsId2\",..,\"scheduledEventsIdN\"]}" ``` - Acknowledge list of ScheduledEvents on AvailabilitySets ```bash - maintenance scheduledvents list acknowledge --resource-group {resourceGroupName} --resource-type "availabilitySets"--resource-name {AvSetname} --value [] - maintenance scheduledevents list acknowledge --ids /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.compute/availabilitySets/{AvSetName}/providers/microsoft.maintenance/scheduledevents --body "{value:[]}" + maintenance scheduledvents list acknowledge --resource-group {resourceGroupName} --resource-type "availabilitySets"--resource-name {AvSetname} --value ["scheduledEventsId1","scheduledEventsId2",..,"scheduledEventsIdN"] + maintenance scheduledevents list acknowledge --ids /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.compute/availabilitySets/{AvSetName}/providers/microsoft.maintenance/scheduledevents --body "{\"value\":[\"scheduledEventsId1\",\"scheduledEventsId2\",..,\"scheduledEventsIdN\"]}" ``` - Acknowledge a single Scheduled Events on VirtualMachine ```bash - maintenance scheduledevents list acknowledge --resource-group {resourceGroupName} --resource-type "virtualMachines" --resource-name {VMname} --value [] - maintenance scheduledevents list acknowledge --ids /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.compute/virtualMachines/{virtualMachineName}/providers/microsoft.maintenance/scheduledevents --body "{value:[]}" + maintenance scheduledevents list acknowledge --resource-group {resourceGroupName} --resource-type "virtualMachines" --resource-name {VMname} --value ["scheduledEventsId1","scheduledEventsId2",..,"scheduledEventsIdN"] + maintenance scheduledevents list acknowledge --ids /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.compute/virtualMachines/{virtualMachineName}/providers/microsoft.maintenance/scheduledevents --body "{\"value\":[\"scheduledEventsId1\",\"scheduledEventsId2\",..,\"scheduledEventsIdN\"]}" ``` diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRzL3t9L2Fja25vd2xlZGdl/2023-10-01-preview.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRzL3t9L2Fja25vd2xlZGdl/2023-10-01-preview.json deleted file mode 100644 index 180984829..000000000 --- a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRzL3t9L2Fja25vd2xlZGdl/2023-10-01-preview.json +++ /dev/null @@ -1 +0,0 @@ -{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/{}/{}/providers/microsoft.maintenance/scheduledevents/{}/acknowledge", "version": "2023-10-01-preview", "swagger": "mgmt-plane/maintenance/ResourceProviders/Microsoft.Maintenance/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS97cmVzb3VyY2VUeXBlfS97cmVzb3VyY2VOYW1lfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk1haW50ZW5hbmNlL3NjaGVkdWxlZGV2ZW50cy97c2NoZWR1bGVkRXZlbnRJZH0vYWNrbm93bGVkZ2U=/V/MjAyMy0xMC0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "maintenance scheduledevent", "commands": [{"name": "acknowledge", "version": "2023-10-01-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/{}/{}/providers/microsoft.maintenance/scheduledevents/{}/acknowledge", "version": "2023-10-01-preview", "swagger": "mgmt-plane/maintenance/ResourceProviders/Microsoft.Maintenance/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS97cmVzb3VyY2VUeXBlfS97cmVzb3VyY2VOYW1lfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk1haW50ZW5hbmNlL3NjaGVkdWxlZGV2ZW50cy97c2NoZWR1bGVkRXZlbnRJZH0vYWNrbm93bGVkZ2U=/V/MjAyMy0xMC0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "string", "var": "$Path.resourceName", "options": ["resource-name"], "required": true, "idPart": "name", "help": {"short": "Resource Name"}}, {"type": "string", "var": "$Path.resourceType", "options": ["resource-type"], "required": true, "idPart": "type", "help": {"short": "Resource type"}}, {"type": "string", "var": "$Path.scheduledEventId", "options": ["scheduled-event-id"], "required": true, "idPart": "child_name_1", "help": {"short": "Scheduled Event Id. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)"}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "ScheduledEvent_Acknowledge", "http": {"path": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Compute/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/scheduledevents/{scheduledEventId}/acknowledge", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "resourceName", "arg": "$Path.resourceName", "required": true}, {"type": "string", "name": "resourceType", "arg": "$Path.resourceType", "required": true}, {"type": "string", "name": "scheduledEventId", "arg": "$Path.scheduledEventId", "required": true}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2023-10-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "value"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRzL3t9L2Fja25vd2xlZGdl/2023-10-01-preview.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRzL3t9L2Fja25vd2xlZGdl/2023-10-01-preview.xml deleted file mode 100644 index 48469d279..000000000 --- a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2Uvc2NoZWR1bGVkZXZlbnRzL3t9L2Fja25vd2xlZGdl/2023-10-01-preview.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -