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/2022-08-11-preview (#20502)

* Adds base for updating Microsoft.HybridCompute from version preview/2022-05-10-preview to version 2022-08-11-preview

* Updates readme

* Updates API version in new specs and examples

* Squashing commits into 1

* Added plural + singular naming

* fixed extension types

* Made return types singular

* Added comment changes

* reverted enum change and update trackedResource to v3

* fixed param name

* fixed more plural/singular issues in the example

* added x-ms-client-flatten:true and moved location to the upper layer

* explicitly declare location

* tried resource instead

* using v3 to avoid conflicts

* updated v3 in privatelinkscopes.json too

* removed Resource inheritance and moved requestId to id

* Update readme.python.md

#20502 (comment)

* Update readme.go.md

* Added ProxyResource common type to ExtensionValue definition

* Add location in the ExtensionValue defn

* Fix syntax error

* Fix linit error by removing location property

* Remove location

* Remove location

* Prettyfy json

Co-authored-by: dorothyhu <jinahu@microsoft.com>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
Co-authored-by: Raghu Shantha [MSFT] <raghus@microsoft.com>
  • Loading branch information
4 people authored Oct 11, 2022
1 parent a6463fe commit 94ca9bf
Show file tree
Hide file tree
Showing 35 changed files with 4,331 additions and 3 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "myResourceGroup",
"machineName": "myMachine",
"extensionName": "MMA",
"api-version": "2022-08-11-preview"
},
"responses": {
"200": {},
"202": {},
"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": "2022-08-11-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": "2022-08-11-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,22 @@
{
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "myResourceGroup",
"machineName": "myMachine",
"api-version": "2022-08-11-preview",
"extensionUpgradeParameters": {
"extensionTargets": {
"Microsoft.Compute.CustomScriptExtension": {
"targetVersion": "1.10"
},
"Microsoft.Azure.Monitoring": {
"targetVersion": "2.0"
}
}
}
},
"responses": {
"200": {},
"202": {}
}
}
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": "2022-08-11-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,64 @@
{
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "myResourceGroup",
"machineName": "myMachine",
"api-version": "2022-08-11-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": {}
}
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "myResourceGroup",
"machineName": "myMachine",
"api-version": "2022-08-11-preview",
"parameters": {
"location": "eastus2euap",
"properties": {
"vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f",
"locationData": {
"name": "Redmond"
},
"clientPublicKey": "string",
"parentClusterResourceId": "{AzureStackHCIResourceId}",
"privateLinkScopeResourceId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName"
},
"identity": {
"type": "SystemAssigned"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/machines/myMachine",
"name": "myMachine",
"location": "eastus2euap",
"tags": null,
"identity": {
"type": "SystemAssigned",
"principalId": "string",
"tenantId": "string"
},
"type": "Microsoft.HybridCompute/machines",
"properties": {
"provisioningState": "Succeeded",
"agentVersion": null,
"status": null,
"lastStatusChange": null,
"errorDetails": null,
"displayName": null,
"machineFqdn": null,
"vmUuid": null,
"osSku": null,
"domainName": null,
"adFqdn": null,
"dnsFqdn": null,
"osVersion": null,
"osType": null,
"osProfile": {
"computerName": null,
"windowsConfiguration": {
"patchSettings": {
"assessmentMode": null,
"patchMode": null
}
},
"linuxConfiguration": {
"patchSettings": {
"assessmentMode": null,
"patchMode": null
}
}
},
"vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f",
"locationData": {
"name": "Redmond",
"city": "redmond",
"district": null,
"countryOrRegion": "usa"
},
"clientPublicKey": "string",
"parentClusterResourceId": "{AzureStackHCIResourceId}",
"mssqlDiscovered": "false",
"detectedProperties": {
"cloudprovider": "N/A",
"manufacturer": "Microsoft Corporation",
"model": "Virtual Machine"
},
"privateLinkScopeResourceId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "myResourceGroup",
"machineName": "myMachine",
"api-version": "2022-08-11-preview"
},
"responses": {
"200": {},
"204": {}
}
}
Loading

0 comments on commit 94ca9bf

Please sign in to comment.