Skip to content

Commit

Permalink
[Hub Generated] Publish private branch 'dev-maintenance-Microsoft.Mai…
Browse files Browse the repository at this point in the history
…ntenance-2023-04-01' (#23832)

* Adds base for updating Microsoft.Maintenance from version preview/2022-07-01-preview to version 2023-04-01

* Updates readme

* Updates API version in new specs and examples

* Updated schema to support confiuration assignment to resource group and
subscription.

Removed pre/post task schema.

* Added 201 response code for Maintenance Configuration, Configuration
Assignment and apply update put call.

* Added osTypes Filter in configuration assignment.

* Updated description for osType property.

* Added 202 status for delete operation.
Corrected path for resource group get operation.

* Fixed linter issue.

* Added x-ms-long-running-operation and removed supression

* Added x-ms-long-running-operation for delete api.

* Added locations.

* Suppressed LroErrorContent

* Added suporession for 202 status

---------

Co-authored-by: Kalpesh Chavan <[email protected]>
  • Loading branch information
KalpeshChavan12 and Kalpesh Chavan authored May 8, 2023
1 parent da459cd commit 3ce676c
Show file tree
Hide file tree
Showing 39 changed files with 4,545 additions and 1 deletion.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
"resourceGroupName": "examplerg",
"providerName": "Microsoft.Maintenance",
"api-version": "2023-04-01"
},
"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"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
"resourceGroupName": "examplerg",
"providerName": "Microsoft.Compute",
"resourceType": "virtualMachineScaleSets",
"resourceName": "smdtest1",
"api-version": "2023-04-01"
},
"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"
}
}
},
"201": {
"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"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
"resourceGroupName": "examplerg",
"providerName": "Microsoft.Compute",
"resourceParentType": "virtualMachineScaleSets",
"resourceParentName": "smdtest1",
"resourceType": "virtualMachines",
"resourceName": "smdvm1",
"api-version": "2023-04-01"
},
"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"
}
}
},
"201": {
"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"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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": "2023-04-01"
},
"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"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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": "2023-04-01"
},
"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"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
"providerName": "Microsoft.Maintenance",
"api-version": "2023-04-01"
},
"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"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
{
"parameters": {
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
"resourceGroupName": "examplerg",
"configurationAssignmentName": "workervmConfiguration",
"api-version": "2023-04-01",
"configurationAssignment": {
"properties": {
"maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1",
"filter": {
"resourceTypes": [
"Microsoft.HybridCompute/machines",
"Microsoft.Compute/virtualMachines"
],
"tagSettings": {
"tags": {
"tag1": [
"tag1Value1",
"tag1Value2",
"tag1Value3"
],
"tag2": [
"tag2Value1",
"tag2Value2",
"tag2Value3"
]
},
"filterOperator": "Any"
},
"locations": [
"Japan East",
"UK South"
]
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/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",
"filter": {
"resourceTypes": [
"Microsoft.HybridCompute/machines",
"Microsoft.Compute/virtualMachines"
],
"osTypes": [
"Windows",
"Linux"
],
"tagSettings": {
"tags": {
"tag1": [
"tag1Value1",
"tag1Value2",
"tag1Value3"
],
"tag2": [
"tag2Value1",
"tag2Value2",
"tag2Value3"
]
},
"filterOperator": "Any"
},
"locations": [
"Japan East",
"UK South"
]
}
}
}
},
"201": {
"body": {
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/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",
"filter": {
"resourceTypes": [
"Microsoft.HybridCompute/machines",
"Microsoft.Compute/virtualMachines"
],
"tagSettings": {
"tags": {
"tag1": [
"tag1Value1",
"tag1Value2",
"tag1Value3"
],
"tag2": [
"tag2Value1",
"tag2Value2",
"tag2Value3"
]
},
"filterOperator": "Any"
},
"locations": [
"Japan East",
"UK South"
]
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
"resourceGroupName": "examplerg",
"configurationAssignmentName": "workervmConfiguration",
"api-version": "2023-04-01"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/configurationAssignments/workervmConfiguration",
"name": "workervmConfiguration",
"type": "Microsoft.Maintenance/configurationAssignments"
}
},
"204": {},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"parameters": {
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
"resourceGroupName": "examplerg",
"configurationAssignmentName": "workervmConfiguration",
"api-version": "2023-04-01"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/configurationAssignments/workervmConfiguration",
"name": "workervmConfiguration",
"type": "Microsoft.Maintenance/configurationAssignments",
"properties": {
"filter": {
"resourceTypes": [
"Microsoft.HybridCompute/machines",
"Microsoft.Compute/virtualMachines"
],
"tagSettings": {
"tags": {
"tag1": [
"tag1Value1",
"tag1Value2",
"tag1Value3"
],
"tag2": [
"tag2Value1",
"tag2Value2",
"tag2Value3"
]
},
"filterOperator": "All"
},
"locations": [
"Japan East",
"UK South"
]
},
"maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1",
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg"
}
}
}
}
}
Loading

0 comments on commit 3ce676c

Please sign in to comment.