Skip to content

Commit

Permalink
[Hub Generated] Public private branch 'master' (Azure#14463)
Browse files Browse the repository at this point in the history
* Update HybridCompute.json

* Update Machines_Get.json

* Update HybridCompute.json

* Update Machines_Get.json

* Swagger update

* Fix syntax error

* Prettify Swagger

* Update

* Add in a new api-version

* Add 2021-04-22-preview api-version

* Update descriptions

* Extensions Upgrade example

* Update Readme.md

* Fix syntax error

* Fix syntax error

* Fix validation errors

* Fix validation errors

* Fix validation errors

* Fix validation errors

* camelcase

* Fix validation errors

* Fix validation errors

* Fix validation errors

* Fix validation errors

* Fix validation errors

Co-authored-by: Raghu Shantha [MSFT] <raghus@microsoft.com>
  • Loading branch information
2 people authored and mkarmark committed Jul 20, 2021
1 parent d2ea636 commit 4570287
Show file tree
Hide file tree
Showing 30 changed files with 3,389 additions and 0 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": "2021-04-22-preview"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "myResourceGroup",
"machineName": "myMachine",
"api-version": "2021-04-22-preview",
"extensionUpgradeParameters": {
"extensionTargets": {
"Microsoft.Compute.CustomScriptExtension": {
"targetVersion": "1.10"
},
"Microsoft.Azure.Monitoring": {
"targetVersion": "2.0"
}
}
}
},
"responses": {
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "myResourceGroup",
"machineName": "myMachine",
"extensionName": "CustomScriptExtension",
"api-version": "2021-04-22-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": "2021-04-22-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,74 @@
{
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "myResourceGroup",
"machineName": "myMachine",
"api-version": "2021-04-22-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,
"osName": null,
"osVersion": null,
"osProfile": {
"computerName": null
},
"vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f",
"locationData": {
"name": "Redmond",
"city": "redmond",
"district": null,
"countryOrRegion": "usa"
},
"clientPublicKey": "string",
"parentClusterResourceId": "{AzureStackHCIResourceId}",
"detectedProperties": {
"cloudprovider": "N/A",
"manufacturer": "Microsoft Corporation",
"model": "Virtual Machine",
"mssqldiscovered": "false"
},
"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": "2021-04-22-preview"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "myResourceGroup",
"machineName": "myMachine",
"api-version": "2021-04-22-preview"
},
"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,
"osName": null,
"osVersion": null,
"osProfile": {
"computerName": null
},
"vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f",
"locationData": {
"name": "Redmond",
"city": "redmond",
"district": null,
"countryOrRegion": "usa"
},
"clientPublicKey": "string",
"parentClusterResourceId": "{AzureStackHCIResourceId}",
"detectedProperties": {
"cloudprovider": "N/A",
"manufacturer": "Microsoft Corporation",
"model": "Virtual Machine",
"mssqldiscovered": "false"
},
"privateLinkScopeResourceId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2021-04-22-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/machines/myMachine",
"name": "myMachine",
"location": "eastus2euap",
"tags": null,
"identity": {
"type": "SystemAssigned",
"principalId": "f7a068cc-b0b8-46e8-a203-22f301a62a8f",
"tenantId": "c4098cc-91b8-46c2-a205-d82ab1a62a8f"
},
"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,
"osName": null,
"osVersion": null,
"osProfile": {
"computerName": null
},
"vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f",
"locationData": {
"name": "Redmond"
},
"clientPublicKey": "string",
"parentClusterResourceId": null,
"detectedProperties": {
"cloudprovider": "N/A",
"manufacturer": "Microsoft Corporation",
"model": "Virtual Machine",
"mssqldiscovered": "false"
},
"privateLinkScopeResourceId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName"
}
},
{
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/machines/myMachine2",
"name": "myMachine2",
"location": "westus2",
"tags": null,
"identity": {
"type": "SystemAssigned",
"principalId": "e7a068cc-b0b8-46e8-a203-22f301a62a8f",
"tenantId": "c4098cc-91b8-46c2-a205-d82ab1a62a8f"
},
"type": "Microsoft.HybridCompute/machines",
"properties": {
"provisioningState": "Succeeded",
"agentVersion": null,
"status": null,
"lastStatusChange": null,
"errorDetails": null,
"displayName": null,
"machineFqdn": null,
"osName": null,
"osVersion": null,
"osProfile": {
"computerName": null
},
"vmId": "a4a098cc-b0b8-46e8-a205-62f301a62a8f",
"locationData": {
"name": "Redmond"
},
"clientPublicKey": "string",
"parentClusterResourceId": "{AzureStackHCIResourceId}",
"detectedProperties": {
"cloudprovider": "N/A",
"manufacturer": "Microsoft Corporation",
"model": "Surfacebook",
"mssqldiscovered": "true"
},
"privateLinkScopeResourceId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName"
}
}
],
"nextLink": null
}
}
}
}
Loading

0 comments on commit 4570287

Please sign in to comment.