Skip to content

Commit

Permalink
[Hub Generated] Publish private branch 'prateekyadavMS-maintenance-pr…
Browse files Browse the repository at this point in the history
…ateek-Microsoft.Maintenance-2023-09-01-preview' (#26185)

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

* Updates readme

* Updates API version in new specs and examples

* example add

* Maintenance.json change for put

* changes

* changes

* 201 and 202

* Location + provisioning state

* Removed "404" and 409 due to NoErrorCodeResponses

* LroErrorContent

* Remove "202", provisioning state

* Adding all responses in examples

* "applyUpdate" not "ApplyUpdate"

* "status" not "Status"

* Example to cover VMSS with new version

* prettier changes on new example file
  • Loading branch information
prateekyadavMS authored and jnlycklama committed Nov 8, 2023
1 parent d539bc4 commit 059c8a2
Show file tree
Hide file tree
Showing 40 changed files with 4,631 additions and 4 deletions.

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-09-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"
}
}
]
}
}
}
}
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-09-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"
}
}
},
"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",
"resourceType": "virtualMachineScaleSets",
"resourceName": "smdtest1",
"applyUpdateName": "20230901121200",
"api-version": "2023-09-01-preview",
"applyUpdate": {}
},
"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-09-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"
}
}
},
"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,40 @@
{
"parameters": {
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
"resourceGroupName": "examplerg",
"providerName": "Microsoft.Maintenance",
"resourceType": "maintenanceConfigurations",
"resourceName": "maintenanceConfig1",
"applyUpdateName": "20230901121200",
"api-version": "2023-09-01-preview",
"applyUpdate": {
"properties": {
"status": "Cancel"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/microsoft.maintenance/maintenanceconfigurations/maintenanceconfig1/providers/microsoft.maintenance/applyupdates/20230901121200",
"name": "maintenanceConfig1",
"type": "Microsoft.Maintenance/applyUpdates",
"properties": {
"status": "Cancelled",
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/microsoft.maintenance/maintenanceconfigurations/maintenanceconfig1"
}
}
},
"201": {
"body": {
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/microsoft.maintenance/maintenanceconfigurations/maintenanceconfig1/providers/microsoft.maintenance/applyupdates/20230901121200",
"name": "maintenanceConfig1",
"type": "Microsoft.Maintenance/applyUpdates",
"properties": {
"status": "Cancelled",
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/microsoft.maintenance/maintenanceconfigurations/maintenanceconfig1"
}
}
}
}
}
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-09-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"
}
}
}
}
}
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-09-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"
}
}
}
}
}
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-09-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"
}
}
]
}
}
}
}
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-09-01-preview",
"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,18 @@
{
"parameters": {
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
"resourceGroupName": "examplerg",
"configurationAssignmentName": "workervmConfiguration",
"api-version": "2023-09-01-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/configurationAssignments/workervmConfiguration",
"name": "workervmConfiguration",
"type": "Microsoft.Maintenance/configurationAssignments"
}
},
"204": {}
}
}
Loading

0 comments on commit 059c8a2

Please sign in to comment.