Skip to content

Commit 8ee4b1d

Browse files
dorothyhuAndrew Sager
authored andcommitted
[Hub Generated] Review request for Microsoft.HybridCompute to add version preview/2021-06-10-preview (Azure#14797)
* Adds base for updating Microsoft.HybridCompute from version preview/2021-05-17-preview to version 2021-06-10-preview * Updates readme * Updates API version in new specs and examples * updated the swagger * added the missing bracket * removed type object * removed PatchSettings ref * used x-ms-client-flatten * fixed an issue * added osProfile to the machineUpdateProperties * removed the extra space * fixed by npm run prettier
1 parent 14f4d0e commit 8ee4b1d

30 files changed

+3719
-3
lines changed

specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2021-06-10-preview/HybridCompute.json

Lines changed: 1242 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscriptionId}",
4+
"resourceGroupName": "myResourceGroup",
5+
"machineName": "myMachine",
6+
"extensionName": "MMA",
7+
"api-version": "2021-06-10-preview"
8+
},
9+
"responses": {
10+
"200": {},
11+
"202": {},
12+
"204": {}
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscriptionId}",
4+
"resourceGroupName": "myResourceGroup",
5+
"machineName": "myMachine",
6+
"api-version": "2021-06-10-preview",
7+
"extensionUpgradeParameters": {
8+
"extensionTargets": {
9+
"Microsoft.Compute.CustomScriptExtension": {
10+
"targetVersion": "1.10"
11+
},
12+
"Microsoft.Azure.Monitoring": {
13+
"targetVersion": "2.0"
14+
}
15+
}
16+
}
17+
},
18+
"responses": {
19+
"202": {}
20+
}
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscriptionId}",
4+
"resourceGroupName": "myResourceGroup",
5+
"machineName": "myMachine",
6+
"extensionName": "CustomScriptExtension",
7+
"api-version": "2021-06-10-preview"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/Extensions/CustomScriptExtension",
13+
"name": "CustomScriptExtension",
14+
"type": "Microsoft.HybridCompute/machines/extensions",
15+
"location": "eastus2euap",
16+
"properties": {
17+
"publisher": "Microsoft.Compute",
18+
"type": "string",
19+
"typeHandlerVersion": "1.10.3",
20+
"autoUpgradeMinorVersion": false,
21+
"settings": "@{commandToExecute=powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"}",
22+
"protectedSettings": {},
23+
"provisioningState": "Succeeded",
24+
"instanceView": {
25+
"name": "CustomScriptExtension",
26+
"type": "CustomScriptExtension",
27+
"typeHandlerVersion": "1.10.3",
28+
"status": {
29+
"code": "success",
30+
"level": "Information",
31+
"displayStatus": "Provisioning succeeded",
32+
"message": "Finished executing command, StdOut: , StdErr:",
33+
"time": "2019-08-08T20:42:10.999Z"
34+
}
35+
}
36+
}
37+
}
38+
}
39+
}
40+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscriptionId}",
4+
"resourceGroupName": "myResourceGroup",
5+
"machineName": "myMachine",
6+
"api-version": "2021-06-10-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/Extensions/CustomScriptExtension",
14+
"name": "CustomScriptExtension",
15+
"location": "eastus2euap",
16+
"type": "Microsoft.HybridCompute/machines/extensions",
17+
"properties": {
18+
"publisher": "Microsoft.Compute",
19+
"type": "CustomScriptExtension",
20+
"typeHandlerVersion": "1.10.3",
21+
"autoUpgradeMinorVersion": false,
22+
"settings": {
23+
"commandToExecute": "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\""
24+
},
25+
"provisioningState": "Succeeded",
26+
"instanceView": {
27+
"name": "CustomScriptExtension",
28+
"type": "CustomScriptExtension",
29+
"typeHandlerVersion": "1.10.3",
30+
"status": {
31+
"code": "success",
32+
"level": "Information",
33+
"displayStatus": "Provisioning succeeded",
34+
"message": "formattedMessage: Finished executing command, StdOut: , StdErr: ",
35+
"time": "2020-08-13T17:18:57.405Z"
36+
}
37+
}
38+
}
39+
},
40+
{
41+
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/Extensions/winosupdateextension",
42+
"name": "winosupdateextension",
43+
"location": "eastus2euap",
44+
"type": "Microsoft.HybridCompute/machines/extensions",
45+
"properties": {
46+
"publisher": "microsoft.softwareupdatemanagement.test",
47+
"type": "windowsosupdateextension",
48+
"typeHandlerVersion": "1.0.0.0",
49+
"autoUpgradeMinorVersion": false,
50+
"settings": {},
51+
"provisioningState": "Creating",
52+
"instanceView": {
53+
"name": "winosupdateextension",
54+
"type": "windowsosupdateextension",
55+
"typeHandlerVersion": "1.0.0.0",
56+
"status": {}
57+
}
58+
}
59+
}
60+
]
61+
}
62+
}
63+
}
64+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscriptionId}",
4+
"resourceGroupName": "myResourceGroup",
5+
"machineName": "myMachine",
6+
"api-version": "2021-06-10-preview",
7+
"parameters": {
8+
"location": "eastus2euap",
9+
"properties": {
10+
"vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f",
11+
"locationData": {
12+
"name": "Redmond"
13+
},
14+
"clientPublicKey": "string",
15+
"parentClusterResourceId": "{AzureStackHCIResourceId}",
16+
"privateLinkScopeResourceId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName"
17+
},
18+
"identity": {
19+
"type": "SystemAssigned"
20+
}
21+
}
22+
},
23+
"responses": {
24+
"200": {
25+
"body": {
26+
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/machines/myMachine",
27+
"name": "myMachine",
28+
"location": "eastus2euap",
29+
"tags": null,
30+
"identity": {
31+
"type": "SystemAssigned",
32+
"principalId": "string",
33+
"tenantId": "string"
34+
},
35+
"type": "Microsoft.HybridCompute/machines",
36+
"properties": {
37+
"provisioningState": "Succeeded",
38+
"agentVersion": null,
39+
"status": null,
40+
"lastStatusChange": null,
41+
"errorDetails": null,
42+
"displayName": null,
43+
"machineFqdn": null,
44+
"vmUuid": null,
45+
"osSku": null,
46+
"domainName": null,
47+
"adFqdn": null,
48+
"dnsFqdn": null,
49+
"osName": null,
50+
"osVersion": null,
51+
"osType": null,
52+
"osProfile": {
53+
"computerName": null,
54+
"windowsConfiguration": {
55+
"patchSettings": {
56+
"assessmentMode": null
57+
}
58+
},
59+
"linuxConfiguration": {
60+
"patchSettings": {
61+
"assessmentMode": null
62+
}
63+
}
64+
},
65+
"vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f",
66+
"locationData": {
67+
"name": "Redmond",
68+
"city": "redmond",
69+
"district": null,
70+
"countryOrRegion": "usa"
71+
},
72+
"clientPublicKey": "string",
73+
"parentClusterResourceId": "{AzureStackHCIResourceId}",
74+
"mssqlDiscovered": "false",
75+
"detectedProperties": {
76+
"cloudprovider": "N/A",
77+
"manufacturer": "Microsoft Corporation",
78+
"model": "Virtual Machine"
79+
},
80+
"privateLinkScopeResourceId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName"
81+
}
82+
}
83+
}
84+
}
85+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscriptionId}",
4+
"resourceGroupName": "myResourceGroup",
5+
"machineName": "myMachine",
6+
"api-version": "2021-06-10-preview"
7+
},
8+
"responses": {
9+
"200": {},
10+
"204": {}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscriptionId}",
4+
"resourceGroupName": "myResourceGroup",
5+
"machineName": "myMachine",
6+
"api-version": "2021-06-10-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/machines/myMachine",
12+
"name": "myMachine",
13+
"location": "eastus2euap",
14+
"tags": null,
15+
"identity": {
16+
"type": "SystemAssigned",
17+
"principalId": "string",
18+
"tenantId": "string"
19+
},
20+
"type": "Microsoft.HybridCompute/machines",
21+
"properties": {
22+
"provisioningState": "Succeeded",
23+
"agentVersion": null,
24+
"status": null,
25+
"lastStatusChange": null,
26+
"errorDetails": null,
27+
"displayName": null,
28+
"machineFqdn": null,
29+
"vmUuid": null,
30+
"osSku": null,
31+
"domainName": null,
32+
"adFqdn": null,
33+
"dnsFqdn": null,
34+
"osName": null,
35+
"osVersion": null,
36+
"osType": null,
37+
"osProfile": {
38+
"computerName": null,
39+
"windowsConfiguration": {
40+
"patchSettings": {
41+
"assessmentMode": null
42+
}
43+
},
44+
"linuxConfiguration": {
45+
"patchSettings": {
46+
"assessmentMode": null
47+
}
48+
}
49+
},
50+
"vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f",
51+
"locationData": {
52+
"name": "Redmond",
53+
"city": "redmond",
54+
"district": null,
55+
"countryOrRegion": "usa"
56+
},
57+
"clientPublicKey": "string",
58+
"parentClusterResourceId": "{AzureStackHCIResourceId}",
59+
"mssqlDiscovered": "false",
60+
"detectedProperties": {
61+
"cloudprovider": "N/A",
62+
"manufacturer": "Microsoft Corporation",
63+
"model": "Virtual Machine"
64+
},
65+
"privateLinkScopeResourceId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName"
66+
}
67+
}
68+
}
69+
}
70+
}

0 commit comments

Comments
 (0)