Skip to content

Commit

Permalink
Release hybridcompute microsoft.hybrid compute 2024 09 10 preview (#3…
Browse files Browse the repository at this point in the history
…0546)

* Copy files from preview/2024-07-31-preview

Copied the files in a separate commit.
This allows reviewers to easily diff subsequent changes against the previous spec.

* Update version to preview/2024-09-10-preview

Updated the API version from preview/2024-07-31-preview to preview/2024-09-10-preview.

* Added tag for 2024-09-10-preview in readme file

* add extension setup API and example (#30592)

* add extension setup API and example

---------

Co-authored-by: Ved Kale <[email protected]>

* use v3 common-types (#31063)

* use v3 common-types

* prettier

* attempt v5 common types

This reverts commit 9925d24.

* Revert "attempt v5 common types"

This reverts commit 4ed6fa4.

* update to v5

* update subscriptionid to guid format in examples

* fix examples in machines

* Revert "fix examples in machines"

This reverts commit cf84a91.

* fix model validation

* fix model validation

* prettier

* prettier

* prettier

* Revert "prettier"

This reverts commit ea820f1.

* Revert "prettier"

This reverts commit 68b5bb6.

* Revert "prettier"

This reverts commit e5065de.

* Revert "fix model validation"

This reverts commit 4b0723f.

* Revert "fix model validation"

This reverts commit 9ad91b4.

* Reapply "fix examples in machines"

This reverts commit 8f00a27.

* Revert "fix examples in machines"

This reverts commit cf84a91.

* Revert "update subscriptionid to guid format in examples"

This reverts commit 8f1af4d.

* Revert "update to v5"

This reverts commit e0083cf.

* Reapply "attempt v5 common types"

This reverts commit 3df6b50.

* Reapply "dummy change to trigger checks"

This reverts commit 0956f17.

* Revert "dummy change to trigger checks"

This reverts commit 9925d24.

* use v3 common type

* Update sdk-suppressions.yaml

---------

Co-authored-by: Jiaqi Li <[email protected]>
Co-authored-by: Yuchao Yan <[email protected]>

* Microsoft.HybridCompute-2024-09-10-preview update API and swagger with better naming (#31346)

Co-authored-by: Ved Kale <[email protected]>

---------

Co-authored-by: Ved Kale <[email protected]>
Co-authored-by: jiaqi-beep <[email protected]>
Co-authored-by: Jiaqi Li <[email protected]>
Co-authored-by: Yuchao Yan <[email protected]>
  • Loading branch information
5 people authored Nov 11, 2024
1 parent 6dcf523 commit 0383d4a
Show file tree
Hide file tree
Showing 76 changed files with 11,687 additions and 1 deletion.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parameters": {
"osType": "myOsType",
"version": "1.27",
"api-version": "2024-09-10-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"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"osType": "myOsType",
"api-version": "2024-09-10-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"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"api-version": "2024-09-10-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"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"api-version": "2024-09-10-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"
}
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "myResourceGroup",
"machineName": "myMachine",
"api-version": "2024-09-10-preview"
},
"responses": {
"200": {
"body": {
"networkInterfaces": [
{
"name": "Wi-Fi",
"macAddress": "3c:49:6e:13:0e:73",
"id": "8",
"ipAddresses": [
{
"address": "192.168.12.345",
"ipAddressVersion": "IPv4",
"subnet": {
"addressPrefix": "192.168.12.0/24"
}
}
]
},
{
"name": "Ethernet",
"macAddress": "10:15:5c:52:f9:b8",
"id": "23",
"ipAddresses": [
{
"address": "1001:0:34aa:5000:1234:aaaa:bbbb:cccc",
"ipAddressVersion": "IPv6",
"subnet": {
"addressPrefix": "1001:0:34aa:5000::/64"
}
}
]
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parameters": {
"api-version": "2024-09-10-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
}
]
}
}
}
}
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-09-10-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"
}
}
}
}
}
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-09-10-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"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "myResourceGroup",
"machineName": "myMachine",
"api-version": "2024-09-10-preview",
"extensions": {
"extensions": [
{
"publisher": "Microsoft.Azure.Monitoring",
"type": "AzureMonitorAgentLinux"
},
{
"publisher": "<extension_publisher>",
"type": "<extension_type>"
}
]
}
},
"responses": {
"200": {
"body": {}
},
"202": {
"headers": {
"Location": "{callbackUrl}",
"Retry-After": 200,
"Azure-AsyncOperation": "{callbackUri}"
}
}
}
}
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-09-10-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": {}
}
}
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-09-10-preview"
},
"responses": {
"200": {},
"202": {
"headers": {
"Location": "{callbackUrl}",
"Retry-After": 200,
"Azure-AsyncOperation": "{callbackUri}"
}
},
"204": {}
}
}
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-09-10-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"
}
}
}
}
}
}
}
Loading

0 comments on commit 0383d4a

Please sign in to comment.