-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dkirby017 hybridcompute microsoft.hybrid compute 2024 03 31 preview (#…
…28787) * Adds base for updating Microsoft.HybridCompute from version preview/2023-10-03-preview to version 2024-03-31-preview * Updates readme * Updates API version in new specs and examples * copy over changes from private repo * add settings resource type * add volume license details to license object * address build errors * expand path for settings resource * fix example * add example status code * fix some build issues * fix weird copy-paste error * run prettier * correct naming * try to make lintdiff happy * fix property type to match what the service is returning * fix examples, expand description of property * missed examples * add missing format * remove gateway type value that isnt supported yet --------- Co-authored-by: madhura <[email protected]> Co-authored-by: yaotongms <[email protected]>
- Loading branch information
1 parent
d4240b3
commit 9c51b17
Showing
74 changed files
with
11,186 additions
and
40 deletions.
There are no files selected for viewing
5,386 changes: 5,386 additions & 0 deletions
5,386
...te/resource-manager/Microsoft.HybridCompute/preview/2024-03-31-preview/HybridCompute.json
Large diffs are not rendered by default.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
...r/Microsoft.HybridCompute/preview/2024-03-31-preview/examples/AgentVersion_GetLatest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"parameters": { | ||
"osType": "myOsType", | ||
"version": "1.27", | ||
"api-version": "2024-03-31-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"agentVersion": "1.27", | ||
"downloadLink": "https://download.microsoft.com/download/8/4/5/845d5e04-bb09-4ed2-9ca8-bb51184cddc9/AzureConnectedMachineAgent.msi", | ||
"osType": "myOsType" | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...anager/Microsoft.HybridCompute/preview/2024-03-31-preview/examples/AgentVersions_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"parameters": { | ||
"osType": "myOsType", | ||
"api-version": "2024-03-31-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"agentVersion": "1.26", | ||
"downloadLink": "https://download.microsoft.com/download/8/4/5/845d5e04-bb09-4ed2-9ca8-bb51184cddc9/AzureConnectedMachineAgent.msi", | ||
"osType": "myOsType" | ||
}, | ||
{ | ||
"agentVersion": "1.27", | ||
"downloadLink": "https://download.microsoft.com/download/8/4/5/845d5e04-bb09-4ed2-9ca8-bb51184cddc9/AzureConnectedMachineAgent.msi", | ||
"osType": "myOsType" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...crosoft.HybridCompute/preview/2024-03-31-preview/examples/HybridIdentityMetadata_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-03-31-preview", | ||
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", | ||
"resourceGroupName": "testrg", | ||
"machineName": "ContosoVm", | ||
"metadataName": "default" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/ContosoVm/hybridIdentityMetadata/default", | ||
"name": "testItem", | ||
"type": "Microsoft.HybridCompute/machines/hybridIdentityMetadata", | ||
"properties": { | ||
"vmId": "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c", | ||
"publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2", | ||
"identity": { | ||
"principalId": "7b5129bc-8642-4a6a-95f8-63400ca6ec4d", | ||
"tenantId": "ec46ca82-5d4a-4e3e-b4b7-e27f9318645d", | ||
"type": "SystemAssigned" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...ute/preview/2024-03-31-preview/examples/HybridIdentityMetadata_ListByVirtualMachines.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-03-31-preview", | ||
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", | ||
"resourceGroupName": "testrg", | ||
"machineName": "ContosoVm" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/ContosoVm/hybridIdentityMetadata/default", | ||
"name": "testItem", | ||
"type": "Microsoft.HybridCompute/machines/hybridIdentityMetadata", | ||
"properties": { | ||
"vmId": "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c", | ||
"publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2", | ||
"identity": { | ||
"principalId": "7b5129bc-8642-4a6a-95f8-63400ca6ec4d", | ||
"tenantId": "ec46ca82-5d4a-4e3e-b4b7-e27f9318645d", | ||
"type": "SystemAssigned" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...nager/Microsoft.HybridCompute/preview/2024-03-31-preview/examples/NetworkProfile_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myResourceGroup", | ||
"machineName": "myMachine", | ||
"api-version": "2024-03-31-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"networkInterfaces": [ | ||
{ | ||
"ipAddresses": [ | ||
{ | ||
"address": "192.168.12.345", | ||
"ipAddressVersion": "IPv4", | ||
"subnet": { | ||
"addressPrefix": "192.168.12.0/24" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"ipAddresses": [ | ||
{ | ||
"address": "1001:0:34aa:5000:1234:aaaa:bbbb:cccc", | ||
"ipAddressVersion": "IPv6", | ||
"subnet": { | ||
"addressPrefix": "1001:0:34aa:5000::/64" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...-manager/Microsoft.HybridCompute/preview/2024-03-31-preview/examples/Operations_List.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-03-31-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"origin": "user,system", | ||
"name": "Microsoft.HybridCompute/operations/read", | ||
"display": { | ||
"operation": "Read all Operations", | ||
"resource": "Microsoft.HybridCompute Resource Provider", | ||
"description": "Read all Operations for Azure Arc for Servers", | ||
"provider": "Microsoft HybridCompute" | ||
}, | ||
"isDataAction": true | ||
}, | ||
{ | ||
"origin": "user,system", | ||
"name": "Microsoft.HybridCompute/register/action", | ||
"display": { | ||
"operation": "Register Subscription for Azure Arc for Servers", | ||
"resource": "Microsoft.HybridCompute Resource Provider", | ||
"description": "Registers the subscription for the Microsoft.HybridCompute Resource Provider", | ||
"provider": "Microsoft HybridCompute" | ||
}, | ||
"isDataAction": true | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...ft.HybridCompute/preview/2024-03-31-preview/examples/extension/ExtensionMetadata_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", | ||
"location": "EastUS", | ||
"publisher": "microsoft.azure.monitor", | ||
"extensionType": "azuremonitorlinuxagent", | ||
"version": "1.9.1", | ||
"api-version": "2024-03-31-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Providers/Microsoft.HybridCompute/locations/eastus/publishers/microsoft.azure.monitor/extensionTypes/azuremonitorlinuxagent/versions/1.9.1", | ||
"properties": { | ||
"version": "1.9.1", | ||
"extensionType": "azuremonitorlinuxagent", | ||
"publisher": "microsoft.azure.monitor" | ||
} | ||
} | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...t.HybridCompute/preview/2024-03-31-preview/examples/extension/ExtensionMetadata_List.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", | ||
"location": "EastUS", | ||
"publisher": "microsoft.azure.monitor", | ||
"extensionType": "azuremonitorlinuxagent", | ||
"api-version": "2024-03-31-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"properties": { | ||
"version": "1.9.1", | ||
"extensionType": "azuremonitorlinuxagent", | ||
"publisher": "microsoft.azure.monitor" | ||
}, | ||
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Providers/Microsoft.HybridCompute/locations/eastus/publishers/microsoft.azure.monitor/extensionTypes/azuremonitorlinuxagent/versions/1.9.1" | ||
}, | ||
{ | ||
"properties": { | ||
"version": "1.9.2", | ||
"extensionType": "azuremonitorlinuxagent", | ||
"publisher": "microsoft.azure.monitor" | ||
}, | ||
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Providers/Microsoft.HybridCompute/locations/eastus/publishers/microsoft.azure.monitor/extensionTypes/azuremonitorlinuxagent/versions/1.9.2" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
...HybridCompute/preview/2024-03-31-preview/examples/extension/Extension_CreateOrUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscriptionId}", | ||
"resourceGroupName": "myResourceGroup", | ||
"machineName": "myMachine", | ||
"extensionName": "CustomScriptExtension", | ||
"api-version": "2024-03-31-preview", | ||
"extensionParameters": { | ||
"location": "eastus2euap", | ||
"properties": { | ||
"publisher": "Microsoft.Compute", | ||
"typeHandlerVersion": "1.10", | ||
"type": "CustomScriptExtension", | ||
"settings": { | ||
"commandToExecute": "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/Extensions/CustomScriptExtension", | ||
"name": "CustomScriptExtension", | ||
"type": "Microsoft.HybridCompute/machines/extensions", | ||
"location": "eastus2euap", | ||
"properties": { | ||
"publisher": "Microsoft.Compute", | ||
"type": "string", | ||
"typeHandlerVersion": "1.10.3", | ||
"autoUpgradeMinorVersion": false, | ||
"settings": { | ||
"commandToExecute": "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"" | ||
}, | ||
"protectedSettings": {}, | ||
"provisioningState": "Succeeded", | ||
"instanceView": { | ||
"name": "CustomScriptExtension", | ||
"type": "CustomScriptExtension", | ||
"typeHandlerVersion": "1.10.3", | ||
"status": { | ||
"code": "success", | ||
"level": "Information", | ||
"message": "Finished executing command, StdOut: , StdErr:", | ||
"time": "2020-08-08T20:42:10.999Z" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...crosoft.HybridCompute/preview/2024-03-31-preview/examples/extension/Extension_Delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscriptionId}", | ||
"resourceGroupName": "myResourceGroup", | ||
"machineName": "myMachine", | ||
"extensionName": "MMA", | ||
"api-version": "2024-03-31-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": { | ||
"headers": { | ||
"Location": "{callbackUrl}", | ||
"Retry-After": 200, | ||
"Azure-AsyncOperation": "{callbackUri}" | ||
} | ||
}, | ||
"204": {} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
.../Microsoft.HybridCompute/preview/2024-03-31-preview/examples/extension/Extension_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscriptionId}", | ||
"resourceGroupName": "myResourceGroup", | ||
"machineName": "myMachine", | ||
"extensionName": "CustomScriptExtension", | ||
"api-version": "2024-03-31-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/Extensions/CustomScriptExtension", | ||
"name": "CustomScriptExtension", | ||
"type": "Microsoft.HybridCompute/machines/extensions", | ||
"location": "eastus2euap", | ||
"properties": { | ||
"publisher": "Microsoft.Compute", | ||
"type": "string", | ||
"typeHandlerVersion": "1.10.3", | ||
"autoUpgradeMinorVersion": false, | ||
"settings": { | ||
"commandToExecute": "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"" | ||
}, | ||
"protectedSettings": {}, | ||
"provisioningState": "Succeeded", | ||
"instanceView": { | ||
"name": "CustomScriptExtension", | ||
"type": "CustomScriptExtension", | ||
"typeHandlerVersion": "1.10.3", | ||
"status": { | ||
"code": "success", | ||
"level": "Information", | ||
"displayStatus": "Provisioning succeeded", | ||
"message": "Finished executing command, StdOut: , StdErr:", | ||
"time": "2019-08-08T20:42:10.999Z" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.