Skip to content

Commit 6c11930

Browse files
paul-selvarajPaul Selvaraj
andauthored
[Hub Generated] Review request for Microsoft.Maintenance to add version preview/2022-07-01-preview (#19482)
* Adds base for updating Microsoft.Maintenance from version preview/2021-09-01-preview to version 2022-07-01-preview * Updates readme * Updates API version in new specs and examples * Adding Resource as Maintenance Scope for Maintenance Configuration APIs. Co-authored-by: Paul Selvaraj <paulse@microsoft.com>
1 parent cd3bae2 commit 6c11930

30 files changed

+3365
-2
lines changed

specification/maintenance/resource-manager/Microsoft.Maintenance/preview/2022-07-01-preview/Maintenance.json

Lines changed: 2518 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
4+
"resourceGroupName": "examplerg",
5+
"providerName": "Microsoft.Maintenance",
6+
"api-version": "2022-07-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/applyUpdates/e9b9685d-78e4-44c4-a81c-64a14f9b87b6",
14+
"name": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6",
15+
"type": "Microsoft.Maintenance/applyUpdates",
16+
"properties": {
17+
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1",
18+
"status": "Completed"
19+
}
20+
}
21+
]
22+
}
23+
}
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
4+
"resourceGroupName": "examplerg",
5+
"providerName": "Microsoft.Compute",
6+
"resourceType": "virtualMachineScaleSets",
7+
"resourceName": "smdtest1",
8+
"api-version": "2022-07-01-preview"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/applyUpdates/e9b9685d-78e4-44c4-a81c-64a14f9b87b6",
14+
"name": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6",
15+
"type": "Microsoft.Maintenance/applyUpdates",
16+
"properties": {
17+
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1",
18+
"status": "Pending"
19+
}
20+
}
21+
}
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
4+
"resourceGroupName": "examplerg",
5+
"providerName": "Microsoft.Compute",
6+
"resourceParentType": "virtualMachineScaleSets",
7+
"resourceParentName": "smdtest1",
8+
"resourceType": "virtualMachines",
9+
"resourceName": "smdvm1",
10+
"api-version": "2022-07-01-preview"
11+
},
12+
"responses": {
13+
"200": {
14+
"body": {
15+
"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",
16+
"name": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6",
17+
"type": "Microsoft.Maintenance/applyUpdates",
18+
"properties": {
19+
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/virtualMachines/smdvm1",
20+
"status": "Pending"
21+
}
22+
}
23+
}
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
4+
"resourceGroupName": "examplerg",
5+
"providerName": "Microsoft.Compute",
6+
"resourceType": "virtualMachineScaleSets",
7+
"resourceName": "smdtest1",
8+
"applyUpdateName": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6",
9+
"api-version": "2022-07-01-preview"
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/applyUpdates/e9b9685d-78e4-44c4-a81c-64a14f9b87b6",
15+
"name": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6",
16+
"type": "Microsoft.Maintenance/applyUpdates",
17+
"properties": {
18+
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1",
19+
"status": "Completed"
20+
}
21+
}
22+
}
23+
}
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
4+
"resourceGroupName": "examplerg",
5+
"providerName": "Microsoft.Compute",
6+
"resourceParentType": "virtualMachineScaleSets",
7+
"resourceParentName": "smdtest1",
8+
"resourceType": "virtualMachines",
9+
"resourceName": "smdvm1",
10+
"applyUpdateName": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6",
11+
"api-version": "2022-07-01-preview"
12+
},
13+
"responses": {
14+
"200": {
15+
"body": {
16+
"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",
17+
"name": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6",
18+
"type": "Microsoft.Maintenance/applyUpdates",
19+
"properties": {
20+
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/virtualMachines/smdvm1",
21+
"status": "Completed"
22+
}
23+
}
24+
}
25+
}
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
4+
"providerName": "Microsoft.Maintenance",
5+
"api-version": "2022-07-01-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/applyUpdates/e9b9685d-78e4-44c4-a81c-64a14f9b87b6",
13+
"name": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6",
14+
"type": "Microsoft.Maintenance/applyUpdates",
15+
"properties": {
16+
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1",
17+
"status": "Completed"
18+
}
19+
}
20+
]
21+
}
22+
}
23+
}
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
4+
"providerName": "Microsoft.Maintenance",
5+
"api-version": "2022-07-01-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/configurationAssignments/workervmConfiguration",
13+
"name": "workervmConfiguration",
14+
"type": "Microsoft.Maintenance/configurationAssignments",
15+
"properties": {
16+
"maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1",
17+
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1"
18+
}
19+
}
20+
]
21+
}
22+
}
23+
}
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
4+
"resourceGroupName": "examplerg",
5+
"providerName": "Microsoft.Compute",
6+
"resourceType": "virtualMachineScaleSets",
7+
"resourceName": "smdtest1",
8+
"configurationAssignmentName": "workervmConfiguration",
9+
"api-version": "2022-07-01-preview",
10+
"configurationAssignment": {
11+
"properties": {
12+
"maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1"
13+
}
14+
}
15+
},
16+
"responses": {
17+
"200": {
18+
"body": {
19+
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/configurationAssignments/workervmConfiguration",
20+
"name": "workervmConfiguration",
21+
"type": "Microsoft.Maintenance/configurationAssignments",
22+
"properties": {
23+
"maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1",
24+
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1"
25+
}
26+
}
27+
}
28+
}
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
4+
"resourceGroupName": "examplerg",
5+
"providerName": "Microsoft.Compute",
6+
"resourceParentType": "virtualMachineScaleSets",
7+
"resourceParentName": "smdtest1",
8+
"resourceType": "virtualMachines",
9+
"resourceName": "smdvm1",
10+
"configurationAssignmentName": "workervmPolicy",
11+
"api-version": "2022-07-01-preview",
12+
"configurationAssignment": {
13+
"properties": {
14+
"maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/policy1"
15+
}
16+
}
17+
},
18+
"responses": {
19+
"200": {
20+
"body": {
21+
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/virtualMachines/smdvm1/providers/Microsoft.Maintenance/configurationAssignments/workervmPolicy",
22+
"name": "workervmPolicy",
23+
"type": "Microsoft.Maintenance/configurationAssignments",
24+
"properties": {
25+
"maintenanceConfigurationId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/policy1",
26+
"resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/virtualMachines/smdvm1"
27+
}
28+
}
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)