Skip to content

Commit a4ddec4

Browse files
dorothyhudkirby017
andauthored
[Hub Generated] Review request for Microsoft.HybridCompute to add version preview/2023-06-20-preview (#24518)
* Adds base for updating Microsoft.HybridCompute from version preview/2023-04-25-preview to version 2023-06-20-preview * Updates readme * Updates API version in new specs and examples * license profile API * fixed lint errors * updated examples * removed extra space * ran prettier * removed 202 from examples * update esu properties for licenseProfile and machines, and updated examples * fixed warnings * fixed warnings * add property in esuProperties for server type * updated example type from bool to enum * fixed machine examples * addressed code reviews * squash new api changes * filled in some TODO descriptions * fixed validate license path & updated responses * fixed model validation * addressed code reviews * fixed model validation * fixed examples --------- Co-authored-by: David Kirby 🍁 <[email protected]>
1 parent 2a38435 commit a4ddec4

File tree

53 files changed

+7646
-1
lines changed

Some content is hidden

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

53 files changed

+7646
-1
lines changed

specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json

Lines changed: 3867 additions & 0 deletions
Large diffs are not rendered by default.
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-06-20-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,24 @@
1+
{
2+
"parameters": {
3+
"osType": "myOsType",
4+
"api-version": "2023-06-20-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,27 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-06-20-preview",
4+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
5+
"resourceGroupName": "testrg",
6+
"machineName": "ContosoVm",
7+
"metadataName": "default"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/ContosoVm/hybridIdentityMetadata/default",
13+
"name": "testItem",
14+
"type": "Microsoft.HybridCompute/machines/hybridIdentityMetadata",
15+
"properties": {
16+
"vmId": "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c",
17+
"publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2",
18+
"identity": {
19+
"principalId": "7b5129bc-8642-4a6a-95f8-63400ca6ec4d",
20+
"tenantId": "ec46ca82-5d4a-4e3e-b4b7-e27f9318645d",
21+
"type": "SystemAssigned"
22+
}
23+
}
24+
}
25+
}
26+
}
27+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-06-20-preview",
4+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
5+
"resourceGroupName": "testrg",
6+
"machineName": "ContosoVm"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/ContosoVm/hybridIdentityMetadata/default",
14+
"name": "testItem",
15+
"type": "Microsoft.HybridCompute/machines/hybridIdentityMetadata",
16+
"properties": {
17+
"vmId": "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c",
18+
"publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2",
19+
"identity": {
20+
"principalId": "7b5129bc-8642-4a6a-95f8-63400ca6ec4d",
21+
"tenantId": "ec46ca82-5d4a-4e3e-b4b7-e27f9318645d",
22+
"type": "SystemAssigned"
23+
}
24+
}
25+
}
26+
]
27+
}
28+
}
29+
}
30+
}
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-06-20-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,35 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-06-20-preview"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"origin": "user,system",
11+
"name": "Microsoft.HybridCompute/operations/read",
12+
"display": {
13+
"operation": "Read all Operations",
14+
"resource": "Microsoft.HybridCompute Resource Provider",
15+
"description": "Read all Operations for Azure Arc for Servers",
16+
"provider": "Microsoft HybridCompute"
17+
},
18+
"isDataAction": true
19+
},
20+
{
21+
"origin": "user,system",
22+
"name": "Microsoft.HybridCompute/register/action",
23+
"display": {
24+
"operation": "Register Subscription for Azure Arc for Servers",
25+
"resource": "Microsoft.HybridCompute Resource Provider",
26+
"description": "Registers the subscription for the Microsoft.HybridCompute Resource Provider",
27+
"provider": "Microsoft HybridCompute"
28+
},
29+
"isDataAction": true
30+
}
31+
]
32+
}
33+
}
34+
}
35+
}
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-06-20-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-06-20-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,53 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscriptionId}",
4+
"resourceGroupName": "myResourceGroup",
5+
"machineName": "myMachine",
6+
"extensionName": "CustomScriptExtension",
7+
"api-version": "2023-06-20-preview",
8+
"extensionParameters": {
9+
"location": "eastus2euap",
10+
"properties": {
11+
"publisher": "Microsoft.Compute",
12+
"typeHandlerVersion": "1.10",
13+
"type": "CustomScriptExtension",
14+
"settings": {
15+
"commandToExecute": "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\""
16+
}
17+
}
18+
}
19+
},
20+
"responses": {
21+
"200": {
22+
"body": {
23+
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/Extensions/CustomScriptExtension",
24+
"name": "CustomScriptExtension",
25+
"type": "Microsoft.HybridCompute/machines/extensions",
26+
"location": "eastus2euap",
27+
"properties": {
28+
"publisher": "Microsoft.Compute",
29+
"type": "string",
30+
"typeHandlerVersion": "1.10.3",
31+
"autoUpgradeMinorVersion": false,
32+
"settings": {
33+
"commandToExecute": "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\""
34+
},
35+
"protectedSettings": {},
36+
"provisioningState": "Succeeded",
37+
"instanceView": {
38+
"name": "CustomScriptExtension",
39+
"type": "CustomScriptExtension",
40+
"typeHandlerVersion": "1.10.3",
41+
"status": {
42+
"code": "success",
43+
"level": "Information",
44+
"message": "Finished executing command, StdOut: , StdErr:",
45+
"time": "2020-08-08T20:42:10.999Z"
46+
}
47+
}
48+
}
49+
}
50+
},
51+
"202": {}
52+
}
53+
}

0 commit comments

Comments
 (0)