Skip to content

Commit af4a4ea

Browse files
authored
[Hub Generated] Review request for Microsoft.HybridCompute to add version preview/2022-05-10-preview (#19099)
* Adds base for updating Microsoft.HybridCompute from version stable/2022-03-10 to version 2022-05-10-preview * Updates readme * Updates API version in new specs and examples * add resources && fixed a bug * modified resources * added readonly tag for resources * ran npm prettier * suppress body top level properties * added additional properties to properties.settings/protectedProperties * removed additionalProperties: true * fixed the api-version tag in the examples * added config mode * added additionalProperties tag' * fixed examples and changed descriptions of machines_createOrUpdate and machines_delete * removed osName and extensions
1 parent fa316bd commit af4a4ea

32 files changed

+4366
-214
lines changed

package-lock.json

Lines changed: 266 additions & 212 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-05-10-preview/HybridCompute.json

Lines changed: 1447 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": "2022-05-10-preview"
8+
},
9+
"responses": {
10+
"200": {},
11+
"202": {},
12+
"204": {}
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscriptionId}",
4+
"resourceGroupName": "myResourceGroup",
5+
"machineName": "myMachine",
6+
"api-version": "2022-05-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+
"200": {},
20+
"202": {}
21+
}
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscriptionId}",
4+
"resourceGroupName": "myResourceGroup",
5+
"machineName": "myMachine",
6+
"extensionName": "CustomScriptExtension",
7+
"api-version": "2022-05-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": {
22+
"commandToExecute": "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\""
23+
},
24+
"protectedSettings": {},
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": "Finished executing command, StdOut: , StdErr:",
35+
"time": "2019-08-08T20:42:10.999Z"
36+
}
37+
}
38+
}
39+
}
40+
}
41+
}
42+
}
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": "2022-05-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,86 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscriptionId}",
4+
"resourceGroupName": "myResourceGroup",
5+
"machineName": "myMachine",
6+
"api-version": "2022-05-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+
"osVersion": null,
50+
"osType": null,
51+
"osProfile": {
52+
"computerName": null,
53+
"windowsConfiguration": {
54+
"patchSettings": {
55+
"assessmentMode": null,
56+
"patchMode": null
57+
}
58+
},
59+
"linuxConfiguration": {
60+
"patchSettings": {
61+
"assessmentMode": null,
62+
"patchMode": null
63+
}
64+
}
65+
},
66+
"vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f",
67+
"locationData": {
68+
"name": "Redmond",
69+
"city": "redmond",
70+
"district": null,
71+
"countryOrRegion": "usa"
72+
},
73+
"clientPublicKey": "string",
74+
"parentClusterResourceId": "{AzureStackHCIResourceId}",
75+
"mssqlDiscovered": "false",
76+
"detectedProperties": {
77+
"cloudprovider": "N/A",
78+
"manufacturer": "Microsoft Corporation",
79+
"model": "Virtual Machine"
80+
},
81+
"privateLinkScopeResourceId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName"
82+
}
83+
}
84+
}
85+
}
86+
}
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": "2022-05-10-preview"
7+
},
8+
"responses": {
9+
"200": {},
10+
"204": {}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscriptionId}",
4+
"resourceGroupName": "myResourceGroup",
5+
"machineName": "myMachine",
6+
"api-version": "2022-05-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+
"osVersion": null,
35+
"osType": null,
36+
"osProfile": {
37+
"computerName": null,
38+
"windowsConfiguration": {
39+
"patchSettings": {
40+
"assessmentMode": null,
41+
"patchMode": null
42+
}
43+
},
44+
"linuxConfiguration": {
45+
"patchSettings": {
46+
"assessmentMode": null,
47+
"patchMode": null
48+
}
49+
}
50+
},
51+
"vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f",
52+
"locationData": {
53+
"name": "Redmond",
54+
"city": "redmond",
55+
"district": null,
56+
"countryOrRegion": "usa"
57+
},
58+
"clientPublicKey": "string",
59+
"parentClusterResourceId": "{AzureStackHCIResourceId}",
60+
"mssqlDiscovered": "false",
61+
"detectedProperties": {
62+
"cloudprovider": "N/A",
63+
"manufacturer": "Microsoft Corporation",
64+
"model": "Virtual Machine"
65+
},
66+
"agentConfiguration": {
67+
"proxyUrl": "https://test.test",
68+
"incomingConnectionsPorts": [
69+
"22",
70+
"23"
71+
],
72+
"extensionsAllowList": null,
73+
"extensionsBlockList": null,
74+
"proxyBypass": [
75+
"proxy1",
76+
"proxy2"
77+
],
78+
"extensionsEnabled": "true",
79+
"guestConfigurationEnabled": "true",
80+
"configMode": "full"
81+
},
82+
"serviceStatuses": {
83+
"extensionService": {
84+
"status": "Running",
85+
"startupType": "Automatic"
86+
},
87+
"guestConfigurationService": {
88+
"status": "Running",
89+
"startupType": "Automatic"
90+
}
91+
},
92+
"privateLinkScopeResourceId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName"
93+
},
94+
"resources": []
95+
}
96+
}
97+
}
98+
}

0 commit comments

Comments
 (0)