-
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.
[Hub Generated] Review request for Microsoft.HybridCompute to add ver…
…sion preview/2022-05-10-preview (#19099) * Adds base for updating Microsoft.HybridCompute from version stable/2022-03-10 to version 2022-05-10-preview * Updates readme * Updates API version in new specs and examples * add resources && fixed a bug * modified resources * added readonly tag for resources * ran npm prettier * suppress body top level properties * added additional properties to properties.settings/protectedProperties * removed additionalProperties: true * fixed the api-version tag in the examples * added config mode * added additionalProperties tag' * fixed examples and changed descriptions of machines_createOrUpdate and machines_delete * removed osName and extensions
- Loading branch information
Showing
32 changed files
with
4,366 additions
and
214 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
1,447 changes: 1,447 additions & 0 deletions
1,447
...te/resource-manager/Microsoft.HybridCompute/preview/2022-05-10-preview/HybridCompute.json
Large diffs are not rendered by default.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
...-manager/Microsoft.HybridCompute/preview/2022-05-10-preview/examples/DELETEExtension.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,14 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscriptionId}", | ||
"resourceGroupName": "myResourceGroup", | ||
"machineName": "myMachine", | ||
"extensionName": "MMA", | ||
"api-version": "2022-05-10-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...nager/Microsoft.HybridCompute/preview/2022-05-10-preview/examples/Extensions_Upgrade.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": "{subscriptionId}", | ||
"resourceGroupName": "myResourceGroup", | ||
"machineName": "myMachine", | ||
"api-version": "2022-05-10-preview", | ||
"extensionUpgradeParameters": { | ||
"extensionTargets": { | ||
"Microsoft.Compute.CustomScriptExtension": { | ||
"targetVersion": "1.10" | ||
}, | ||
"Microsoft.Azure.Monitoring": { | ||
"targetVersion": "2.0" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...rce-manager/Microsoft.HybridCompute/preview/2022-05-10-preview/examples/GETExtension.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": "2022-05-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" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
...ce-manager/Microsoft.HybridCompute/preview/2022-05-10-preview/examples/LISTExtension.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,64 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscriptionId}", | ||
"resourceGroupName": "myResourceGroup", | ||
"machineName": "myMachine", | ||
"api-version": "2022-05-10-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": {} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
86 changes: 86 additions & 0 deletions
86
.../Microsoft.HybridCompute/preview/2022-05-10-preview/examples/Machines_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,86 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscriptionId}", | ||
"resourceGroupName": "myResourceGroup", | ||
"machineName": "myMachine", | ||
"api-version": "2022-05-10-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" | ||
} | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...-manager/Microsoft.HybridCompute/preview/2022-05-10-preview/examples/Machines_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,12 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscriptionId}", | ||
"resourceGroupName": "myResourceGroup", | ||
"machineName": "myMachine", | ||
"api-version": "2022-05-10-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
98 changes: 98 additions & 0 deletions
98
...rce-manager/Microsoft.HybridCompute/preview/2022-05-10-preview/examples/Machines_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,98 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscriptionId}", | ||
"resourceGroupName": "myResourceGroup", | ||
"machineName": "myMachine", | ||
"api-version": "2022-05-10-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, | ||
"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" | ||
}, | ||
"agentConfiguration": { | ||
"proxyUrl": "https://test.test", | ||
"incomingConnectionsPorts": [ | ||
"22", | ||
"23" | ||
], | ||
"extensionsAllowList": null, | ||
"extensionsBlockList": null, | ||
"proxyBypass": [ | ||
"proxy1", | ||
"proxy2" | ||
], | ||
"extensionsEnabled": "true", | ||
"guestConfigurationEnabled": "true", | ||
"configMode": "full" | ||
}, | ||
"serviceStatuses": { | ||
"extensionService": { | ||
"status": "Running", | ||
"startupType": "Automatic" | ||
}, | ||
"guestConfigurationService": { | ||
"status": "Running", | ||
"startupType": "Automatic" | ||
} | ||
}, | ||
"privateLinkScopeResourceId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName" | ||
}, | ||
"resources": [] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.