Skip to content

Commit

Permalink
[Hub Generated] Review request for Microsoft.HybridCompute to add ver…
Browse files Browse the repository at this point in the history
…sion preview/2023-03-15-preview (#22933)

* Adds base for updating Microsoft.HybridCompute from version preview/2022-12-27-preview to version 2023-03-15-preview

* Updates readme

* Updates API version in new specs and examples

* add HybridIdentityMetadata read-only proxy resource to new api version

* add kind property to machines on the new api version

* update description for kind and updated examples

* update desription for kind

* clear kind from examples

* remove readonly from kind

* small change

* used v3 instead of v2

* added kind to machineUpdate

* testing

* added get agent versions api

* trigger pipeline again

* fixed agent list model

* fixed the get latest agent version example

* added ostype and changed route

* experience with agent version get for latest

* ran npm prettier

* unified tags and changed the agent version get description

* fixed prettier check

* update description

* quynh changes

* Added missing lastAttemptDesiredVersion

* Added x-ms-identifiers for AgentVersionsList

* Removed kind in Machine_Update.json

* ran prettier

---------

Co-authored-by: dorothyhu <jinahu@microsoft.com>
Co-authored-by: Shubham Malhotra <shmalhotra@microsoft.com>
Co-authored-by: Donald Liu <donaliu@microsoft.com>
  • Loading branch information
4 people authored Apr 20, 2023
1 parent b64dd24 commit c2b02df
Show file tree
Hide file tree
Showing 38 changed files with 5,140 additions and 2 deletions.

Large diffs are not rendered by default.

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": "2023-03-15-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,22 @@
{
"parameters": {
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"location": "EastUS",
"publisher": "microsoft.azure.monitor",
"extensionType": "azuremonitorlinuxagent",
"version": "1.9.1",
"api-version": "2023-03-15-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": "2023-03-15-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,28 @@
{
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "myResourceGroup",
"machineName": "myMachine",
"api-version": "2023-03-15-preview",
"extensionUpgradeParameters": {
"extensionTargets": {
"Microsoft.Compute.CustomScriptExtension": {
"targetVersion": "1.10"
},
"Microsoft.Azure.Monitoring": {
"targetVersion": "2.0"
}
}
}
},
"responses": {
"200": {},
"202": {
"headers": {
"Location": "{callbackUrl}",
"Retry-After": 200,
"Azure-AsyncOperation": "{callbackUri}"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"osType": "myOsType",
"api-version": "2023-03-15-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,42 @@
{
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "myResourceGroup",
"machineName": "myMachine",
"extensionName": "CustomScriptExtension",
"api-version": "2023-03-15-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"
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parameters": {
"osType": "myOsType",
"version": "1.27",
"api-version": "2023-03-15-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,38 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "myResourceGroup",
"machineName": "myMachine",
"api-version": "2023-03-15-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"
}
}
]
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"api-version": "2023-03-15-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": "2023-03-15-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,64 @@
{
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "myResourceGroup",
"machineName": "myMachine",
"api-version": "2023-03-15-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/Extensions/CustomScriptExtension",
"name": "CustomScriptExtension",
"location": "eastus2euap",
"type": "Microsoft.HybridCompute/machines/extensions",
"properties": {
"publisher": "Microsoft.Compute",
"type": "CustomScriptExtension",
"typeHandlerVersion": "1.10.3",
"autoUpgradeMinorVersion": false,
"settings": {
"commandToExecute": "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\""
},
"provisioningState": "Succeeded",
"instanceView": {
"name": "CustomScriptExtension",
"type": "CustomScriptExtension",
"typeHandlerVersion": "1.10.3",
"status": {
"code": "success",
"level": "Information",
"displayStatus": "Provisioning succeeded",
"message": "formattedMessage: Finished executing command, StdOut: , StdErr: ",
"time": "2020-08-13T17:18:57.405Z"
}
}
}
},
{
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/Extensions/winosupdateextension",
"name": "winosupdateextension",
"location": "eastus2euap",
"type": "Microsoft.HybridCompute/machines/extensions",
"properties": {
"publisher": "microsoft.softwareupdatemanagement.test",
"type": "windowsosupdateextension",
"typeHandlerVersion": "1.0.0.0",
"autoUpgradeMinorVersion": false,
"settings": {},
"provisioningState": "Creating",
"instanceView": {
"name": "winosupdateextension",
"type": "windowsosupdateextension",
"typeHandlerVersion": "1.0.0.0",
"status": {}
}
}
}
]
}
}
}
}
Loading

0 comments on commit c2b02df

Please sign in to comment.