Skip to content

Commit 794b03f

Browse files
shubhammalhotra28shmalhotraQuynh Trinh
authored
Dev hybridcompute microsoft.hybrid compute 2022 12 27 preview (#22034)
* Adds base for updating Microsoft.HybridCompute from version preview/2022-08-11-preview to version 2022-12-27-preview * Updates readme * Updates API version in new specs and examples * changes w.r.t Agent upgrade * removing readonly from correlationId, enableAutoUpgrade and desiredVersion * removing readonly from correlationId, enableAutoUpgrade and desiredVersion * fixed formatting - prettify * test * remove test commit * update paths and definition to add network profile related items * add example file * test * test * remove test commit * lintDiff fix * lintDiff fix * lintDiff fix * fixing errors with lintDiff and made updates for anableAutoUpgrade and timestampt to be a string a- type * rverting back enableAutoUpgrade to boolean * fixing xmsEnum validation for lastAttemptStatus * add pattern to machineName * add x-ms-identifiers * re-add x-ms-identifiers * fix for model validation * azure-asynOperation added to privateLinkScope.json * change 'ipAddress' of type string to 'address' * model validation fiox for lro_reponse_header * ip address fix * ip address fix * fix definition for items of type string * minor change to refresh pipelines * add header for op with x-ms-long-running-operation=true * revert previous commit * attempt to fix error LRO_RESPONSE_HEADER * readd headers * fix case * prettify * compared along the stable version * removed header from put * fixed the examples while comparing to stable version * removed empty enum --------- Co-authored-by: Shubham Malhotra <shmalhotra@microsoft.com> Co-authored-by: Quynh Trinh <quynhtrinh@microsoft.com>
1 parent 8cf609c commit 794b03f

34 files changed

Lines changed: 4665 additions & 2 deletions

specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-12-27-preview/HybridCompute.json

Lines changed: 1864 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscriptionId}",
4+
"resourceGroupName": "myResourceGroup",
5+
"machineName": "myMachine",
6+
"extensionName": "MMA",
7+
"api-version": "2022-12-27-preview"
8+
},
9+
"responses": {
10+
"200": {},
11+
"202": {
12+
"headers": {
13+
"Location": "{callbackUrl}",
14+
"Retry-After": 200,
15+
"Azure-AsyncOperation": "{callbackUri}"
16+
}
17+
},
18+
"204": {}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
4+
"location": "EastUS",
5+
"publisher": "microsoft.azure.monitor",
6+
"extensionType": "azuremonitorlinuxagent",
7+
"version": "1.9.1",
8+
"api-version": "2022-12-27-preview"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Providers/Microsoft.HybridCompute/locations/eastus/publishers/microsoft.azure.monitor/extensionTypes/azuremonitorlinuxagent/versions/1.9.1",
14+
"properties": {
15+
"version": "1.9.1",
16+
"extensionType": "azuremonitorlinuxagent",
17+
"publisher": "microsoft.azure.monitor"
18+
}
19+
}
20+
}
21+
}
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
4+
"location": "EastUS",
5+
"publisher": "microsoft.azure.monitor",
6+
"extensionType": "azuremonitorlinuxagent",
7+
"api-version": "2022-12-27-preview"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"value": [
13+
{
14+
"properties": {
15+
"version": "1.9.1",
16+
"extensionType": "azuremonitorlinuxagent",
17+
"publisher": "microsoft.azure.monitor"
18+
},
19+
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Providers/Microsoft.HybridCompute/locations/eastus/publishers/microsoft.azure.monitor/extensionTypes/azuremonitorlinuxagent/versions/1.9.1"
20+
},
21+
{
22+
"properties": {
23+
"version": "1.9.2",
24+
"extensionType": "azuremonitorlinuxagent",
25+
"publisher": "microsoft.azure.monitor"
26+
},
27+
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Providers/Microsoft.HybridCompute/locations/eastus/publishers/microsoft.azure.monitor/extensionTypes/azuremonitorlinuxagent/versions/1.9.2"
28+
}
29+
]
30+
}
31+
}
32+
}
33+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscriptionId}",
4+
"resourceGroupName": "myResourceGroup",
5+
"machineName": "myMachine",
6+
"api-version": "2022-12-27-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+
"headers": {
22+
"Location": "{callbackUrl}",
23+
"Retry-After": 200,
24+
"Azure-AsyncOperation": "{callbackUri}"
25+
}
26+
}
27+
}
28+
}
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-12-27-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,38 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "myResourceGroup",
5+
"machineName": "myMachine",
6+
"api-version": "2022-12-27-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"networkInterfaces": [
12+
{
13+
"ipAddresses": [
14+
{
15+
"address": "192.168.12.345",
16+
"ipAddressVersion": "IPv4",
17+
"subnet": {
18+
"addressPrefix": "192.168.12.0/24"
19+
}
20+
}
21+
]
22+
},
23+
{
24+
"ipAddresses": [
25+
{
26+
"address": "1001:0:34aa:5000:1234:aaaa:bbbb:cccc",
27+
"ipAddressVersion": "IPv6",
28+
"subnet": {
29+
"addressPrefix": "1001:0:34aa:5000::/64"
30+
}
31+
}
32+
]
33+
}
34+
]
35+
}
36+
}
37+
}
38+
}
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-12-27-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-12-27-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-12-27-preview"
7+
},
8+
"responses": {
9+
"200": {},
10+
"204": {}
11+
}
12+
}

0 commit comments

Comments
 (0)