Skip to content

Commit 1488328

Browse files
vedkaleVed Kale
andauthored
[Hub Generated] Review request for Microsoft.HybridCompute to add version preview/2023-04-25-preview (#23732)
* Adds base for updating Microsoft.HybridCompute from version preview/2023-03-15-preview to version 2023-04-25-preview * Updates readme * Updates API version in new specs and examples * add run command resource * fix errors * fix delete headers and list run command type * add delete example * change resource type run command * merge stable version changes * fix api version in examples * add http patch, pattern for machine name * add 201 to put and update body * add update example * add identifiers * add 201 response and name pattern * fix staging lint issues * undo commit * fix location header * switch to v3 * change final state via * add machineNameParamter * revert change to fix breaking change * fix tracked resource version for breaking change * address comments * address comments * run prettier * update description --------- Co-authored-by: Ved Kale <vedkale@microsoft.com>
1 parent b9ce503 commit 1488328

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+6643
-3
lines changed

specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-04-25-preview/HybridCompute.json

Lines changed: 3316 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": "2023-04-25-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,20 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscriptionId}",
4+
"resourceGroupName": "myResourceGroup",
5+
"machineName": "myMachine",
6+
"runCommandName": "myRunCommand",
7+
"api-version": "2023-04-25-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": "2023-04-25-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": "2023-04-25-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": "2023-04-25-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,24 @@
1+
{
2+
"parameters": {
3+
"osType": "myOsType",
4+
"api-version": "2023-04-25-preview"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"agentVersion": "1.26",
12+
"downloadLink": "https://download.microsoft.com/download/8/4/5/845d5e04-bb09-4ed2-9ca8-bb51184cddc9/AzureConnectedMachineAgent.msi",
13+
"osType": "myOsType"
14+
},
15+
{
16+
"agentVersion": "1.27",
17+
"downloadLink": "https://download.microsoft.com/download/8/4/5/845d5e04-bb09-4ed2-9ca8-bb51184cddc9/AzureConnectedMachineAgent.msi",
18+
"osType": "myOsType"
19+
}
20+
]
21+
}
22+
}
23+
}
24+
}
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": "2023-04-25-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,16 @@
1+
{
2+
"parameters": {
3+
"osType": "myOsType",
4+
"version": "1.27",
5+
"api-version": "2023-04-25-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"agentVersion": "1.27",
11+
"downloadLink": "https://download.microsoft.com/download/8/4/5/845d5e04-bb09-4ed2-9ca8-bb51184cddc9/AzureConnectedMachineAgent.msi",
12+
"osType": "myOsType"
13+
}
14+
}
15+
}
16+
}
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": "2023-04-25-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+
}

0 commit comments

Comments
 (0)