From 3bc4b197189e2c333035e670b71f45a94a9d0ffe Mon Sep 17 00:00:00 2001 From: paul-selvaraj <106343510+paul-selvaraj@users.noreply.github.com> Date: Thu, 22 Sep 2022 12:08:38 -0700 Subject: [PATCH 01/19] Adds base for updating Microsoft.Maintenance from version preview/2022-07-01-preview to version 2022-11-01-preview --- .../2022-11-01-preview/Maintenance.json | 2518 +++++++++++++++++ .../ApplyUpdatesResourceGroup_List.json | 25 + .../examples/ApplyUpdates_CreateOrUpdate.json | 23 + .../ApplyUpdates_CreateOrUpdateParent.json | 25 + .../examples/ApplyUpdates_Get.json | 24 + .../examples/ApplyUpdates_GetParent.json | 26 + .../examples/ApplyUpdates_List.json | 24 + ...ignmentsResultWithinSubscription_List.json | 24 + ...nfigurationAssignments_CreateOrUpdate.json | 29 + ...ationAssignments_CreateOrUpdateParent.json | 31 + .../ConfigurationAssignments_Delete.json | 21 + ...ConfigurationAssignments_DeleteParent.json | 23 + .../ConfigurationAssignments_Get.json | 24 + .../ConfigurationAssignments_GetParent.json | 26 + .../ConfigurationAssignments_List.json | 27 + .../ConfigurationAssignments_ListParent.json | 29 + ...nanceConfigurationsResourceGroup_List.json | 32 + ...figurations_CreateOrUpdateForResource.json | 44 + ...nanceConfigurations_DeleteForResource.json | 21 + ...ntenanceConfigurations_GetForResource.json | 29 + ...ions_GetForResource_GuestOSPatchLinux.json | 63 + ...ns_GetForResource_GuestOSPatchWindows.json | 62 + .../MaintenanceConfigurations_List.json | 31 + ...nanceConfigurations_UpdateForResource.json | 44 + .../examples/Operations_List.json | 12 + ...ntenanceConfigurations_GetForResource.json | 28 + .../PublicMaintenanceConfigurations_List.json | 31 + .../examples/Updates_List.json | 28 + .../examples/Updates_ListParent.json | 30 + 29 files changed, 3354 insertions(+) create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdatesResourceGroup_List.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_CreateOrUpdate.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_CreateOrUpdateParent.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_Get.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_GetParent.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_List.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignmentsResultWithinSubscription_List.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_CreateOrUpdate.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_CreateOrUpdateParent.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_Delete.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_DeleteParent.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_Get.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_GetParent.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_List.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_ListParent.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurationsResourceGroup_List.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_CreateOrUpdateForResource.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_DeleteForResource.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_GetForResource.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_GetForResource_GuestOSPatchLinux.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_GetForResource_GuestOSPatchWindows.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_List.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_UpdateForResource.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/Operations_List.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/PublicMaintenanceConfigurations_GetForResource.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/PublicMaintenanceConfigurations_List.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/Updates_List.json create mode 100644 specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/Updates_ListParent.json diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json new file mode 100644 index 000000000000..616a5cce7d94 --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json @@ -0,0 +1,2518 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-07-01-preview", + "title": "MaintenanceManagementClient", + "description": "Azure Maintenance Management Client" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/publicMaintenanceConfigurations": { + "get": { + "tags": [ + "PublicMaintenanceConfigurations" + ], + "summary": "Get Public Maintenance Configuration records", + "operationId": "PublicMaintenanceConfigurations_List", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ListMaintenanceConfigurationsResult" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "PublicMaintenanceConfigurations_List": { + "$ref": "./examples/PublicMaintenanceConfigurations_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/{resourceName}": { + "get": { + "tags": [ + "PublicMaintenanceConfigurations" + ], + "summary": "Get Public Maintenance Configuration record", + "operationId": "PublicMaintenanceConfigurations_Get", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceName", + "in": "path", + "description": "Maintenance Configuration Name", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MaintenanceConfiguration" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-examples": { + "PublicMaintenanceConfigurations_GetForResource": { + "$ref": "./examples/PublicMaintenanceConfigurations_GetForResource.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/applyUpdates/{applyUpdateName}": { + "get": { + "tags": [ + "ApplyUpdates" + ], + "summary": "Track Updates to resource with parent", + "description": "Track maintenance updates to resource with parent", + "operationId": "ApplyUpdates_GetParent", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "Resource group name", + "required": true, + "type": "string" + }, + { + "name": "resourceParentType", + "in": "path", + "description": "Resource parent type", + "required": true, + "type": "string" + }, + { + "name": "resourceParentName", + "in": "path", + "description": "Resource parent identifier", + "required": true, + "type": "string" + }, + { + "name": "providerName", + "in": "path", + "description": "Resource provider name", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "Resource type", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Resource identifier", + "required": true, + "type": "string" + }, + { + "name": "applyUpdateName", + "in": "path", + "description": "applyUpdate Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ApplyUpdate" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-examples": { + "ApplyUpdates_GetParent": { + "$ref": "./examples/ApplyUpdates_GetParent.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/applyUpdates/{applyUpdateName}": { + "get": { + "tags": [ + "ApplyUpdates" + ], + "summary": "Track Updates to resource", + "description": "Track maintenance updates to resource", + "operationId": "ApplyUpdates_Get", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "Resource group name", + "required": true, + "type": "string" + }, + { + "name": "providerName", + "in": "path", + "description": "Resource provider name", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "Resource type", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Resource identifier", + "required": true, + "type": "string" + }, + { + "name": "applyUpdateName", + "in": "path", + "description": "applyUpdate Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ApplyUpdate" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-examples": { + "ApplyUpdates_Get": { + "$ref": "./examples/ApplyUpdates_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/applyUpdates/default": { + "put": { + "tags": [ + "ApplyUpdates" + ], + "summary": "Apply Updates to resource with parent", + "description": "Apply maintenance updates to resource with parent", + "operationId": "ApplyUpdates_CreateOrUpdateParent", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "Resource group name", + "required": true, + "type": "string" + }, + { + "name": "providerName", + "in": "path", + "description": "Resource provider name", + "required": true, + "type": "string" + }, + { + "name": "resourceParentType", + "in": "path", + "description": "Resource parent type", + "required": true, + "type": "string" + }, + { + "name": "resourceParentName", + "in": "path", + "description": "Resource parent identifier", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "Resource type", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Resource identifier", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ApplyUpdate" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-examples": { + "ApplyUpdates_CreateOrUpdateParent": { + "$ref": "./examples/ApplyUpdates_CreateOrUpdateParent.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/applyUpdates/default": { + "put": { + "tags": [ + "ApplyUpdates" + ], + "summary": "Apply Updates to resource", + "description": "Apply maintenance updates to resource", + "operationId": "ApplyUpdates_CreateOrUpdate", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "Resource group name", + "required": true, + "type": "string" + }, + { + "name": "providerName", + "in": "path", + "description": "Resource provider name", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "Resource type", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Resource identifier", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ApplyUpdate" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-examples": { + "ApplyUpdates_CreateOrUpdate": { + "$ref": "./examples/ApplyUpdates_CreateOrUpdate.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}": { + "get": { + "tags": [ + "ConfigurationAssignments" + ], + "summary": "Get configuration assignment", + "description": "Get configuration for resource.", + "operationId": "ConfigurationAssignments_GetParent", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "Resource group name", + "required": true, + "type": "string" + }, + { + "name": "providerName", + "in": "path", + "description": "Resource provider name", + "required": true, + "type": "string" + }, + { + "name": "resourceParentType", + "in": "path", + "description": "Resource parent type", + "required": true, + "type": "string" + }, + { + "name": "resourceParentName", + "in": "path", + "description": "Resource parent identifier", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "Resource type", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Resource identifier", + "required": true, + "type": "string" + }, + { + "name": "configurationAssignmentName", + "in": "path", + "description": "Configuration assignment name", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ConfigurationAssignment" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-examples": { + "ConfigurationAssignments_GetParent": { + "$ref": "./examples/ConfigurationAssignments_GetParent.json" + } + } + }, + "put": { + "tags": [ + "ConfigurationAssignments" + ], + "summary": "Create configuration assignment", + "description": "Register configuration for resource.", + "operationId": "ConfigurationAssignments_CreateOrUpdateParent", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "Resource group name", + "required": true, + "type": "string" + }, + { + "name": "providerName", + "in": "path", + "description": "Resource provider name", + "required": true, + "type": "string" + }, + { + "name": "resourceParentType", + "in": "path", + "description": "Resource parent type", + "required": true, + "type": "string" + }, + { + "name": "resourceParentName", + "in": "path", + "description": "Resource parent identifier", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "Resource type", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Resource identifier", + "required": true, + "type": "string" + }, + { + "name": "configurationAssignmentName", + "in": "path", + "description": "Configuration assignment name", + "required": true, + "type": "string" + }, + { + "name": "configurationAssignment", + "in": "body", + "description": "The configurationAssignment", + "required": true, + "schema": { + "$ref": "#/definitions/ConfigurationAssignment" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ConfigurationAssignment" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-examples": { + "ConfigurationAssignments_CreateOrUpdateParent": { + "$ref": "./examples/ConfigurationAssignments_CreateOrUpdateParent.json" + } + } + }, + "delete": { + "tags": [ + "ConfigurationAssignments" + ], + "summary": "Unregister configuration for resource", + "description": "Unregister configuration for resource.", + "operationId": "ConfigurationAssignments_DeleteParent", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "Resource group name", + "required": true, + "type": "string" + }, + { + "name": "providerName", + "in": "path", + "description": "Resource provider name", + "required": true, + "type": "string" + }, + { + "name": "resourceParentType", + "in": "path", + "description": "Resource parent type", + "required": true, + "type": "string" + }, + { + "name": "resourceParentName", + "in": "path", + "description": "Resource parent identifier", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "Resource type", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Resource identifier", + "required": true, + "type": "string" + }, + { + "name": "configurationAssignmentName", + "in": "path", + "description": "Unique configuration assignment name", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ConfigurationAssignment" + } + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-examples": { + "ConfigurationAssignments_DeleteParent": { + "$ref": "./examples/ConfigurationAssignments_DeleteParent.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}": { + "get": { + "tags": [ + "ConfigurationAssignments" + ], + "summary": "Get configuration assignment", + "description": "Get configuration for resource.", + "operationId": "ConfigurationAssignments_Get", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "Resource group name", + "required": true, + "type": "string" + }, + { + "name": "providerName", + "in": "path", + "description": "Resource provider name", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "Resource type", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Resource identifier", + "required": true, + "type": "string" + }, + { + "name": "configurationAssignmentName", + "in": "path", + "description": "Configuration assignment name", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ConfigurationAssignment" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-examples": { + "ConfigurationAssignments_Get": { + "$ref": "./examples/ConfigurationAssignments_Get.json" + } + } + }, + "put": { + "tags": [ + "ConfigurationAssignments" + ], + "summary": "Create configuration assignment", + "description": "Register configuration for resource.", + "operationId": "ConfigurationAssignments_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "Resource group name", + "required": true, + "type": "string" + }, + { + "name": "providerName", + "in": "path", + "description": "Resource provider name", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "Resource type", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Resource identifier", + "required": true, + "type": "string" + }, + { + "name": "configurationAssignmentName", + "in": "path", + "description": "Configuration assignment name", + "required": true, + "type": "string" + }, + { + "name": "configurationAssignment", + "in": "body", + "description": "The configurationAssignment", + "required": true, + "schema": { + "$ref": "#/definitions/ConfigurationAssignment" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ConfigurationAssignment" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-examples": { + "ConfigurationAssignments_CreateOrUpdate": { + "$ref": "./examples/ConfigurationAssignments_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "ConfigurationAssignments" + ], + "summary": "Unregister configuration for resource", + "description": "Unregister configuration for resource.", + "operationId": "ConfigurationAssignments_Delete", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "Resource group name", + "required": true, + "type": "string" + }, + { + "name": "providerName", + "in": "path", + "description": "Resource provider name", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "Resource type", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Resource identifier", + "required": true, + "type": "string" + }, + { + "name": "configurationAssignmentName", + "in": "path", + "description": "Unique configuration assignment name", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ConfigurationAssignment" + } + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-examples": { + "ConfigurationAssignments_Delete": { + "$ref": "./examples/ConfigurationAssignments_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments": { + "get": { + "tags": [ + "ConfigurationAssignments" + ], + "summary": "List configurationAssignments for resource", + "description": "List configurationAssignments for resource.", + "operationId": "ConfigurationAssignments_ListParent", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "Resource group name", + "required": true, + "type": "string" + }, + { + "name": "providerName", + "in": "path", + "description": "Resource provider name", + "required": true, + "type": "string" + }, + { + "name": "resourceParentType", + "in": "path", + "description": "Resource parent type", + "required": true, + "type": "string" + }, + { + "name": "resourceParentName", + "in": "path", + "description": "Resource parent identifier", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "Resource type", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Resource identifier", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ListConfigurationAssignmentsResult" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "ConfigurationAssignments_ListParent": { + "$ref": "./examples/ConfigurationAssignments_ListParent.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments": { + "get": { + "tags": [ + "ConfigurationAssignments" + ], + "summary": "List configurationAssignments for resource", + "description": "List configurationAssignments for resource.", + "operationId": "ConfigurationAssignments_List", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "Resource group name", + "required": true, + "type": "string" + }, + { + "name": "providerName", + "in": "path", + "description": "Resource provider name", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "Resource type", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Resource identifier", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ListConfigurationAssignmentsResult" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "ConfigurationAssignments_List": { + "$ref": "./examples/ConfigurationAssignments_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}": { + "get": { + "tags": [ + "MaintenanceConfigurations" + ], + "summary": "Get Configuration record", + "operationId": "MaintenanceConfigurations_Get", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "Resource Group Name", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Maintenance Configuration Name", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MaintenanceConfiguration" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-examples": { + "MaintenanceConfigurations_GetForResource": { + "$ref": "./examples/MaintenanceConfigurations_GetForResource.json" + }, + "MaintenanceConfigurations_GetForResource_GuestOSPatchWindows": { + "$ref": "./examples/MaintenanceConfigurations_GetForResource_GuestOSPatchWindows.json" + }, + "MaintenanceConfigurations_GetForResource_GuestOSPatchLinux": { + "$ref": "./examples/MaintenanceConfigurations_GetForResource_GuestOSPatchLinux.json" + } + } + }, + "put": { + "tags": [ + "MaintenanceConfigurations" + ], + "summary": "Create or Update configuration record", + "operationId": "MaintenanceConfigurations_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "Resource Group Name", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Maintenance Configuration Name", + "required": true, + "type": "string" + }, + { + "name": "configuration", + "in": "body", + "description": "The configuration", + "required": true, + "schema": { + "$ref": "#/definitions/MaintenanceConfiguration" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MaintenanceConfiguration" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-examples": { + "MaintenanceConfigurations_CreateOrUpdateForResource": { + "$ref": "./examples/MaintenanceConfigurations_CreateOrUpdateForResource.json" + } + } + }, + "delete": { + "tags": [ + "MaintenanceConfigurations" + ], + "summary": "Delete Configuration record", + "operationId": "MaintenanceConfigurations_Delete", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "Resource Group Name", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Maintenance Configuration Name", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MaintenanceConfiguration" + } + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-examples": { + "MaintenanceConfigurations_DeleteForResource": { + "$ref": "./examples/MaintenanceConfigurations_DeleteForResource.json" + } + } + }, + "patch": { + "tags": [ + "MaintenanceConfigurations" + ], + "summary": "Patch configuration record", + "operationId": "MaintenanceConfigurations_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "Resource Group Name", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Maintenance Configuration Name", + "required": true, + "type": "string" + }, + { + "name": "configuration", + "in": "body", + "description": "The configuration", + "required": true, + "schema": { + "$ref": "#/definitions/MaintenanceConfiguration" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MaintenanceConfiguration" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-examples": { + "MaintenanceConfigurations_UpdateForResource": { + "$ref": "./examples/MaintenanceConfigurations_UpdateForResource.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/maintenanceConfigurations": { + "get": { + "tags": [ + "MaintenanceConfigurations" + ], + "summary": "Get Configuration records within a subscription", + "operationId": "MaintenanceConfigurations_List", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ListMaintenanceConfigurationsResult" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "MaintenanceConfigurations_List": { + "$ref": "./examples/MaintenanceConfigurations_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations": { + "get": { + "tags": [ + "MaintenanceConfigurations" + ], + "summary": "Get Configuration records within a subscription and resource group", + "operationId": "MaintenanceConfigurationsForResourceGroup_List", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "Resource Group Name", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ListMaintenanceConfigurationsResult" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "MaintenanceConfigurationsResourceGroup_List": { + "$ref": "./examples/MaintenanceConfigurationsResourceGroup_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/applyUpdates": { + "get": { + "tags": [ + "ApplyUpdate" + ], + "summary": "Get Configuration records within a subscription", + "operationId": "ApplyUpdates_List", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ListApplyUpdate" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "ApplyUpdates_List": { + "$ref": "./examples/ApplyUpdates_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maintenance/applyUpdates": { + "get": { + "tags": [ + "ApplyUpdate" + ], + "summary": "Get Configuration records within a subscription and resource group", + "operationId": "ApplyUpdateForResourceGroup_List", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "Resource Group Name", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ListApplyUpdate" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "ApplyUpdatesResourceGroup_List": { + "$ref": "./examples/ApplyUpdatesResourceGroup_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/configurationAssignments": { + "get": { + "tags": [ + "ConfigurationAssignments" + ], + "summary": "Get configuration assignment within a subscription", + "operationId": "ConfigurationAssignmentsWithinSubscription_List", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ListConfigurationAssignmentsResult" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "ConfigurationAssignmentsResultWithinSubscription_List": { + "$ref": "./examples/ConfigurationAssignmentsResultWithinSubscription_List.json" + } + } + } + }, + "/providers/Microsoft.Maintenance/operations": { + "get": { + "tags": [ + "Operations" + ], + "summary": "List available operations", + "description": "List the available operations supported by the Microsoft.Maintenance resource provider", + "operationId": "Operations_List", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationsListResult" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/updates": { + "get": { + "tags": [ + "Updates" + ], + "summary": "Get Updates to resource", + "description": "Get updates to resources.", + "operationId": "Updates_ListParent", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "Resource group name", + "required": true, + "type": "string" + }, + { + "name": "providerName", + "in": "path", + "description": "Resource provider name", + "required": true, + "type": "string" + }, + { + "name": "resourceParentType", + "in": "path", + "description": "Resource parent type", + "required": true, + "type": "string" + }, + { + "name": "resourceParentName", + "in": "path", + "description": "Resource parent identifier", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "Resource type", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Resource identifier", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ListUpdatesResult" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "Updates_ListParent": { + "$ref": "./examples/Updates_ListParent.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/updates": { + "get": { + "tags": [ + "Updates" + ], + "summary": "Get Updates to resource", + "description": "Get updates to resources.", + "operationId": "Updates_List", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "description": "Resource group name", + "required": true, + "type": "string" + }, + { + "name": "providerName", + "in": "path", + "description": "Resource provider name", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "Resource type", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Resource identifier", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ListUpdatesResult" + } + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/MaintenanceError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "Updates_List": { + "$ref": "./examples/Updates_List.json" + } + } + } + } + }, + "definitions": { + "ApplyUpdateProperties": { + "description": "Properties for apply update", + "type": "object", + "properties": { + "status": { + "description": "The status", + "enum": [ + "Pending", + "InProgress", + "Completed", + "RetryNow", + "RetryLater" + ], + "type": "string", + "x-ms-enum": { + "name": "UpdateStatus", + "modelAsString": true, + "values": [ + { + "value": "Pending", + "description": "There are pending updates to be installed." + }, + { + "value": "InProgress", + "description": "Updates installation are in progress." + }, + { + "value": "Completed", + "description": "All updates are successfully applied." + }, + { + "value": "RetryNow", + "description": "Updates installation failed but are ready to retry again." + }, + { + "value": "RetryLater", + "description": "Updates installation failed and should be retried later." + } + ] + } + }, + "resourceId": { + "description": "The resourceId", + "type": "string" + }, + "lastUpdateTime": { + "format": "date-time", + "description": "Last Update time", + "type": "string" + } + } + }, + "Resource": { + "description": "Definition of a Resource", + "type": "object", + "properties": { + "id": { + "description": "Fully qualified identifier of the resource", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Name of the resource", + "type": "string", + "readOnly": true + }, + "type": { + "description": "Type of the resource", + "type": "string", + "readOnly": true + }, + "systemData": { + "readOnly": true, + "type": "object", + "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + }, + "x-ms-azure-resource": true + }, + "ApplyUpdate": { + "description": "Apply Update request", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/ApplyUpdateProperties", + "description": "Properties of the apply update", + "x-ms-client-flatten": true + } + } + }, + "ListApplyUpdate": { + "description": "Response for ApplyUpdate list", + "type": "object", + "properties": { + "value": { + "description": "The list of apply updates", + "type": "array", + "items": { + "$ref": "#/definitions/ApplyUpdate" + } + } + } + }, + "ConfigurationAssignmentProperties": { + "description": "Properties for configuration assignment", + "type": "object", + "properties": { + "maintenanceConfigurationId": { + "description": "The maintenance configuration Id", + "type": "string" + }, + "resourceId": { + "description": "The unique resourceId", + "type": "string" + } + } + }, + "ConfigurationAssignment": { + "description": "Configuration Assignment", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "location": { + "description": "Location of the resource", + "type": "string" + }, + "properties": { + "$ref": "#/definitions/ConfigurationAssignmentProperties", + "description": "Properties of the configuration assignment", + "x-ms-client-flatten": true + } + } + }, + "ListConfigurationAssignmentsResult": { + "description": "Response for ConfigurationAssignments list", + "type": "object", + "properties": { + "value": { + "description": "The list of configuration Assignments", + "type": "array", + "items": { + "$ref": "#/definitions/ConfigurationAssignment" + } + } + } + }, + "MaintenanceWindow": { + "description": "Definition of a MaintenanceWindow", + "type": "object", + "properties": { + "startDateTime": { + "description": "Effective start date of the maintenance window in YYYY-MM-DD hh:mm format. The start date can be set to either the current date or future date. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone.", + "type": "string" + }, + "expirationDateTime": { + "description": "Effective expiration date of the maintenance window in YYYY-MM-DD hh:mm format. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone. Expiration date must be set to a future date. If not provided, it will be set to the maximum datetime 9999-12-31 23:59:59.", + "type": "string" + }, + "duration": { + "description": "Duration of the maintenance window in HH:mm format. If not provided, default value will be used based on maintenance scope provided. Example: 05:00.", + "type": "string" + }, + "timeZone": { + "description": "Name of the timezone. List of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. Example: Pacific Standard Time, UTC, W. Europe Standard Time, Korea Standard Time, Cen. Australia Standard Time.", + "type": "string" + }, + "recurEvery": { + "description": "Rate at which a Maintenance window is expected to recur. The rate can be expressed as daily, weekly, or monthly schedules. Daily schedule are formatted as recurEvery: [Frequency as integer]['Day(s)']. If no frequency is provided, the default frequency is 1. Daily schedule examples are recurEvery: Day, recurEvery: 3Days. Weekly schedule are formatted as recurEvery: [Frequency as integer]['Week(s)'] [Optional comma separated list of weekdays Monday-Sunday]. Weekly schedule examples are recurEvery: 3Weeks, recurEvery: Week Saturday,Sunday. Monthly schedules are formatted as [Frequency as integer]['Month(s)'] [Comma separated list of month days] or [Frequency as integer]['Month(s)'] [Week of Month (First, Second, Third, Fourth, Last)] [Weekday Monday-Sunday] [Optional Offset(No. of days)]. Offset value must be between -6 to 6 inclusive. Monthly schedule examples are recurEvery: Month, recurEvery: 2Months, recurEvery: Month day23,day24, recurEvery: Month Last Sunday, recurEvery: Month Fourth Monday, recurEvery: Month Last Sunday Offset-3, recurEvery: Month Third Sunday Offset6.", + "type": "string" + } + } + }, + "MaintenanceConfigurationProperties": { + "description": "Properties for maintenance configuration", + "type": "object", + "properties": { + "namespace": { + "description": "Gets or sets namespace of the resource", + "type": "string" + }, + "extensionProperties": { + "description": "Gets or sets extensionProperties of the maintenanceConfiguration", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "maintenanceScope": { + "description": "Gets or sets maintenanceScope of the configuration", + "enum": [ + "Host", + "Resource", + "OSImage", + "Extension", + "InGuestPatch", + "SQLDB", + "SQLManagedInstance" + ], + "type": "string", + "x-ms-enum": { + "name": "MaintenanceScope", + "modelAsString": true, + "values": [ + { + "value": "Host", + "description": "This maintenance scope controls installation of azure platform updates i.e. services on physical nodes hosting customer VMs." + }, + { + "value": "Resource", + "description": "This maintenance scope controls the default update maintenance of the Azure Resource" + }, + { + "value": "OSImage", + "description": "This maintenance scope controls os image installation on VM/VMSS" + }, + { + "value": "Extension", + "description": "This maintenance scope controls extension installation on VM/VMSS" + }, + { + "value": "InGuestPatch", + "description": "This maintenance scope controls installation of windows and linux packages on VM/VMSS" + }, + { + "value": "SQLDB", + "description": "This maintenance scope controls installation of SQL server platform updates." + }, + { + "value": "SQLManagedInstance", + "description": "This maintenance scope controls installation of SQL managed instance platform update." + } + ] + } + }, + "maintenanceWindow": { + "$ref": "#/definitions/MaintenanceWindow", + "description": "Definition of a MaintenanceWindow", + "x-ms-client-flatten": true + }, + "visibility": { + "description": "Gets or sets the visibility of the configuration. The default value is 'Custom'", + "enum": [ + "Custom", + "Public" + ], + "type": "string", + "x-ms-enum": { + "name": "Visibility", + "modelAsString": true, + "values": [ + { + "value": "Custom", + "description": "Only visible to users with permissions." + }, + { + "value": "Public", + "description": "Visible to all users." + } + ] + } + }, + "installPatches": { + "$ref": "#/definitions/InputPatchConfiguration", + "description": "The input parameters to be passed to the patch run operation." + } + } + }, + "InputPatchConfiguration": { + "type": "object", + "properties": { + "rebootSetting": { + "type": "string", + "enum": [ + "IfRequired", + "Never", + "Always" + ], + "x-ms-enum": { + "name": "RebootOptions", + "modelAsString": true + }, + "default": "IfRequired", + "description": "Possible reboot preference as defined by the user based on which it would be decided to reboot the machine or not after the patch operation is completed." + }, + "windowsParameters": { + "$ref": "#/definitions/InputWindowsParameters", + "description": "Input parameters specific to patching a Windows machine. For Linux machines, do not pass this property." + }, + "linuxParameters": { + "$ref": "#/definitions/InputLinuxParameters", + "description": "Input parameters specific to patching Linux machine. For Windows machines, do not pass this property." + }, + "tasks": { + "description": "Tasks information for the Software update configuration.", + "$ref": "#/definitions/softwareUpdateConfigurationTasks", + "x-ms-client-flatten": true + } + }, + "description": "Input configuration for a patch run" + }, + "InputWindowsParameters": { + "type": "object", + "properties": { + "kbNumbersToExclude": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Windows KBID to be excluded for patching." + }, + "kbNumbersToInclude": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Windows KBID to be included for patching." + }, + "classificationsToInclude": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Classification category of patches to be patched" + }, + "excludeKbsRequiringReboot": { + "type": "boolean", + "description": "Exclude patches which need reboot" + } + }, + "description": "Input properties for patching a Windows machine." + }, + "InputLinuxParameters": { + "type": "object", + "properties": { + "packageNameMasksToExclude": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Package names to be excluded for patching." + }, + "packageNameMasksToInclude": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Package names to be included for patching." + }, + "classificationsToInclude": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Classification category of patches to be patched" + } + }, + "description": "Input properties for patching a Linux machine." + }, + "softwareUpdateConfigurationTasks": { + "type": "object", + "description": "Task properties of the software update configuration.", + "properties": { + "preTasks": { + "type": "array", + "description": "List of pre tasks. e.g. [{'source' :'runbook', 'taskScope': 'Global', 'parameters': { 'arg1': 'value1'}}]", + "items": { + "$ref": "#/definitions/taskProperties", + "x-ms-client-flatten": true + }, + "x-ms-identifiers": [] + }, + "postTasks": { + "type": "array", + "description": "List of post tasks. e.g. [{'source' :'runbook', 'taskScope': 'Resource', 'parameters': { 'arg1': 'value1'}}]", + "items": { + "$ref": "#/definitions/taskProperties", + "x-ms-client-flatten": true + }, + "x-ms-identifiers": [] + } + } + }, + "taskProperties": { + "type": "object", + "description": "Task properties of the software update configuration.", + "properties": { + "parameters": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the parameters of the task." + }, + "source": { + "type": "string", + "description": "Gets or sets the name of the runbook." + }, + "taskScope": { + "enum": [ + "Global", + "Resource" + ], + "description": "Global Task execute once when schedule trigger. Resource task execute for each VM.", + "type": "string", + "x-ms-enum": { + "name": "TaskScope", + "modelAsString": true + }, + "default": "Global" + } + } + }, + "MaintenanceConfiguration": { + "description": "Maintenance configuration record type", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "location": { + "description": "Gets or sets location of the resource", + "type": "string" + }, + "tags": { + "description": "Gets or sets tags of the resource", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "$ref": "#/definitions/MaintenanceConfigurationProperties", + "description": "Gets or sets properties of the resource", + "x-ms-client-flatten": true + } + } + }, + "MaintenanceError": { + "description": "An error response received from the Azure Maintenance service.", + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/ErrorDetails", + "description": "Details of the error" + } + } + }, + "ErrorDetails": { + "description": "An error response details received from the Azure Maintenance service.", + "type": "object", + "properties": { + "code": { + "description": "Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response.", + "type": "string" + }, + "message": { + "description": "Human-readable representation of the error.", + "type": "string" + } + } + }, + "ListMaintenanceConfigurationsResult": { + "description": "Response for MaintenanceConfigurations list", + "type": "object", + "properties": { + "value": { + "description": "The list of maintenance Configurations", + "type": "array", + "items": { + "$ref": "#/definitions/MaintenanceConfiguration" + } + } + } + }, + "OperationsListResult": { + "description": "Result of the List Operations operation", + "type": "object", + "properties": { + "value": { + "description": "A collection of operations", + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "x-ms-identifiers": [ + "name" + ] + } + } + }, + "Operation": { + "description": "Represents an operation returned by the GetOperations request", + "type": "object", + "properties": { + "name": { + "description": "Name of the operation", + "type": "string" + }, + "display": { + "$ref": "#/definitions/OperationInfo", + "description": "Display name of the operation" + }, + "origin": { + "description": "Origin of the operation", + "type": "string" + }, + "properties": { + "description": "Properties of the operation", + "type": "object", + "x-ms-client-flatten": true + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "boolean" + } + } + }, + "OperationInfo": { + "description": "Information about an operation", + "type": "object", + "properties": { + "provider": { + "description": "Name of the provider", + "type": "string" + }, + "resource": { + "description": "Name of the resource type", + "type": "string" + }, + "operation": { + "description": "Name of the operation", + "type": "string" + }, + "description": { + "description": "Description of the operation", + "type": "string" + } + } + }, + "ListUpdatesResult": { + "description": "Response for Updates list", + "type": "object", + "properties": { + "value": { + "description": "The pending updates", + "type": "array", + "items": { + "$ref": "#/definitions/Update" + }, + "x-ms-identifiers": [] + } + } + }, + "Update": { + "description": "Maintenance update on a resource", + "type": "object", + "properties": { + "maintenanceScope": { + "description": "The impact area", + "enum": [ + "Host", + "Resource", + "OSImage", + "Extension", + "InGuestPatch", + "SQLDB", + "SQLManagedInstance" + ], + "type": "string", + "x-ms-enum": { + "name": "MaintenanceScope", + "modelAsString": true, + "values": [ + { + "value": "Host", + "description": "This maintenance scope controls installation of azure platform updates i.e. services on physical nodes hosting customer VMs." + }, + { + "value": "Resource", + "description": "This maintenance scope controls the default update maintenance of the Azure Resource" + }, + { + "value": "OSImage", + "description": "This maintenance scope controls os image installation on VM/VMSS" + }, + { + "value": "Extension", + "description": "This maintenance scope controls extension installation on VM/VMSS" + }, + { + "value": "InGuestPatch", + "description": "This maintenance scope controls installation of windows and linux packages on VM/VMSS" + }, + { + "value": "SQLDB", + "description": "This maintenance scope controls installation of SQL server platform updates." + }, + { + "value": "SQLManagedInstance", + "description": "This maintenance scope controls installation of SQL managed instance platform update." + } + ] + } + }, + "impactType": { + "description": "The impact type", + "enum": [ + "None", + "Freeze", + "Restart", + "Redeploy" + ], + "type": "string", + "x-ms-enum": { + "name": "ImpactType", + "modelAsString": true, + "values": [ + { + "value": "None", + "description": "Pending updates has no impact on resource." + }, + { + "value": "Freeze", + "description": "Pending updates can freeze network or disk io operation on resource." + }, + { + "value": "Restart", + "description": "Pending updates can cause resource to restart." + }, + { + "value": "Redeploy", + "description": "Pending updates can redeploy resource." + } + ] + } + }, + "status": { + "description": "The status", + "enum": [ + "Pending", + "InProgress", + "Completed", + "RetryNow", + "RetryLater" + ], + "type": "string", + "x-ms-enum": { + "name": "UpdateStatus", + "modelAsString": true, + "values": [ + { + "value": "Pending", + "description": "There are pending updates to be installed." + }, + { + "value": "InProgress", + "description": "Updates installation are in progress." + }, + { + "value": "Completed", + "description": "All updates are successfully applied." + }, + { + "value": "RetryNow", + "description": "Updates installation failed but are ready to retry again." + }, + { + "value": "RetryLater", + "description": "Updates installation failed and should be retried later." + } + ] + } + }, + "impactDurationInSec": { + "format": "int32", + "description": "Duration of impact in seconds", + "type": "integer" + }, + "notBefore": { + "format": "date-time", + "description": "Time when Azure will start force updates if not self-updated by customer before this time", + "type": "string" + }, + "properties": { + "$ref": "#/definitions/UpdateProperties", + "description": "Properties of the apply update", + "x-ms-client-flatten": true + } + } + }, + "UpdateProperties": { + "description": "Properties for update", + "type": "object", + "properties": { + "resourceId": { + "description": "The resourceId", + "type": "string" + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + "required": true, + "type": "string" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "Version of the API to be used with the client request.", + "required": true, + "type": "string" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdatesResourceGroup_List.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdatesResourceGroup_List.json new file mode 100644 index 000000000000..38e279fcacc7 --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdatesResourceGroup_List.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "providerName": "Microsoft.Maintenance", + "api-version": "2022-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/applyUpdates/e9b9685d-78e4-44c4-a81c-64a14f9b87b6", + "name": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6", + "type": "Microsoft.Maintenance/applyUpdates", + "properties": { + "resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1", + "status": "Completed" + } + } + ] + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_CreateOrUpdate.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_CreateOrUpdate.json new file mode 100644 index 000000000000..8564ed95f0bc --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_CreateOrUpdate.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "providerName": "Microsoft.Compute", + "resourceType": "virtualMachineScaleSets", + "resourceName": "smdtest1", + "api-version": "2022-07-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/applyUpdates/e9b9685d-78e4-44c4-a81c-64a14f9b87b6", + "name": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6", + "type": "Microsoft.Maintenance/applyUpdates", + "properties": { + "resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1", + "status": "Pending" + } + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_CreateOrUpdateParent.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_CreateOrUpdateParent.json new file mode 100644 index 000000000000..100002cc03ac --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_CreateOrUpdateParent.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "providerName": "Microsoft.Compute", + "resourceParentType": "virtualMachineScaleSets", + "resourceParentName": "smdtest1", + "resourceType": "virtualMachines", + "resourceName": "smdvm1", + "api-version": "2022-07-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/virtualMachines/smdvm1/providers/Microsoft.Maintenance/applyUpdates/e9b9685d-78e4-44c4-a81c-64a14f9b87b6", + "name": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6", + "type": "Microsoft.Maintenance/applyUpdates", + "properties": { + "resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/virtualMachines/smdvm1", + "status": "Pending" + } + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_Get.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_Get.json new file mode 100644 index 000000000000..14e060384652 --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_Get.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "providerName": "Microsoft.Compute", + "resourceType": "virtualMachineScaleSets", + "resourceName": "smdtest1", + "applyUpdateName": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6", + "api-version": "2022-07-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/applyUpdates/e9b9685d-78e4-44c4-a81c-64a14f9b87b6", + "name": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6", + "type": "Microsoft.Maintenance/applyUpdates", + "properties": { + "resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1", + "status": "Completed" + } + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_GetParent.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_GetParent.json new file mode 100644 index 000000000000..1107fa230621 --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_GetParent.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "providerName": "Microsoft.Compute", + "resourceParentType": "virtualMachineScaleSets", + "resourceParentName": "smdtest1", + "resourceType": "virtualMachines", + "resourceName": "smdvm1", + "applyUpdateName": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6", + "api-version": "2022-07-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/virtualMachines/smdvm1/providers/Microsoft.Maintenance/applyUpdates/e9b9685d-78e4-44c4-a81c-64a14f9b87b6", + "name": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6", + "type": "Microsoft.Maintenance/applyUpdates", + "properties": { + "resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/virtualMachines/smdvm1", + "status": "Completed" + } + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_List.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_List.json new file mode 100644 index 000000000000..45108f2e0888 --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_List.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "providerName": "Microsoft.Maintenance", + "api-version": "2022-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/applyUpdates/e9b9685d-78e4-44c4-a81c-64a14f9b87b6", + "name": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6", + "type": "Microsoft.Maintenance/applyUpdates", + "properties": { + "resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1", + "status": "Completed" + } + } + ] + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignmentsResultWithinSubscription_List.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignmentsResultWithinSubscription_List.json new file mode 100644 index 000000000000..2733f9eb675c --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignmentsResultWithinSubscription_List.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "providerName": "Microsoft.Maintenance", + "api-version": "2022-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/configurationAssignments/workervmConfiguration", + "name": "workervmConfiguration", + "type": "Microsoft.Maintenance/configurationAssignments", + "properties": { + "maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1", + "resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1" + } + } + ] + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_CreateOrUpdate.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_CreateOrUpdate.json new file mode 100644 index 000000000000..f89eaef6aaa7 --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_CreateOrUpdate.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "providerName": "Microsoft.Compute", + "resourceType": "virtualMachineScaleSets", + "resourceName": "smdtest1", + "configurationAssignmentName": "workervmConfiguration", + "api-version": "2022-07-01-preview", + "configurationAssignment": { + "properties": { + "maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/configurationAssignments/workervmConfiguration", + "name": "workervmConfiguration", + "type": "Microsoft.Maintenance/configurationAssignments", + "properties": { + "maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1", + "resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1" + } + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_CreateOrUpdateParent.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_CreateOrUpdateParent.json new file mode 100644 index 000000000000..fdcd79921387 --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_CreateOrUpdateParent.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "providerName": "Microsoft.Compute", + "resourceParentType": "virtualMachineScaleSets", + "resourceParentName": "smdtest1", + "resourceType": "virtualMachines", + "resourceName": "smdvm1", + "configurationAssignmentName": "workervmPolicy", + "api-version": "2022-07-01-preview", + "configurationAssignment": { + "properties": { + "maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/policy1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/virtualMachines/smdvm1/providers/Microsoft.Maintenance/configurationAssignments/workervmPolicy", + "name": "workervmPolicy", + "type": "Microsoft.Maintenance/configurationAssignments", + "properties": { + "maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/policy1", + "resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/virtualMachines/smdvm1" + } + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_Delete.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_Delete.json new file mode 100644 index 000000000000..2cd2095309ae --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_Delete.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "providerName": "Microsoft.Compute", + "resourceType": "virtualMachineScaleSets", + "resourceName": "smdtest1", + "configurationAssignmentName": "workervmConfiguration", + "api-version": "2022-07-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/configurationAssignments/workervmConfiguration", + "name": "workervmConfiguration", + "type": "Microsoft.Maintenance/configurationAssignments" + } + }, + "204": {} + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_DeleteParent.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_DeleteParent.json new file mode 100644 index 000000000000..0f2d5a11d6d8 --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_DeleteParent.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "providerName": "Microsoft.Compute", + "resourceParentType": "virtualMachineScaleSets", + "resourceParentName": "smdtest1", + "resourceType": "virtualMachines", + "resourceName": "smdvm1", + "configurationAssignmentName": "workervmConfiguration", + "api-version": "2022-07-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/configurationAssignments/workervmConfiguration", + "name": "workervmConfiguration", + "type": "Microsoft.Maintenance/configurationAssignments" + } + }, + "204": {} + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_Get.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_Get.json new file mode 100644 index 000000000000..e98ebc73375a --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_Get.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "providerName": "Microsoft.Compute", + "resourceType": "virtualMachineScaleSets", + "resourceName": "smdtest1", + "configurationAssignmentName": "workervmConfiguration", + "api-version": "2022-07-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/configurationAssignments/workervmConfiguration", + "name": "workervmConfiguration", + "type": "Microsoft.Maintenance/configurationAssignments", + "properties": { + "maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1", + "resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1" + } + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_GetParent.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_GetParent.json new file mode 100644 index 000000000000..f0941a809237 --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_GetParent.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "providerName": "Microsoft.Compute", + "resourceParentType": "virtualMachineScaleSets", + "resourceParentName": "smdtest1", + "resourceType": "virtualMachines", + "resourceName": "smdvm1", + "configurationAssignmentName": "workervmPolicy", + "api-version": "2022-07-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/virtualMachines/smdvm1/providers/Microsoft.Maintenance/configurationAssignments/workervmPolicy", + "name": "workervmPolicy", + "type": "Microsoft.Maintenance/configurationAssignments", + "properties": { + "maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/policy1", + "resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/virtualMachines/smdvm1" + } + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_List.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_List.json new file mode 100644 index 000000000000..ffcdeb43bcc9 --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_List.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "providerName": "Microsoft.Compute", + "resourceType": "virtualMachineScaleSets", + "resourceName": "smdtest1", + "api-version": "2022-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/configurationAssignments/workervmConfiguration", + "name": "workervmConfiguration", + "type": "Microsoft.Maintenance/configurationAssignments", + "properties": { + "maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1", + "resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1" + } + } + ] + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_ListParent.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_ListParent.json new file mode 100644 index 000000000000..022ade822729 --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_ListParent.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "providerName": "Microsoft.Compute", + "resourceParentType": "virtualMachineScaleSets", + "resourceParentName": "smdtest1", + "resourceType": "virtualMachines", + "resourceName": "smdtestvm1", + "api-version": "2022-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/virtualMachines/smdtestvm1/providers/Microsoft.Maintenance/configurationAssignments/workervmPolicy", + "name": "workervmPolicy", + "type": "Microsoft.Maintenance/configurationAssignments", + "properties": { + "maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/policy1", + "resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/virtualMachines/smdtestvm1" + } + } + ] + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurationsResourceGroup_List.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurationsResourceGroup_List.json new file mode 100644 index 000000000000..f5f7e8d05054 --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurationsResourceGroup_List.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "api-version": "2022-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1", + "name": "configuration1", + "location": "westus2", + "properties": { + "namespace": "Microsoft.Maintenance", + "maintenanceScope": "OSImage", + "visibility": "Custom", + "maintenanceWindow": { + "startDateTime": "2020-04-30 08:00", + "expirationDateTime": "9999-12-31 00:00", + "duration": "05:00", + "timeZone": "Pacific Standard Time", + "recurEvery": "Week Saturday,Sunday" + } + } + } + ] + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_CreateOrUpdateForResource.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_CreateOrUpdateForResource.json new file mode 100644 index 000000000000..af4c2ac67911 --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_CreateOrUpdateForResource.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "resourceName": "configuration1", + "api-version": "2022-07-01-preview", + "configuration": { + "location": "westus2", + "properties": { + "namespace": "Microsoft.Maintenance", + "visibility": "Custom", + "maintenanceScope": "OSImage", + "maintenanceWindow": { + "startDateTime": "2020-04-30 08:00", + "expirationDateTime": "9999-12-31 00:00", + "duration": "05:00", + "timeZone": "Pacific Standard Time", + "recurEvery": "Day" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1", + "name": "configuration1", + "location": "westus2", + "properties": { + "namespace": "Microsoft.Maintenance", + "visibility": "Custom", + "maintenanceScope": "OSImage", + "maintenanceWindow": { + "startDateTime": "2020-04-30 08:00", + "expirationDateTime": "9999-12-31 00:00", + "duration": "05:00", + "timeZone": "Pacific Standard Time", + "recurEvery": "Day" + } + } + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_DeleteForResource.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_DeleteForResource.json new file mode 100644 index 000000000000..74836e2aa878 --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_DeleteForResource.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "resourceName": "example1", + "api-version": "2022-07-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1", + "name": "configuration1", + "location": "westus2", + "properties": { + "namespace": "Microsoft.Maintenance" + } + } + }, + "204": {} + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_GetForResource.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_GetForResource.json new file mode 100644 index 000000000000..362b13d69c05 --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_GetForResource.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "resourceName": "configuration1", + "api-version": "2022-07-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1", + "name": "configuration1", + "location": "westus2", + "properties": { + "namespace": "Microsoft.Maintenance", + "maintenanceScope": "OSImage", + "visibility": "Custom", + "maintenanceWindow": { + "startDateTime": "2020-04-30 08:00", + "expirationDateTime": "9999-12-31 00:00", + "duration": "05:00", + "timeZone": "Pacific Standard Time", + "recurEvery": "5Days" + } + } + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_GetForResource_GuestOSPatchLinux.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_GetForResource_GuestOSPatchLinux.json new file mode 100644 index 000000000000..9bbd24d320b3 --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_GetForResource_GuestOSPatchLinux.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "resourceName": "configuration1", + "api-version": "2022-07-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1", + "name": "configuration1", + "location": "westus2", + "properties": { + "namespace": "Microsoft.Maintenance", + "maintenanceScope": "InGuestPatch", + "visibility": "Custom", + "maintenanceWindow": { + "startDateTime": "2020-04-30 08:00", + "expirationDateTime": "9999-12-31 00:00", + "duration": "05:00", + "timeZone": "Pacific Standard Time", + "recurEvery": "5Days" + }, + "installPatches": { + "linuxParameters": { + "classificationsToInclude": [ + "Critical" + ], + "packageNameMasksToExclude": [ + "apt", + "http" + ], + "packageNameMasksToInclude": [ + "binutils", + "bin" + ] + }, + "tasks": { + "preTasks": [ + { + "source": "/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourceGroups/functionstest/providers/Microsoft.Web/sites/aktestfunction/functions/HttpTrigger1", + "parameters": { + "COMPUTERNAME": "Computer1" + }, + "taskScope": "Global" + } + ], + "postTasks": [ + { + "source": "/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/akkubdev/providers/Microsoft.Logic/workflows/TestLogicAppMRP", + "parameters": null, + "taskScope": "Resource" + } + ] + }, + "rebootSetting": "Always" + } + } + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_GetForResource_GuestOSPatchWindows.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_GetForResource_GuestOSPatchWindows.json new file mode 100644 index 000000000000..81593bdae594 --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_GetForResource_GuestOSPatchWindows.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "resourceName": "configuration1", + "api-version": "2022-07-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1", + "name": "configuration1", + "location": "westus2", + "properties": { + "namespace": "Microsoft.Maintenance", + "maintenanceScope": "InGuestPatch", + "visibility": "Custom", + "maintenanceWindow": { + "startDateTime": "2020-04-30 08:00", + "expirationDateTime": "9999-12-31 00:00", + "duration": "05:00", + "timeZone": "Pacific Standard Time", + "recurEvery": "5Days" + }, + "installPatches": { + "windowsParameters": { + "classificationsToInclude": [ + "Security" + ], + "kbNumbersToInclude": [ + "KB123456" + ], + "kbNumbersToExclude": [ + "KB234567" + ], + "excludeKbsRequiringReboot": false + }, + "tasks": { + "preTasks": [ + { + "source": "/subscriptions/d4f9cd36-372e-40bc-b858-4750816d6075/resourceGroups/AlertingWorkflows/providers/Microsoft.Automation/automationAccounts/azdeployer/runbooks/AzureAutomationTutorialPython2", + "parameters": { + "COMPUTERNAME": "Computer1" + }, + "taskScope": "Resource" + } + ], + "postTasks": [ + { + "source": "/subscriptions/d4f9cd36-372e-40bc-b858-4750816d6075/resourceGroups/AlertingWorkflows/providers/Microsoft.Automation/automationAccounts/azdeployer/runbooks/AzureAutomationTutorialPython2", + "parameters": null, + "taskScope": "Global" + } + ] + }, + "rebootSetting": "Always" + } + } + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_List.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_List.json new file mode 100644 index 000000000000..5257ef909e01 --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_List.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "api-version": "2022-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1", + "name": "configuration1", + "location": "westus2", + "properties": { + "namespace": "Microsoft.Maintenance", + "maintenanceScope": "OSImage", + "visibility": "Custom", + "maintenanceWindow": { + "startDateTime": "2020-04-30 08:00", + "expirationDateTime": "9999-12-31 00:00", + "duration": "05:00", + "timeZone": "Pacific Standard Time", + "recurEvery": "Week Saturday,Sunday" + } + } + } + ] + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_UpdateForResource.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_UpdateForResource.json new file mode 100644 index 000000000000..dca3534f80c0 --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_UpdateForResource.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "resourceName": "configuration1", + "api-version": "2022-07-01-preview", + "configuration": { + "location": "westus2", + "properties": { + "namespace": "Microsoft.Maintenance", + "visibility": "Custom", + "maintenanceScope": "OSImage", + "maintenanceWindow": { + "startDateTime": "2020-04-30 08:00", + "expirationDateTime": "9999-12-31 00:00", + "duration": "05:00", + "timeZone": "Pacific Standard Time", + "recurEvery": "Month Third Sunday" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1", + "name": "configuration1", + "location": "westus2", + "properties": { + "namespace": "Microsoft.Maintenance", + "maintenanceScope": "OSImage", + "visibility": "Custom", + "maintenanceWindow": { + "startDateTime": "2020-04-30 08:00", + "expirationDateTime": "9999-12-31 00:00", + "duration": "05:00", + "timeZone": "Pacific Standard Time", + "recurEvery": "Month Third Sunday" + } + } + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/Operations_List.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/Operations_List.json new file mode 100644 index 000000000000..12165baf0d33 --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/Operations_List.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2022-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [] + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/PublicMaintenanceConfigurations_GetForResource.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/PublicMaintenanceConfigurations_GetForResource.json new file mode 100644 index 000000000000..d4f7bb4b487f --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/PublicMaintenanceConfigurations_GetForResource.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceName": "configuration1", + "api-version": "2022-07-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/configuration1", + "name": "configuration1", + "location": "westus2", + "properties": { + "namespace": "Microsoft.Maintenance", + "maintenanceScope": "SQLDB", + "visibility": "Public", + "maintenanceWindow": { + "startDateTime": "2020-04-30 08:00", + "expirationDateTime": "9999-12-31 00:00", + "duration": "05:00", + "timeZone": "Pacific Standard Time", + "recurEvery": "2Weeks" + } + } + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/PublicMaintenanceConfigurations_List.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/PublicMaintenanceConfigurations_List.json new file mode 100644 index 000000000000..a624397a4906 --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/PublicMaintenanceConfigurations_List.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "api-version": "2022-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/configuration1", + "name": "configuration1", + "location": "westus2", + "properties": { + "namespace": "Microsoft.Maintenance", + "maintenanceScope": "SQLDB", + "visibility": "Public", + "maintenanceWindow": { + "startDateTime": "2020-04-30 08:00:00", + "expirationDateTime": "9999-12-31 00:00:00", + "duration": "05:00:00", + "timeZone": "Pacific Standard Time", + "recurEvery": "Week Saturday,Sunday" + } + } + } + ] + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/Updates_List.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/Updates_List.json new file mode 100644 index 000000000000..e41ffbcab77a --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/Updates_List.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "providerName": "Microsoft.Compute", + "resourceType": "virtualMachineScaleSets", + "resourceName": "smdtest1", + "api-version": "2022-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "maintenanceScope": "Resource", + "status": "Pending", + "impactType": "Reboot", + "impactDurationInSec": 1440, + "notBefore": "2018-10-09T06:17:44.235Z", + "properties": { + "resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1" + } + } + ] + } + } + } +} diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/Updates_ListParent.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/Updates_ListParent.json new file mode 100644 index 000000000000..434459f85db1 --- /dev/null +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/Updates_ListParent.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "resourceGroupName": "examplerg", + "providerName": "Microsoft.Compute", + "resourceParentType": "virtualMachineScaleSets", + "resourceParentName": "smdtest1", + "resourceType": "virtualMachines", + "resourceName": "1", + "api-version": "2022-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "maintenanceScope": "Resource", + "status": "Pending", + "impactType": "Reboot", + "impactDurationInSec": 1440, + "notBefore": "2018-10-09T06:17:44.235Z", + "properties": { + "resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/virtualMachines/1" + } + } + ] + } + } + } +} From c5a2fff0b0ce46495fb3d5d3d01a2fd12e568cfb Mon Sep 17 00:00:00 2001 From: paul-selvaraj <106343510+paul-selvaraj@users.noreply.github.com> Date: Thu, 22 Sep 2022 12:08:42 -0700 Subject: [PATCH 02/19] Updates readme --- .../maintenance/resource-manager/readme.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/specification/maintenance/resource-manager/readme.md b/specification/maintenance/resource-manager/readme.md index 90cd8084509e..44bc36144a1f 100644 --- a/specification/maintenance/resource-manager/readme.md +++ b/specification/maintenance/resource-manager/readme.md @@ -26,18 +26,27 @@ These are the global settings for the Azure Maintenance API. ``` yaml openapi-type: arm -tag: package-preview-2022-07 +tag: package-preview-2022-11 ``` +### Tag: package-preview-2022-11 + +These settings apply only when `--tag=package-preview-2022-11` is specified on the command line. + +```yaml $(tag) == 'package-preview-2022-11' +input-file: + - Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json +``` ### Tag: package-preview-2022-07 These settings apply only when `--tag=package-preview-2022-07` is specified on the command line. -```yaml $(tag) == 'package-preview-2022-07' +``` yaml $(tag) == 'package-preview-2022-07' input-file: - Microsoft.Maintenance/preview/2022-07-01-preview/Maintenance.json ``` + ### Tag: package-preview-2021-09 These settings apply only when `--tag=package-preview-2021-09` is specified on the command line. From b625c7b141a7066b2ce8f8486aa7d438546cefa2 Mon Sep 17 00:00:00 2001 From: paul-selvaraj <106343510+paul-selvaraj@users.noreply.github.com> Date: Thu, 22 Sep 2022 12:08:45 -0700 Subject: [PATCH 03/19] Updates API version in new specs and examples --- .../preview/2022-11-01-preview/Maintenance.json | 2 +- .../examples/ApplyUpdatesResourceGroup_List.json | 2 +- .../examples/ApplyUpdates_CreateOrUpdate.json | 2 +- .../examples/ApplyUpdates_CreateOrUpdateParent.json | 2 +- .../preview/2022-11-01-preview/examples/ApplyUpdates_Get.json | 2 +- .../2022-11-01-preview/examples/ApplyUpdates_GetParent.json | 2 +- .../preview/2022-11-01-preview/examples/ApplyUpdates_List.json | 2 +- .../ConfigurationAssignmentsResultWithinSubscription_List.json | 2 +- .../examples/ConfigurationAssignments_CreateOrUpdate.json | 2 +- .../examples/ConfigurationAssignments_CreateOrUpdateParent.json | 2 +- .../examples/ConfigurationAssignments_Delete.json | 2 +- .../examples/ConfigurationAssignments_DeleteParent.json | 2 +- .../examples/ConfigurationAssignments_Get.json | 2 +- .../examples/ConfigurationAssignments_GetParent.json | 2 +- .../examples/ConfigurationAssignments_List.json | 2 +- .../examples/ConfigurationAssignments_ListParent.json | 2 +- .../examples/MaintenanceConfigurationsResourceGroup_List.json | 2 +- .../MaintenanceConfigurations_CreateOrUpdateForResource.json | 2 +- .../examples/MaintenanceConfigurations_DeleteForResource.json | 2 +- .../examples/MaintenanceConfigurations_GetForResource.json | 2 +- ...ntenanceConfigurations_GetForResource_GuestOSPatchLinux.json | 2 +- ...enanceConfigurations_GetForResource_GuestOSPatchWindows.json | 2 +- .../examples/MaintenanceConfigurations_List.json | 2 +- .../examples/MaintenanceConfigurations_UpdateForResource.json | 2 +- .../preview/2022-11-01-preview/examples/Operations_List.json | 2 +- .../PublicMaintenanceConfigurations_GetForResource.json | 2 +- .../examples/PublicMaintenanceConfigurations_List.json | 2 +- .../preview/2022-11-01-preview/examples/Updates_List.json | 2 +- .../preview/2022-11-01-preview/examples/Updates_ListParent.json | 2 +- 29 files changed, 29 insertions(+), 29 deletions(-) diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json index 616a5cce7d94..f72a685b3fcf 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-07-01-preview", + "version": "2022-11-01-preview", "title": "MaintenanceManagementClient", "description": "Azure Maintenance Management Client" }, diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdatesResourceGroup_List.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdatesResourceGroup_List.json index 38e279fcacc7..3e5ef6fccd12 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdatesResourceGroup_List.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdatesResourceGroup_List.json @@ -3,7 +3,7 @@ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "resourceGroupName": "examplerg", "providerName": "Microsoft.Maintenance", - "api-version": "2022-07-01-preview" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_CreateOrUpdate.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_CreateOrUpdate.json index 8564ed95f0bc..926c7bc874ac 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_CreateOrUpdate.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_CreateOrUpdate.json @@ -5,7 +5,7 @@ "providerName": "Microsoft.Compute", "resourceType": "virtualMachineScaleSets", "resourceName": "smdtest1", - "api-version": "2022-07-01-preview" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_CreateOrUpdateParent.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_CreateOrUpdateParent.json index 100002cc03ac..3d94d4f4bd28 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_CreateOrUpdateParent.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_CreateOrUpdateParent.json @@ -7,7 +7,7 @@ "resourceParentName": "smdtest1", "resourceType": "virtualMachines", "resourceName": "smdvm1", - "api-version": "2022-07-01-preview" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_Get.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_Get.json index 14e060384652..5493c708abf9 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_Get.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_Get.json @@ -6,7 +6,7 @@ "resourceType": "virtualMachineScaleSets", "resourceName": "smdtest1", "applyUpdateName": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6", - "api-version": "2022-07-01-preview" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_GetParent.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_GetParent.json index 1107fa230621..7a6fe48e9f51 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_GetParent.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_GetParent.json @@ -8,7 +8,7 @@ "resourceType": "virtualMachines", "resourceName": "smdvm1", "applyUpdateName": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6", - "api-version": "2022-07-01-preview" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_List.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_List.json index 45108f2e0888..4398fdba4536 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_List.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ApplyUpdates_List.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "providerName": "Microsoft.Maintenance", - "api-version": "2022-07-01-preview" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignmentsResultWithinSubscription_List.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignmentsResultWithinSubscription_List.json index 2733f9eb675c..737339829ad5 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignmentsResultWithinSubscription_List.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignmentsResultWithinSubscription_List.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "providerName": "Microsoft.Maintenance", - "api-version": "2022-07-01-preview" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_CreateOrUpdate.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_CreateOrUpdate.json index f89eaef6aaa7..8ead02a30c5f 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_CreateOrUpdate.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_CreateOrUpdate.json @@ -6,7 +6,7 @@ "resourceType": "virtualMachineScaleSets", "resourceName": "smdtest1", "configurationAssignmentName": "workervmConfiguration", - "api-version": "2022-07-01-preview", + "api-version": "2022-11-01-preview", "configurationAssignment": { "properties": { "maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1" diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_CreateOrUpdateParent.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_CreateOrUpdateParent.json index fdcd79921387..7e7a290c25fc 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_CreateOrUpdateParent.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_CreateOrUpdateParent.json @@ -8,7 +8,7 @@ "resourceType": "virtualMachines", "resourceName": "smdvm1", "configurationAssignmentName": "workervmPolicy", - "api-version": "2022-07-01-preview", + "api-version": "2022-11-01-preview", "configurationAssignment": { "properties": { "maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/policy1" diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_Delete.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_Delete.json index 2cd2095309ae..a78a15f3b1e9 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_Delete.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_Delete.json @@ -6,7 +6,7 @@ "resourceType": "virtualMachineScaleSets", "resourceName": "smdtest1", "configurationAssignmentName": "workervmConfiguration", - "api-version": "2022-07-01-preview" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_DeleteParent.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_DeleteParent.json index 0f2d5a11d6d8..7255c4fc396b 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_DeleteParent.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_DeleteParent.json @@ -8,7 +8,7 @@ "resourceType": "virtualMachines", "resourceName": "smdvm1", "configurationAssignmentName": "workervmConfiguration", - "api-version": "2022-07-01-preview" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_Get.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_Get.json index e98ebc73375a..bb50f4edebf8 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_Get.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_Get.json @@ -6,7 +6,7 @@ "resourceType": "virtualMachineScaleSets", "resourceName": "smdtest1", "configurationAssignmentName": "workervmConfiguration", - "api-version": "2022-07-01-preview" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_GetParent.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_GetParent.json index f0941a809237..a5d0ac6368a6 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_GetParent.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_GetParent.json @@ -8,7 +8,7 @@ "resourceType": "virtualMachines", "resourceName": "smdvm1", "configurationAssignmentName": "workervmPolicy", - "api-version": "2022-07-01-preview" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_List.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_List.json index ffcdeb43bcc9..6a4f3e2aba0c 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_List.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_List.json @@ -5,7 +5,7 @@ "providerName": "Microsoft.Compute", "resourceType": "virtualMachineScaleSets", "resourceName": "smdtest1", - "api-version": "2022-07-01-preview" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_ListParent.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_ListParent.json index 022ade822729..a98a18a7e3f6 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_ListParent.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/ConfigurationAssignments_ListParent.json @@ -7,7 +7,7 @@ "resourceParentName": "smdtest1", "resourceType": "virtualMachines", "resourceName": "smdtestvm1", - "api-version": "2022-07-01-preview" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurationsResourceGroup_List.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurationsResourceGroup_List.json index f5f7e8d05054..42476c012174 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurationsResourceGroup_List.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurationsResourceGroup_List.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "resourceGroupName": "examplerg", - "api-version": "2022-07-01-preview" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_CreateOrUpdateForResource.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_CreateOrUpdateForResource.json index af4c2ac67911..3065ff0fd0bc 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_CreateOrUpdateForResource.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_CreateOrUpdateForResource.json @@ -3,7 +3,7 @@ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "resourceGroupName": "examplerg", "resourceName": "configuration1", - "api-version": "2022-07-01-preview", + "api-version": "2022-11-01-preview", "configuration": { "location": "westus2", "properties": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_DeleteForResource.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_DeleteForResource.json index 74836e2aa878..bc5805d1f426 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_DeleteForResource.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_DeleteForResource.json @@ -3,7 +3,7 @@ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "resourceGroupName": "examplerg", "resourceName": "example1", - "api-version": "2022-07-01-preview" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_GetForResource.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_GetForResource.json index 362b13d69c05..252d697a2d12 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_GetForResource.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_GetForResource.json @@ -3,7 +3,7 @@ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "resourceGroupName": "examplerg", "resourceName": "configuration1", - "api-version": "2022-07-01-preview" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_GetForResource_GuestOSPatchLinux.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_GetForResource_GuestOSPatchLinux.json index 9bbd24d320b3..da54a48347c4 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_GetForResource_GuestOSPatchLinux.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_GetForResource_GuestOSPatchLinux.json @@ -3,7 +3,7 @@ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "resourceGroupName": "examplerg", "resourceName": "configuration1", - "api-version": "2022-07-01-preview" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_GetForResource_GuestOSPatchWindows.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_GetForResource_GuestOSPatchWindows.json index 81593bdae594..0a0d7b72f5ec 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_GetForResource_GuestOSPatchWindows.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_GetForResource_GuestOSPatchWindows.json @@ -3,7 +3,7 @@ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "resourceGroupName": "examplerg", "resourceName": "configuration1", - "api-version": "2022-07-01-preview" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_List.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_List.json index 5257ef909e01..76a77f0270dc 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_List.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_List.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "api-version": "2022-07-01-preview" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_UpdateForResource.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_UpdateForResource.json index dca3534f80c0..176c41a089f6 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_UpdateForResource.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/MaintenanceConfigurations_UpdateForResource.json @@ -3,7 +3,7 @@ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "resourceGroupName": "examplerg", "resourceName": "configuration1", - "api-version": "2022-07-01-preview", + "api-version": "2022-11-01-preview", "configuration": { "location": "westus2", "properties": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/Operations_List.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/Operations_List.json index 12165baf0d33..46cee64a6490 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/Operations_List.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/Operations_List.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-07-01-preview" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/PublicMaintenanceConfigurations_GetForResource.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/PublicMaintenanceConfigurations_GetForResource.json index d4f7bb4b487f..b51bf2dac4d0 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/PublicMaintenanceConfigurations_GetForResource.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/PublicMaintenanceConfigurations_GetForResource.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "resourceName": "configuration1", - "api-version": "2022-07-01-preview" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/PublicMaintenanceConfigurations_List.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/PublicMaintenanceConfigurations_List.json index a624397a4906..861389a323e5 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/PublicMaintenanceConfigurations_List.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/PublicMaintenanceConfigurations_List.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", - "api-version": "2022-07-01-preview" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/Updates_List.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/Updates_List.json index e41ffbcab77a..dcd15cd685d5 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/Updates_List.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/Updates_List.json @@ -5,7 +5,7 @@ "providerName": "Microsoft.Compute", "resourceType": "virtualMachineScaleSets", "resourceName": "smdtest1", - "api-version": "2022-07-01-preview" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/Updates_ListParent.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/Updates_ListParent.json index 434459f85db1..f106de8cad2b 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/Updates_ListParent.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/examples/Updates_ListParent.json @@ -7,7 +7,7 @@ "resourceParentName": "smdtest1", "resourceType": "virtualMachines", "resourceName": "1", - "api-version": "2022-07-01-preview" + "api-version": "2022-11-01-preview" }, "responses": { "200": { From a39dc3e7320b17414ee61245df1804dc8871fd3b Mon Sep 17 00:00:00 2001 From: Paul Selvaraj Date: Thu, 22 Sep 2022 13:02:38 -0700 Subject: [PATCH 04/19] Add Override Functionality to the Maintenance Configuration. --- .../2022-11-01-preview/Maintenance.json | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json index f72a685b3fcf..5a72122e8b55 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json @@ -1957,6 +1957,45 @@ } } }, + "MaintenanceOverrideProperties": { + "description": "Definition of a MaintenanceOverrideProperties", + "type": "object", + "properties": { + "startDateTime": { + "description": "Effective start date of the maintenance override window in YYYY-MM-DD hh:mm format. The start date can be set to either the current date or future date. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone.", + "type": "string" + }, + "endDateTime": { + "description": "Effective end date of the maintenance override window in YYYY-MM-DD hh:mm format. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone. Expiration date must be set to a future date. If not provided, it will be set to the maximum datetime 9999-12-31 23:59:59.", + "type": "string" + }, + "timeZone": { + "description": "Name of the timezone. List of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. Example: Pacific Standard Time, UTC, W. Europe Standard Time, Korea Standard Time, Cen. Australia Standard Time.", + "type": "string" + }, + "overrideProperties": { + "description": "Gets or sets overrideProperties of the maintenanceConfiguration", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "MaintenanceConfigurationOverrides": { + "type": "object", + "properties": { + "overrides": { + "type": "array", + "description": "Override Properties for the maintenance Configuration.", + "items": { + "$ref": "#/definitions/MaintenanceOverrideProperties", + "description": "Definition of a MaintenanceOverrideProperties", + "x-ms-client-flatten": true + } + } + } + }, "MaintenanceConfigurationProperties": { "description": "Properties for maintenance configuration", "type": "object", @@ -2024,6 +2063,11 @@ "description": "Definition of a MaintenanceWindow", "x-ms-client-flatten": true }, + "overrides":{ + "$ref": "#/definitions/MaintenanceConfigurationOverrides", + "description": "Definition of a MaintenanceConfigurationOverrides", + "x-ms-client-flatten": true + }, "visibility": { "description": "Gets or sets the visibility of the configuration. The default value is 'Custom'", "enum": [ From 28d2f7556eb10d8aeb7fe28e4c27489fa5e6ae19 Mon Sep 17 00:00:00 2001 From: Paul Selvaraj Date: Fri, 23 Sep 2022 05:29:04 -0700 Subject: [PATCH 05/19] Adding Maintenance Override Properties to the Maintenance Configuration. --- .../2022-07-01-preview/Maintenance.json | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-07-01-preview/Maintenance.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-07-01-preview/Maintenance.json index 616a5cce7d94..972c79b3f8f5 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-07-01-preview/Maintenance.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-07-01-preview/Maintenance.json @@ -1957,6 +1957,45 @@ } } }, + "MaintenanceOverrideProperties": { + "description": "Definition of a MaintenanceOverrideProperties", + "type": "object", + "properties": { + "startDateTime": { + "description": "Effective start date of the maintenance override window in YYYY-MM-DD hh:mm format. The start date can be set to either the current date or future date. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone.", + "type": "string" + }, + "endDateTime": { + "description": "Effective end date of the maintenance override window in YYYY-MM-DD hh:mm format. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone. Expiration date must be set to a future date. If not provided, it will be set to the maximum datetime 9999-12-31 23:59:59.", + "type": "string" + }, + "timeZone": { + "description": "Name of the timezone. List of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. Example: Pacific Standard Time, UTC, W. Europe Standard Time, Korea Standard Time, Cen. Australia Standard Time.", + "type": "string" + }, + "overrideProperties": { + "description": "Gets or sets overrideProperties of the maintenanceConfiguration", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "MaintenanceConfigurationOverrides": { + "type": "object", + "properties": { + "overrides": { + "type": "array", + "description": "Override Properties for the maintenance Configuration.", + "items": { + "$ref": "#/definitions/MaintenanceOverrideProperties", + "description": "Definition of a MaintenanceOverrideProperties", + "x-ms-client-flatten": true + } + } + } + }, "MaintenanceConfigurationProperties": { "description": "Properties for maintenance configuration", "type": "object", @@ -2024,6 +2063,11 @@ "description": "Definition of a MaintenanceWindow", "x-ms-client-flatten": true }, + "overrides": { + "$ref": "#/definitions/MaintenanceConfigurationOverrides", + "description": "Definition of the override properties", + "x-ms-client-flatten": true + }, "visibility": { "description": "Gets or sets the visibility of the configuration. The default value is 'Custom'", "enum": [ From ba0aa9f002f543f14355215e50b71496ce1af881 Mon Sep 17 00:00:00 2001 From: Paul Selvaraj Date: Fri, 23 Sep 2022 05:30:32 -0700 Subject: [PATCH 06/19] Revert "Adding Maintenance Override Properties to the Maintenance Configuration." This reverts commit 28d2f7556eb10d8aeb7fe28e4c27489fa5e6ae19. --- .../2022-07-01-preview/Maintenance.json | 44 ------------------- 1 file changed, 44 deletions(-) diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-07-01-preview/Maintenance.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-07-01-preview/Maintenance.json index 972c79b3f8f5..616a5cce7d94 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-07-01-preview/Maintenance.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-07-01-preview/Maintenance.json @@ -1957,45 +1957,6 @@ } } }, - "MaintenanceOverrideProperties": { - "description": "Definition of a MaintenanceOverrideProperties", - "type": "object", - "properties": { - "startDateTime": { - "description": "Effective start date of the maintenance override window in YYYY-MM-DD hh:mm format. The start date can be set to either the current date or future date. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone.", - "type": "string" - }, - "endDateTime": { - "description": "Effective end date of the maintenance override window in YYYY-MM-DD hh:mm format. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone. Expiration date must be set to a future date. If not provided, it will be set to the maximum datetime 9999-12-31 23:59:59.", - "type": "string" - }, - "timeZone": { - "description": "Name of the timezone. List of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. Example: Pacific Standard Time, UTC, W. Europe Standard Time, Korea Standard Time, Cen. Australia Standard Time.", - "type": "string" - }, - "overrideProperties": { - "description": "Gets or sets overrideProperties of the maintenanceConfiguration", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "MaintenanceConfigurationOverrides": { - "type": "object", - "properties": { - "overrides": { - "type": "array", - "description": "Override Properties for the maintenance Configuration.", - "items": { - "$ref": "#/definitions/MaintenanceOverrideProperties", - "description": "Definition of a MaintenanceOverrideProperties", - "x-ms-client-flatten": true - } - } - } - }, "MaintenanceConfigurationProperties": { "description": "Properties for maintenance configuration", "type": "object", @@ -2063,11 +2024,6 @@ "description": "Definition of a MaintenanceWindow", "x-ms-client-flatten": true }, - "overrides": { - "$ref": "#/definitions/MaintenanceConfigurationOverrides", - "description": "Definition of the override properties", - "x-ms-client-flatten": true - }, "visibility": { "description": "Gets or sets the visibility of the configuration. The default value is 'Custom'", "enum": [ From ba55202c82d6e43495f606cf8af3c33cdb96f584 Mon Sep 17 00:00:00 2001 From: Paul Selvaraj Date: Wed, 7 Dec 2022 12:55:03 -0800 Subject: [PATCH 07/19] Adding Maintenance Override Properties to the Maintenance Configuration. --- .../2022-07-01-preview/Maintenance.json | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-07-01-preview/Maintenance.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-07-01-preview/Maintenance.json index 616a5cce7d94..972c79b3f8f5 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-07-01-preview/Maintenance.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-07-01-preview/Maintenance.json @@ -1957,6 +1957,45 @@ } } }, + "MaintenanceOverrideProperties": { + "description": "Definition of a MaintenanceOverrideProperties", + "type": "object", + "properties": { + "startDateTime": { + "description": "Effective start date of the maintenance override window in YYYY-MM-DD hh:mm format. The start date can be set to either the current date or future date. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone.", + "type": "string" + }, + "endDateTime": { + "description": "Effective end date of the maintenance override window in YYYY-MM-DD hh:mm format. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone. Expiration date must be set to a future date. If not provided, it will be set to the maximum datetime 9999-12-31 23:59:59.", + "type": "string" + }, + "timeZone": { + "description": "Name of the timezone. List of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. Example: Pacific Standard Time, UTC, W. Europe Standard Time, Korea Standard Time, Cen. Australia Standard Time.", + "type": "string" + }, + "overrideProperties": { + "description": "Gets or sets overrideProperties of the maintenanceConfiguration", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "MaintenanceConfigurationOverrides": { + "type": "object", + "properties": { + "overrides": { + "type": "array", + "description": "Override Properties for the maintenance Configuration.", + "items": { + "$ref": "#/definitions/MaintenanceOverrideProperties", + "description": "Definition of a MaintenanceOverrideProperties", + "x-ms-client-flatten": true + } + } + } + }, "MaintenanceConfigurationProperties": { "description": "Properties for maintenance configuration", "type": "object", @@ -2024,6 +2063,11 @@ "description": "Definition of a MaintenanceWindow", "x-ms-client-flatten": true }, + "overrides": { + "$ref": "#/definitions/MaintenanceConfigurationOverrides", + "description": "Definition of the override properties", + "x-ms-client-flatten": true + }, "visibility": { "description": "Gets or sets the visibility of the configuration. The default value is 'Custom'", "enum": [ From 5692b3a125f94a1a207170cdf1cb9680f0361064 Mon Sep 17 00:00:00 2001 From: Paul Selvaraj Date: Wed, 7 Dec 2022 13:20:21 -0800 Subject: [PATCH 08/19] Adding "x-ms-identifiers": [] to fix lint error. --- .../preview/2022-11-01-preview/Maintenance.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json index 5a72122e8b55..21cacf0b4718 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json @@ -1992,7 +1992,8 @@ "$ref": "#/definitions/MaintenanceOverrideProperties", "description": "Definition of a MaintenanceOverrideProperties", "x-ms-client-flatten": true - } + }, + "x-ms-identifiers": [] } } }, From 4b55c4fb4894e70510165df8014dbc88b9e4fa46 Mon Sep 17 00:00:00 2001 From: Paul Selvaraj Date: Wed, 7 Dec 2022 13:21:52 -0800 Subject: [PATCH 09/19] Adding description to the Override Properties. --- .../preview/2022-11-01-preview/Maintenance.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json index 21cacf0b4718..12c4a548505b 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json @@ -1984,6 +1984,7 @@ }, "MaintenanceConfigurationOverrides": { "type": "object", + "description": "List of Override Properties for the maintenance Configuration.", "properties": { "overrides": { "type": "array", From 097f1987e9f8e25d08dbafb6b4a7cf7b073c006b Mon Sep 17 00:00:00 2001 From: Paul Selvaraj Date: Wed, 7 Dec 2022 13:26:58 -0800 Subject: [PATCH 10/19] Swagger Prettier Check Fix --- .../preview/2022-11-01-preview/Maintenance.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json index 12c4a548505b..5024dfdc57ba 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json @@ -2065,7 +2065,7 @@ "description": "Definition of a MaintenanceWindow", "x-ms-client-flatten": true }, - "overrides":{ + "overrides": { "$ref": "#/definitions/MaintenanceConfigurationOverrides", "description": "Definition of a MaintenanceConfigurationOverrides", "x-ms-client-flatten": true From d9f8645118eadfc063ad2d81dfe79f395f5f6e8a Mon Sep 17 00:00:00 2001 From: Paul Selvaraj Date: Thu, 8 Dec 2022 23:10:31 -0800 Subject: [PATCH 11/19] Reverting the Changes in the 07-01 preview version --- .../2022-07-01-preview/Maintenance.json | 44 ------------------- 1 file changed, 44 deletions(-) diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-07-01-preview/Maintenance.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-07-01-preview/Maintenance.json index 972c79b3f8f5..616a5cce7d94 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-07-01-preview/Maintenance.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-07-01-preview/Maintenance.json @@ -1957,45 +1957,6 @@ } } }, - "MaintenanceOverrideProperties": { - "description": "Definition of a MaintenanceOverrideProperties", - "type": "object", - "properties": { - "startDateTime": { - "description": "Effective start date of the maintenance override window in YYYY-MM-DD hh:mm format. The start date can be set to either the current date or future date. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone.", - "type": "string" - }, - "endDateTime": { - "description": "Effective end date of the maintenance override window in YYYY-MM-DD hh:mm format. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone. Expiration date must be set to a future date. If not provided, it will be set to the maximum datetime 9999-12-31 23:59:59.", - "type": "string" - }, - "timeZone": { - "description": "Name of the timezone. List of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. Example: Pacific Standard Time, UTC, W. Europe Standard Time, Korea Standard Time, Cen. Australia Standard Time.", - "type": "string" - }, - "overrideProperties": { - "description": "Gets or sets overrideProperties of the maintenanceConfiguration", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "MaintenanceConfigurationOverrides": { - "type": "object", - "properties": { - "overrides": { - "type": "array", - "description": "Override Properties for the maintenance Configuration.", - "items": { - "$ref": "#/definitions/MaintenanceOverrideProperties", - "description": "Definition of a MaintenanceOverrideProperties", - "x-ms-client-flatten": true - } - } - } - }, "MaintenanceConfigurationProperties": { "description": "Properties for maintenance configuration", "type": "object", @@ -2063,11 +2024,6 @@ "description": "Definition of a MaintenanceWindow", "x-ms-client-flatten": true }, - "overrides": { - "$ref": "#/definitions/MaintenanceConfigurationOverrides", - "description": "Definition of the override properties", - "x-ms-client-flatten": true - }, "visibility": { "description": "Gets or sets the visibility of the configuration. The default value is 'Custom'", "enum": [ From 64c6defd933ecce890cb156674ac8a686cb89db0 Mon Sep 17 00:00:00 2001 From: Paul Selvaraj Date: Thu, 15 Dec 2022 19:08:07 -0800 Subject: [PATCH 12/19] Address PR comments --- .../preview/2022-11-01-preview/Maintenance.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json index 5024dfdc57ba..fc35f17ce03c 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json @@ -1963,11 +1963,11 @@ "properties": { "startDateTime": { "description": "Effective start date of the maintenance override window in YYYY-MM-DD hh:mm format. The start date can be set to either the current date or future date. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone.", - "type": "string" + "type": "date-time" }, "endDateTime": { "description": "Effective end date of the maintenance override window in YYYY-MM-DD hh:mm format. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone. Expiration date must be set to a future date. If not provided, it will be set to the maximum datetime 9999-12-31 23:59:59.", - "type": "string" + "type": "date-time" }, "timeZone": { "description": "Name of the timezone. List of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. Example: Pacific Standard Time, UTC, W. Europe Standard Time, Korea Standard Time, Cen. Australia Standard Time.", @@ -1994,7 +1994,7 @@ "description": "Definition of a MaintenanceOverrideProperties", "x-ms-client-flatten": true }, - "x-ms-identifiers": [] + "x-ms-identifiers": ["mrp-configuration-override"] } } }, @@ -2067,7 +2067,7 @@ }, "overrides": { "$ref": "#/definitions/MaintenanceConfigurationOverrides", - "description": "Definition of a MaintenanceConfigurationOverrides", + "description": "Override the Maintenance Window for a specific period", "x-ms-client-flatten": true }, "visibility": { From 39b2dbcd0b389e5407e4e26ef4966e6e38cc1098 Mon Sep 17 00:00:00 2001 From: Paul Selvaraj Date: Tue, 20 Dec 2022 11:07:41 -0800 Subject: [PATCH 13/19] Fixing the Datetime type --- .../preview/2022-11-01-preview/Maintenance.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json index fc35f17ce03c..b82374995cb8 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json @@ -1963,11 +1963,11 @@ "properties": { "startDateTime": { "description": "Effective start date of the maintenance override window in YYYY-MM-DD hh:mm format. The start date can be set to either the current date or future date. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone.", - "type": "date-time" + "type": "datetime" }, "endDateTime": { "description": "Effective end date of the maintenance override window in YYYY-MM-DD hh:mm format. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone. Expiration date must be set to a future date. If not provided, it will be set to the maximum datetime 9999-12-31 23:59:59.", - "type": "date-time" + "type": "datetime" }, "timeZone": { "description": "Name of the timezone. List of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. Example: Pacific Standard Time, UTC, W. Europe Standard Time, Korea Standard Time, Cen. Australia Standard Time.", @@ -2512,7 +2512,7 @@ "type": "integer" }, "notBefore": { - "format": "date-time", + "format": "datetime", "description": "Time when Azure will start force updates if not self-updated by customer before this time", "type": "string" }, From c0eac1f4a57b7a9fa5df8c5ca0fb66270b3ed3ca Mon Sep 17 00:00:00 2001 From: Paul Selvaraj Date: Tue, 20 Dec 2022 20:21:38 -0800 Subject: [PATCH 14/19] Fixing Code Checks --- .../preview/2022-11-01-preview/Maintenance.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json index b82374995cb8..585099b37f2a 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json @@ -1963,11 +1963,15 @@ "properties": { "startDateTime": { "description": "Effective start date of the maintenance override window in YYYY-MM-DD hh:mm format. The start date can be set to either the current date or future date. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone.", - "type": "datetime" + "name": "dateTime", + "type": "string", + "format": "date-time" }, "endDateTime": { "description": "Effective end date of the maintenance override window in YYYY-MM-DD hh:mm format. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone. Expiration date must be set to a future date. If not provided, it will be set to the maximum datetime 9999-12-31 23:59:59.", - "type": "datetime" + "name": "dateTime", + "type": "string", + "format": "date-time" }, "timeZone": { "description": "Name of the timezone. List of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. Example: Pacific Standard Time, UTC, W. Europe Standard Time, Korea Standard Time, Cen. Australia Standard Time.", @@ -1994,7 +1998,7 @@ "description": "Definition of a MaintenanceOverrideProperties", "x-ms-client-flatten": true }, - "x-ms-identifiers": ["mrp-configuration-override"] + "x-ms-identifiers": [] } } }, From 46e5fcdcc039ccdfce582566f6830afb3d18f06a Mon Sep 17 00:00:00 2001 From: Paul Selvaraj Date: Tue, 20 Dec 2022 23:51:28 -0800 Subject: [PATCH 15/19] Fixing DateTime --- .../preview/2022-11-01-preview/Maintenance.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json index 585099b37f2a..937dece74cc4 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json @@ -2516,7 +2516,7 @@ "type": "integer" }, "notBefore": { - "format": "datetime", + "format": "date-time", "description": "Time when Azure will start force updates if not self-updated by customer before this time", "type": "string" }, From bb9f76ccbe88777ba9e2d99ff12b14481e4eee14 Mon Sep 17 00:00:00 2001 From: Paul Selvaraj Date: Tue, 20 Dec 2022 23:58:31 -0800 Subject: [PATCH 16/19] Removing Name from the json --- .../preview/2022-11-01-preview/Maintenance.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json index 937dece74cc4..ac89f84b0441 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json @@ -1963,13 +1963,11 @@ "properties": { "startDateTime": { "description": "Effective start date of the maintenance override window in YYYY-MM-DD hh:mm format. The start date can be set to either the current date or future date. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone.", - "name": "dateTime", "type": "string", "format": "date-time" }, "endDateTime": { "description": "Effective end date of the maintenance override window in YYYY-MM-DD hh:mm format. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone. Expiration date must be set to a future date. If not provided, it will be set to the maximum datetime 9999-12-31 23:59:59.", - "name": "dateTime", "type": "string", "format": "date-time" }, From ab083a7d04c306d612d77d00aae2b77f8308bc1b Mon Sep 17 00:00:00 2001 From: Paul Selvaraj Date: Thu, 5 Jan 2023 11:25:39 -0800 Subject: [PATCH 17/19] Triggering a API Check run --- .../preview/2022-11-01-preview/Maintenance.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json index ac89f84b0441..2f59548ff6ea 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json @@ -48,7 +48,7 @@ "$ref": "#/definitions/MaintenanceError" } } - }, + }, "x-ms-pageable": { "nextLinkName": null }, From 81480ac6aec8c62b8e8bfc64841a4a16d8a50414 Mon Sep 17 00:00:00 2001 From: Paul Selvaraj Date: Thu, 12 Jan 2023 23:59:50 -0800 Subject: [PATCH 18/19] Pretty Check --- .../preview/2022-11-01-preview/Maintenance.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json index 2f59548ff6ea..ac89f84b0441 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json @@ -48,7 +48,7 @@ "$ref": "#/definitions/MaintenanceError" } } - }, + }, "x-ms-pageable": { "nextLinkName": null }, From fb9650297abf674b5be3430c855e1d319d256900 Mon Sep 17 00:00:00 2001 From: Paul Selvaraj Date: Fri, 13 Jan 2023 15:30:05 -0800 Subject: [PATCH 19/19] Changed Description --- .../preview/2022-11-01-preview/Maintenance.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json index ac89f84b0441..93779ab3b25b 100644 --- a/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json +++ b/specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json @@ -112,7 +112,7 @@ "ApplyUpdates" ], "summary": "Track Updates to resource with parent", - "description": "Track maintenance updates to resource with parent", + "description": "Track apply maintenance updates to resource with parent", "operationId": "ApplyUpdates_GetParent", "consumes": [], "produces": [