From 59f00360b8433258ddff6e1d0bbaf03194660b46 Mon Sep 17 00:00:00 2001 From: NanxiangLiu <33285578+Nickcandy@users.noreply.github.com> Date: Tue, 25 Jul 2023 21:12:51 +0800 Subject: [PATCH 1/3] Revert "Update DedicatedHostUpdateMethod.cs (#22408)" (#22417) This reverts commit 7cfc15855a2bb619863bbd3484fa8c7832e430a1. --- .../Generated/DedicatedHost/DedicatedHostUpdateMethod.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compute/Compute/Generated/DedicatedHost/DedicatedHostUpdateMethod.cs b/src/Compute/Compute/Generated/DedicatedHost/DedicatedHostUpdateMethod.cs index af1b59c0419d..18693aaf6a5b 100644 --- a/src/Compute/Compute/Generated/DedicatedHost/DedicatedHostUpdateMethod.cs +++ b/src/Compute/Compute/Generated/DedicatedHost/DedicatedHostUpdateMethod.cs @@ -32,7 +32,7 @@ namespace Microsoft.Azure.Commands.Compute.Automation { - [Cmdlet("Update", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Host", SupportsShouldProcess = true, DefaultParameterSetName = "DefaultParameterSet")] + [Cmdlet("Update", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Host", SupportsShouldProcess = true)] [OutputType(typeof(PSHost))] public partial class UpdateAzureRmDedicatedHost : ComputeAutomationBaseCmdlet { From 458ef7a0515b30547ffe9976d1190797464b99d7 Mon Sep 17 00:00:00 2001 From: nanxiangLiu Date: Tue, 25 Jul 2023 21:19:35 +0800 Subject: [PATCH 2/3] Revert "[Compute] New cmdlets Get-AzHostSize and Update-AzHost (#22381)" This reverts commit c8e54e26185cd73a5fcdf1b6989323ec529bf6dc. --- .../ScenarioTests/DedicatedHostTests.cs | 7 - .../ScenarioTests/DedicatedHostTests.ps1 | 44 - .../TestDedicatedHostUpdateAndSize.json | 1159 ----------------- src/Compute/Compute/Az.Compute.psd1 | 3 +- src/Compute/Compute/ChangeLog.md | 1 - .../DedicatedHostSizeGetMethod.cs | 75 -- .../DedicatedHostUpdateMethod.cs | 133 -- src/Compute/Compute/help/Get-AzHostSize.md | 111 -- src/Compute/Compute/help/Update-AzHost.md | 222 ---- 9 files changed, 1 insertion(+), 1754 deletions(-) delete mode 100644 src/Compute/Compute.Test/SessionRecords/Microsoft.Azure.Commands.Compute.Test.ScenarioTests.DedicatedHostTests/TestDedicatedHostUpdateAndSize.json delete mode 100644 src/Compute/Compute/Generated/DedicatedHost/DedicatedHostSizeGetMethod.cs delete mode 100644 src/Compute/Compute/Generated/DedicatedHost/DedicatedHostUpdateMethod.cs delete mode 100644 src/Compute/Compute/help/Get-AzHostSize.md delete mode 100644 src/Compute/Compute/help/Update-AzHost.md diff --git a/src/Compute/Compute.Test/ScenarioTests/DedicatedHostTests.cs b/src/Compute/Compute.Test/ScenarioTests/DedicatedHostTests.cs index a3345e489d66..008ad43ad0a8 100644 --- a/src/Compute/Compute.Test/ScenarioTests/DedicatedHostTests.cs +++ b/src/Compute/Compute.Test/ScenarioTests/DedicatedHostTests.cs @@ -44,12 +44,5 @@ public void TestDedicatedHostRestart() { TestRunner.RunTestScript("Test-DedicatedHostRestart"); } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestDedicatedHostUpdateAndSize() - { - TestRunner.RunTestScript("Test-DedicatedHostUpdateAndSize"); - } } } diff --git a/src/Compute/Compute.Test/ScenarioTests/DedicatedHostTests.ps1 b/src/Compute/Compute.Test/ScenarioTests/DedicatedHostTests.ps1 index a71bfc9cf987..da8cd7b823f0 100644 --- a/src/Compute/Compute.Test/ScenarioTests/DedicatedHostTests.ps1 +++ b/src/Compute/Compute.Test/ScenarioTests/DedicatedHostTests.ps1 @@ -288,48 +288,4 @@ function Test-DedicatedHostRestart # Cleanup Clean-ResourceGroup $rgname } -} - - -<# -.SYNOPSIS -Test Restart dedicated host Update and Size. -#> -function Test-DedicatedHostUpdateAndSize -{ - # Setup - $rgname = Get-ComputeTestResourceName - - try - { - # Common - # [string]$loc = Get-Location "Microsoft.Resources" "resourceGroups" "East US 2 EUAP"; - # $loc = $loc.Replace(' ', ''); - $loc = "eastus2euap"; - - New-AzResourceGroup -Name $rgname -Location $loc -Force; - - $hostGroupName = $rgname + 'hostgroup'; - New-AzHostGroup -ResourceGroupName $rgname -Name $hostGroupName -Location $loc -PlatformFaultDomain 1 -Zone "2" -Tag @{key1 = "val1"}; - - $hostGroup = Get-AzHostGroup -ResourceGroupName $rgname -Name $hostGroupName; - $hostName = $rgname + 'host'; - New-AzHost -ResourceGroupName $rgname -HostGroupName $hostGroupName -Name $hostName -Location $loc -Sku "ESv3-Type1" -Tag @{key1 = "val2"}; - - $dedicatedHost = Get-AzHost -ResourceGroupName $rgname -HostGroupName $hostGroupName -Name $hostName; - - # Restart the dedicated host - $hostSize = Get-AzHostSize -ResourceGroupName $rgname -HostGroupName $hostGroupName -Name $hostName; - Assert-NotNull $hostSize; - - # Update DH - $dHUpdate = Update-AzHost -ResourceGroupName $rgname -HostGroupName $hostGroupName -Name $hostName -AutoReplaceOnFailure $false; - Assert-AreEqual $dHUpdate.AutoReplaceOnFailure $False ; - - } - finally - { - # Cleanup - Clean-ResourceGroup $rgname - } } \ No newline at end of file diff --git a/src/Compute/Compute.Test/SessionRecords/Microsoft.Azure.Commands.Compute.Test.ScenarioTests.DedicatedHostTests/TestDedicatedHostUpdateAndSize.json b/src/Compute/Compute.Test/SessionRecords/Microsoft.Azure.Commands.Compute.Test.ScenarioTests.DedicatedHostTests/TestDedicatedHostUpdateAndSize.json deleted file mode 100644 index 8f95139b3c59..000000000000 --- a/src/Compute/Compute.Test/SessionRecords/Microsoft.Azure.Commands.Compute.Test.ScenarioTests.DedicatedHostTests/TestDedicatedHostUpdateAndSize.json +++ /dev/null @@ -1,1159 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourcegroups/crptestps7260?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlZ3JvdXBzL2NycHRlc3RwczcyNjA/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16945bd3-ef88-4ded-958d-27f450e59104" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.700.22.55902", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22621", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.78" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "33" - ] - }, - "RequestBody": "{\r\n \"location\": \"eastus2euap\"\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "ed620bab-b2b6-41eb-a4ca-af38d9843eb3" - ], - "x-ms-correlation-request-id": [ - "ed620bab-b2b6-41eb-a4ca-af38d9843eb3" - ], - "x-ms-routing-request-id": [ - "CANADACENTRAL:20230722T222558Z:ed620bab-b2b6-41eb-a4ca-af38d9843eb3" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Sat, 22 Jul 2023 22:25:57 GMT" - ], - "Content-Length": [ - "184" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260\",\r\n \"name\": \"crptestps7260\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup?api-version=2023-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczcyNjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2hvc3RHcm91cHMvY3JwdGVzdHBzNzI2MGhvc3Rncm91cD9hcGktdmVyc2lvbj0yMDIzLTAzLTAx", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "a2f677ff-45cd-44c4-809b-9090855ea414" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.700.22.55902", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22621", - "Microsoft.Azure.Management.Compute.ComputeManagementClient/61.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "161" - ] - }, - "RequestBody": "{\r\n \"properties\": {\r\n \"platformFaultDomainCount\": 1\r\n },\r\n \"zones\": [\r\n \"2\"\r\n ],\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"key1\": \"val1\"\r\n }\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-resource": [ - "Microsoft.Compute/PutDeleteDedicatedHost3Min;118,Microsoft.Compute/PutDeleteDedicatedHost30Min;581" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "5a4886cd-74f9-4a05-89f2-496786565ad9" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "1cbf6120-825b-4fee-9ae7-5671aa5e9ed2" - ], - "x-ms-routing-request-id": [ - "CANADACENTRAL:20230722T222559Z:1cbf6120-825b-4fee-9ae7-5671aa5e9ed2" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Sat, 22 Jul 2023 22:25:59 GMT" - ], - "Content-Length": [ - "437" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"crptestps7260hostgroup\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/CRPTESTPS7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup\",\r\n \"type\": \"Microsoft.Compute/hostGroups\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"key1\": \"val1\"\r\n },\r\n \"zones\": [\r\n \"2\"\r\n ],\r\n \"properties\": {\r\n \"platformFaultDomainCount\": 1,\r\n \"supportAutomaticPlacement\": false\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup?api-version=2023-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczcyNjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2hvc3RHcm91cHMvY3JwdGVzdHBzNzI2MGhvc3Rncm91cD9hcGktdmVyc2lvbj0yMDIzLTAzLTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4346ccc8-2982-49c6-bc53-9e19e29fa872" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.700.22.55902", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22621", - "Microsoft.Azure.Management.Compute.ComputeManagementClient/61.0.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-resource": [ - "Microsoft.Compute/GetDedicatedHost30Min;949" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "bbac5032-fadd-4feb-a629-915d3091bfd3" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "31898949-389b-4e67-a4cf-a2856eb04170" - ], - "x-ms-routing-request-id": [ - "CANADACENTRAL:20230722T222600Z:31898949-389b-4e67-a4cf-a2856eb04170" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Sat, 22 Jul 2023 22:26:00 GMT" - ], - "Content-Length": [ - "437" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"crptestps7260hostgroup\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/CRPTESTPS7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup\",\r\n \"type\": \"Microsoft.Compute/hostGroups\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"key1\": \"val1\"\r\n },\r\n \"zones\": [\r\n \"2\"\r\n ],\r\n \"properties\": {\r\n \"platformFaultDomainCount\": 1,\r\n \"supportAutomaticPlacement\": false\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup/hosts/crptestps7260host?api-version=2023-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczcyNjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2hvc3RHcm91cHMvY3JwdGVzdHBzNzI2MGhvc3Rncm91cC9ob3N0cy9jcnB0ZXN0cHM3MjYwaG9zdD9hcGktdmVyc2lvbj0yMDIzLTAzLTAx", - "RequestMethod": "PUT", - "RequestHeaders": { - "x-ms-client-request-id": [ - "695bb0ff-79cf-47bc-93a4-3436deea6c27" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.700.22.55902", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22621", - "Microsoft.Azure.Management.Compute.ComputeManagementClient/61.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "116" - ] - }, - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"ESv3-Type1\"\r\n },\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"key1\": \"val2\"\r\n }\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "azure-asyncoperation": [ - "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/EastUS2EUAP/operations/6281bf59-e53c-4d8c-aadd-89cabbc0246e?p=ce1708c5-dbca-4b22-b426-e8b8908417da&api-version=2023-03-01" - ], - "azure-asyncnotification": [ - "Enabled" - ], - "x-ms-ratelimit-remaining-resource": [ - "Microsoft.Compute/PutDeleteDedicatedHost3Min;118,Microsoft.Compute/PutDeleteDedicatedHost30Min;580" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "6281bf59-e53c-4d8c-aadd-89cabbc0246e" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "4914bb28-bb80-4aae-a17f-42dbb3f42643" - ], - "x-ms-routing-request-id": [ - "CANADACENTRAL:20230722T222602Z:4914bb28-bb80-4aae-a17f-42dbb3f42643" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Sat, 22 Jul 2023 22:26:01 GMT" - ], - "Content-Length": [ - "616" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"crptestps7260host\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup/hosts/crptestps7260host\",\r\n \"type\": \"Microsoft.Compute/hostGroups/hosts\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"key1\": \"val2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ESv3-Type1\"\r\n },\r\n \"properties\": {\r\n \"platformFaultDomain\": 0,\r\n \"autoReplaceOnFailure\": true,\r\n \"hostId\": \"7de20b62-f85c-417e-9358-51a97f3c2b94\",\r\n \"provisioningState\": \"Creating\",\r\n \"timeCreated\": \"2023-07-22T18:26:01.6739719-04:00\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/EastUS2EUAP/operations/6281bf59-e53c-4d8c-aadd-89cabbc0246e?p=ce1708c5-dbca-4b22-b426-e8b8908417da&api-version=2023-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvRWFzdFVTMkVVQVAvb3BlcmF0aW9ucy82MjgxYmY1OS1lNTNjLTRkOGMtYWFkZC04OWNhYmJjMDI0NmU/cD1jZTE3MDhjNS1kYmNhLTRiMjItYjQyNi1lOGI4OTA4NDE3ZGEmYXBpLXZlcnNpb249MjAyMy0wMy0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "695bb0ff-79cf-47bc-93a4-3436deea6c27" - ], - "User-Agent": [ - "FxVersion/4.700.22.55902", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22621", - "Microsoft.Azure.Management.Compute.ComputeManagementClient/61.0.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-resource": [ - "Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29978" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "d3306872-014e-4744-8196-4c3563587ab1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "02822f93-5793-4fdc-aba7-dc98261c2175" - ], - "x-ms-routing-request-id": [ - "CANADACENTRAL:20230722T222632Z:02822f93-5793-4fdc-aba7-dc98261c2175" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Sat, 22 Jul 2023 22:26:31 GMT" - ], - "Content-Length": [ - "184" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"startTime\": \"2023-07-22T18:26:01.6114741-04:00\",\r\n \"endTime\": \"2023-07-22T18:26:02.0177406-04:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"6281bf59-e53c-4d8c-aadd-89cabbc0246e\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup/hosts/crptestps7260host?api-version=2023-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczcyNjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2hvc3RHcm91cHMvY3JwdGVzdHBzNzI2MGhvc3Rncm91cC9ob3N0cy9jcnB0ZXN0cHM3MjYwaG9zdD9hcGktdmVyc2lvbj0yMDIzLTAzLTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "695bb0ff-79cf-47bc-93a4-3436deea6c27" - ], - "User-Agent": [ - "FxVersion/4.700.22.55902", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22621", - "Microsoft.Azure.Management.Compute.ComputeManagementClient/61.0.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-resource": [ - "Microsoft.Compute/GetDedicatedHost3Min;245,Microsoft.Compute/GetDedicatedHost30Min;946" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "56989ac0-d74b-4062-85db-588f9c483981" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "6cc805c2-1338-44dd-868a-f75099b7bbf7" - ], - "x-ms-routing-request-id": [ - "CANADACENTRAL:20230722T222632Z:6cc805c2-1338-44dd-868a-f75099b7bbf7" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Sat, 22 Jul 2023 22:26:32 GMT" - ], - "Content-Length": [ - "707" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"crptestps7260host\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup/hosts/crptestps7260host\",\r\n \"type\": \"Microsoft.Compute/hostGroups/hosts\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"key1\": \"val2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ESv3-Type1\"\r\n },\r\n \"properties\": {\r\n \"platformFaultDomain\": 0,\r\n \"autoReplaceOnFailure\": true,\r\n \"hostId\": \"7de20b62-f85c-417e-9358-51a97f3c2b94\",\r\n \"virtualMachines\": [],\r\n \"provisioningTime\": \"2023-07-22T18:26:01.9396083-04:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2023-07-22T18:26:01.6739719-04:00\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup/hosts/crptestps7260host?api-version=2023-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczcyNjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2hvc3RHcm91cHMvY3JwdGVzdHBzNzI2MGhvc3Rncm91cC9ob3N0cy9jcnB0ZXN0cHM3MjYwaG9zdD9hcGktdmVyc2lvbj0yMDIzLTAzLTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "2270230d-92ee-4779-8b8b-b36668affc09" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.700.22.55902", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22621", - "Microsoft.Azure.Management.Compute.ComputeManagementClient/61.0.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-resource": [ - "Microsoft.Compute/GetDedicatedHost3Min;244,Microsoft.Compute/GetDedicatedHost30Min;945" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "13d2228c-1e45-42e6-8cbc-4a15da000b54" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "92796f98-0a40-4663-a60f-8795ab8773a2" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20230722T222633Z:92796f98-0a40-4663-a60f-8795ab8773a2" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Sat, 22 Jul 2023 22:26:32 GMT" - ], - "Content-Length": [ - "707" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"crptestps7260host\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup/hosts/crptestps7260host\",\r\n \"type\": \"Microsoft.Compute/hostGroups/hosts\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"key1\": \"val2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ESv3-Type1\"\r\n },\r\n \"properties\": {\r\n \"platformFaultDomain\": 0,\r\n \"autoReplaceOnFailure\": true,\r\n \"hostId\": \"7de20b62-f85c-417e-9358-51a97f3c2b94\",\r\n \"virtualMachines\": [],\r\n \"provisioningTime\": \"2023-07-22T18:26:01.9396083-04:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2023-07-22T18:26:01.6739719-04:00\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup/hosts/crptestps7260host?api-version=2023-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczcyNjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2hvc3RHcm91cHMvY3JwdGVzdHBzNzI2MGhvc3Rncm91cC9ob3N0cy9jcnB0ZXN0cHM3MjYwaG9zdD9hcGktdmVyc2lvbj0yMDIzLTAzLTAx", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "063b3112-9854-43e9-965c-62458b8152e6" - ], - "User-Agent": [ - "FxVersion/4.700.22.55902", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22621", - "Microsoft.Azure.Management.Compute.ComputeManagementClient/61.0.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-resource": [ - "Microsoft.Compute/GetDedicatedHost3Min;243,Microsoft.Compute/GetDedicatedHost30Min;942" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "e7ae7177-85dd-4cd7-962a-3363a6eff48f" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "5b2b95ad-f96d-4577-81e7-e756ec107b00" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20230722T222704Z:5b2b95ad-f96d-4577-81e7-e756ec107b00" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Sat, 22 Jul 2023 22:27:04 GMT" - ], - "Content-Length": [ - "708" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"crptestps7260host\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup/hosts/crptestps7260host\",\r\n \"type\": \"Microsoft.Compute/hostGroups/hosts\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"key1\": \"val2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ESv3-Type1\"\r\n },\r\n \"properties\": {\r\n \"platformFaultDomain\": 0,\r\n \"autoReplaceOnFailure\": false,\r\n \"hostId\": \"7de20b62-f85c-417e-9358-51a97f3c2b94\",\r\n \"virtualMachines\": [],\r\n \"provisioningTime\": \"2023-07-22T18:26:01.9396083-04:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2023-07-22T18:26:01.6739719-04:00\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup/hosts/crptestps7260host/hostSizes?api-version=2023-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczcyNjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2hvc3RHcm91cHMvY3JwdGVzdHBzNzI2MGhvc3Rncm91cC9ob3N0cy9jcnB0ZXN0cHM3MjYwaG9zdC9ob3N0U2l6ZXM/YXBpLXZlcnNpb249MjAyMy0wMy0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "f1acb439-e9ef-48f2-b985-d9bae3e3bd84" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.700.22.55902", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22621", - "Microsoft.Azure.Management.Compute.ComputeManagementClient/61.0.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-resource": [ - "Microsoft.Compute/GetDedicatedHost3Min;243,Microsoft.Compute/GetDedicatedHost30Min;944" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "730641eb-e138-4584-a6a0-44cd34f21c86" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "5acab2a8-21ff-4888-b90d-7c5cbcae1ec2" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20230722T222633Z:5acab2a8-21ff-4888-b90d-7c5cbcae1ec2" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Sat, 22 Jul 2023 22:26:32 GMT" - ], - "Content-Length": [ - "60" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n \"ESv3-Type2\",\r\n \"ESv3-Type3\"\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup/hosts/crptestps7260host?api-version=2023-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlR3JvdXBzL2NycHRlc3RwczcyNjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2hvc3RHcm91cHMvY3JwdGVzdHBzNzI2MGhvc3Rncm91cC9ob3N0cy9jcnB0ZXN0cHM3MjYwaG9zdD9hcGktdmVyc2lvbj0yMDIzLTAzLTAx", - "RequestMethod": "PATCH", - "RequestHeaders": { - "x-ms-client-request-id": [ - "063b3112-9854-43e9-965c-62458b8152e6" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.700.22.55902", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22621", - "Microsoft.Azure.Management.Compute.ComputeManagementClient/61.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "63" - ] - }, - "RequestBody": "{\r\n \"properties\": {\r\n \"autoReplaceOnFailure\": false\r\n }\r\n}", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "azure-asyncoperation": [ - "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/EastUS2EUAP/operations/035a224f-bcd4-4bed-ab1e-41da29d11265?p=ce1708c5-dbca-4b22-b426-e8b8908417da&api-version=2023-03-01" - ], - "azure-asyncnotification": [ - "Enabled" - ], - "x-ms-ratelimit-remaining-resource": [ - "Microsoft.Compute/PutDeleteDedicatedHost3Min;117,Microsoft.Compute/PutDeleteDedicatedHost30Min;579" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "035a224f-bcd4-4bed-ab1e-41da29d11265" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "3352848c-40c3-40cf-b6ad-de2b6a178a8d" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20230722T222634Z:3352848c-40c3-40cf-b6ad-de2b6a178a8d" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Sat, 22 Jul 2023 22:26:33 GMT" - ], - "Content-Length": [ - "679" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"crptestps7260host\",\r\n \"id\": \"/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourceGroups/crptestps7260/providers/Microsoft.Compute/hostGroups/crptestps7260hostgroup/hosts/crptestps7260host\",\r\n \"type\": \"Microsoft.Compute/hostGroups/hosts\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {\r\n \"key1\": \"val2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ESv3-Type1\"\r\n },\r\n \"properties\": {\r\n \"platformFaultDomain\": 0,\r\n \"autoReplaceOnFailure\": false,\r\n \"hostId\": \"7de20b62-f85c-417e-9358-51a97f3c2b94\",\r\n \"provisioningTime\": \"2023-07-22T18:26:01.9396083-04:00\",\r\n \"provisioningState\": \"Updating\",\r\n \"timeCreated\": \"2023-07-22T18:26:01.6739719-04:00\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/providers/Microsoft.Compute/locations/EastUS2EUAP/operations/035a224f-bcd4-4bed-ab1e-41da29d11265?p=ce1708c5-dbca-4b22-b426-e8b8908417da&api-version=2023-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvRWFzdFVTMkVVQVAvb3BlcmF0aW9ucy8wMzVhMjI0Zi1iY2Q0LTRiZWQtYWIxZS00MWRhMjlkMTEyNjU/cD1jZTE3MDhjNS1kYmNhLTRiMjItYjQyNi1lOGI4OTA4NDE3ZGEmYXBpLXZlcnNpb249MjAyMy0wMy0wMQ==", - "RequestMethod": "GET", - "RequestHeaders": { - "x-ms-client-request-id": [ - "063b3112-9854-43e9-965c-62458b8152e6" - ], - "User-Agent": [ - "FxVersion/4.700.22.55902", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22621", - "Microsoft.Azure.Management.Compute.ComputeManagementClient/61.0.0" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-resource": [ - "Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29977" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "416517f8-31a7-48fe-bea9-ad4f1fe1174e" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "e0aff0c1-b00d-49a9-a655-29d577d66c74" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20230722T222704Z:e0aff0c1-b00d-49a9-a655-29d577d66c74" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Sat, 22 Jul 2023 22:27:04 GMT" - ], - "Content-Length": [ - "184" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"startTime\": \"2023-07-22T18:26:33.9878262-04:00\",\r\n \"endTime\": \"2023-07-22T18:26:34.1440842-04:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"035a224f-bcd4-4bed-ab1e-41da29d11265\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/resourcegroups/crptestps7260?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL3Jlc291cmNlZ3JvdXBzL2NycHRlc3RwczcyNjA/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", - "RequestMethod": "DELETE", - "RequestHeaders": { - "x-ms-client-request-id": [ - "8dbaff52-5417-4aac-91f1-006e455019ab" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.700.22.55902", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22621", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.78" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM3MjYwLUVBU1RVUzJFVUFQIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyZXVhcCJ9?api-version=2016-09-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-request-id": [ - "14576a8e-d94d-4921-80f3-a0bde5d25b3c" - ], - "x-ms-correlation-request-id": [ - "14576a8e-d94d-4921-80f3-a0bde5d25b3c" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20230722T222705Z:14576a8e-d94d-4921-80f3-a0bde5d25b3c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Sat, 22 Jul 2023 22:27:04 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM3MjYwLUVBU1RVUzJFVUFQIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyZXVhcCJ9?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVWxCVVJWTlVVRk0zTWpZd0xVVkJVMVJWVXpKRlZVRlFJaXdpYW05aVRHOWpZWFJwYjI0aU9pSmxZWE4wZFhNeVpYVmhjQ0o5P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.700.22.55902", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22621", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.78" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM3MjYwLUVBU1RVUzJFVUFQIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyZXVhcCJ9?api-version=2016-09-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "625931f3-5eff-4124-82c2-0b26fa5e848a" - ], - "x-ms-correlation-request-id": [ - "625931f3-5eff-4124-82c2-0b26fa5e848a" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20230722T222720Z:625931f3-5eff-4124-82c2-0b26fa5e848a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Sat, 22 Jul 2023 22:27:19 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM3MjYwLUVBU1RVUzJFVUFQIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyZXVhcCJ9?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVWxCVVJWTlVVRk0zTWpZd0xVVkJVMVJWVXpKRlZVRlFJaXdpYW05aVRHOWpZWFJwYjI0aU9pSmxZWE4wZFhNeVpYVmhjQ0o5P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.700.22.55902", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22621", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.78" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM3MjYwLUVBU1RVUzJFVUFQIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyZXVhcCJ9?api-version=2016-09-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "c8a5fac7-d7e7-41d4-9254-4939330bb8da" - ], - "x-ms-correlation-request-id": [ - "c8a5fac7-d7e7-41d4-9254-4939330bb8da" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20230722T222735Z:c8a5fac7-d7e7-41d4-9254-4939330bb8da" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Sat, 22 Jul 2023 22:27:34 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM3MjYwLUVBU1RVUzJFVUFQIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyZXVhcCJ9?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVWxCVVJWTlVVRk0zTWpZd0xVVkJVMVJWVXpKRlZVRlFJaXdpYW05aVRHOWpZWFJwYjI0aU9pSmxZWE4wZFhNeVpYVmhjQ0o5P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.700.22.55902", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22621", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.78" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM3MjYwLUVBU1RVUzJFVUFQIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyZXVhcCJ9?api-version=2016-09-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-request-id": [ - "0ccab9cd-a7e4-4150-bd0e-fcb31639f22f" - ], - "x-ms-correlation-request-id": [ - "0ccab9cd-a7e4-4150-bd0e-fcb31639f22f" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20230722T222750Z:0ccab9cd-a7e4-4150-bd0e-fcb31639f22f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Sat, 22 Jul 2023 22:27:49 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM3MjYwLUVBU1RVUzJFVUFQIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyZXVhcCJ9?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVWxCVVJWTlVVRk0zTWpZd0xVVkJVMVJWVXpKRlZVRlFJaXdpYW05aVRHOWpZWFJwYjI0aU9pSmxZWE4wZFhNeVpYVmhjQ0o5P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.700.22.55902", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22621", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.78" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM3MjYwLUVBU1RVUzJFVUFQIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyZXVhcCJ9?api-version=2016-09-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-request-id": [ - "ace1206d-3543-47e2-8dcc-7801a4a5bb00" - ], - "x-ms-correlation-request-id": [ - "ace1206d-3543-47e2-8dcc-7801a4a5bb00" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20230722T222805Z:ace1206d-3543-47e2-8dcc-7801a4a5bb00" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Sat, 22 Jul 2023 22:28:05 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM3MjYwLUVBU1RVUzJFVUFQIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyZXVhcCJ9?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVWxCVVJWTlVVRk0zTWpZd0xVVkJVMVJWVXpKRlZVRlFJaXdpYW05aVRHOWpZWFJwYjI0aU9pSmxZWE4wZFhNeVpYVmhjQ0o5P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.700.22.55902", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22621", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.78" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11995" - ], - "x-ms-request-id": [ - "683783f6-3e07-4785-b745-db244f1cf5eb" - ], - "x-ms-correlation-request-id": [ - "683783f6-3e07-4785-b745-db244f1cf5eb" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20230722T222821Z:683783f6-3e07-4785-b745-db244f1cf5eb" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Sat, 22 Jul 2023 22:28:20 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/e37510d7-33b6-4676-886f-ee75bcc01871/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DUlBURVNUUFM3MjYwLUVBU1RVUzJFVUFQIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyZXVhcCJ9?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTM3NTEwZDctMzNiNi00Njc2LTg4NmYtZWU3NWJjYzAxODcxL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVWxCVVJWTlVVRk0zTWpZd0xVVkJVMVJWVXpKRlZVRlFJaXdpYW05aVRHOWpZWFJwYjI0aU9pSmxZWE4wZFhNeVpYVmhjQ0o5P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", - "RequestMethod": "GET", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.700.22.55902", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22621", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.78" - ] - }, - "RequestBody": "", - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" - ], - "x-ms-request-id": [ - "0137eb12-1509-4bee-a04e-528b72113e9d" - ], - "x-ms-correlation-request-id": [ - "0137eb12-1509-4bee-a04e-528b72113e9d" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20230722T222821Z:0137eb12-1509-4bee-a04e-528b72113e9d" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Sat, 22 Jul 2023 22:28:21 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 200 - } - ], - "Names": { - "Test-DedicatedHostUpdateAndSize": [ - "crptestps7260" - ] - }, - "Variables": { - "SubscriptionId": "e37510d7-33b6-4676-886f-ee75bcc01871" - } -} \ No newline at end of file diff --git a/src/Compute/Compute/Az.Compute.psd1 b/src/Compute/Compute/Az.Compute.psd1 index 7cabcf5c4a93..13adad0a19f3 100644 --- a/src/Compute/Compute/Az.Compute.psd1 +++ b/src/Compute/Compute/Az.Compute.psd1 @@ -195,8 +195,7 @@ CmdletsToExport = 'Remove-AzAvailabilitySet', 'Get-AzAvailabilitySet', 'Add-AzVmGalleryApplication', 'Add-AzVmssGalleryApplication', 'Remove-AzVmGalleryApplication', 'Remove-AzVmssGalleryApplication', 'Add-AzVmssRunCommand', 'Remove-AzVmssRunCommand', - 'Get-AzVMRunCommand', 'Get-AzVmssVMRunCommand', - 'Get-AzHostSize', 'Update-AzHost' + 'Get-AzVMRunCommand', 'Get-AzVmssVMRunCommand' # Variables to export from this module VariablesToExport = '*' diff --git a/src/Compute/Compute/ChangeLog.md b/src/Compute/Compute/ChangeLog.md index 3b068b43c298..60e87dc8a08c 100644 --- a/src/Compute/Compute/ChangeLog.md +++ b/src/Compute/Compute/ChangeLog.md @@ -34,7 +34,6 @@ * Changed the installation behavior for the `GuestAttestation` extension in `New-AzVM` and `New-AzVmss` to set the property `EnableAutomaticUpgrade` to true. * Changes to `Set-AzVMOperatingSystem` to correct unnecessary mandatory parameters. * Changed the region for example 3 to eastus2 in the `New-AzVM` doc to resolve SKU not available errors. -* Added new cmdlets `Get-AzHostSize` and `Update-AzHost`. ## Version 6.0.0 * Added new switch parameter `OSImageScheduledEventEnabled` and string parameter `OSImageScheduledEventNotBeforeTimeoutInMinutes` to the cmdlets `New-AzVmssConfig` and `Update-AzVmss`. diff --git a/src/Compute/Compute/Generated/DedicatedHost/DedicatedHostSizeGetMethod.cs b/src/Compute/Compute/Generated/DedicatedHost/DedicatedHostSizeGetMethod.cs deleted file mode 100644 index dc1a072f8343..000000000000 --- a/src/Compute/Compute/Generated/DedicatedHost/DedicatedHostSizeGetMethod.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// - -// Warning: This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if the -// code is regenerated. - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using Microsoft.Azure.Commands.Compute.Automation.Models; -using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; -using Microsoft.Azure.Management.Compute; -using Microsoft.Azure.Management.Compute.Models; -using Microsoft.WindowsAzure.Commands.Utilities.Common; - -namespace Microsoft.Azure.Commands.Compute.Automation -{ - [Cmdlet(VerbsCommon.Get, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "HostSize")] - [OutputType(typeof(List))] - public partial class GetAzureRmDedicatedHostSize : ComputeAutomationBaseCmdlet - { - public override void ExecuteCmdlet() - { - base.ExecuteCmdlet(); - ExecuteClientAction(() => - { - string resourceGroupName = this.ResourceGroupName; - string hostGroupName = this.HostGroupName; - string hostName = this.HostName; - - List result = DedicatedHostsClient.ListAvailableSizes(resourceGroupName, hostGroupName, hostName).ToList(); - - WriteObject(result); - }); - } - - [Parameter( - Position = 0, - Mandatory = true, - ValueFromPipelineByPropertyName = true)] - [ResourceGroupCompleter] - public string ResourceGroupName { get; set; } - - [Parameter( - Position = 1, - Mandatory = true, - ValueFromPipelineByPropertyName = true)] - [ResourceNameCompleter("Microsoft.Compute/hostGroups", "ResourceGroupName")] - public string HostGroupName { get; set; } - - [Alias("Name")] - [Parameter( - Position = 2, - ValueFromPipelineByPropertyName = true)] - public string HostName { get; set; } - - } -} diff --git a/src/Compute/Compute/Generated/DedicatedHost/DedicatedHostUpdateMethod.cs b/src/Compute/Compute/Generated/DedicatedHost/DedicatedHostUpdateMethod.cs deleted file mode 100644 index 18693aaf6a5b..000000000000 --- a/src/Compute/Compute/Generated/DedicatedHost/DedicatedHostUpdateMethod.cs +++ /dev/null @@ -1,133 +0,0 @@ -// -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// - -// Warning: This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if the -// code is regenerated. - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using Microsoft.Azure.Commands.Compute.Automation.Models; -using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; -using Microsoft.Azure.Management.Compute; -using Microsoft.Azure.Management.Compute.Models; -using Microsoft.WindowsAzure.Commands.Utilities.Common; - -namespace Microsoft.Azure.Commands.Compute.Automation -{ - [Cmdlet("Update", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Host", SupportsShouldProcess = true)] - [OutputType(typeof(PSHost))] - public partial class UpdateAzureRmDedicatedHost : ComputeAutomationBaseCmdlet - { - public override void ExecuteCmdlet() - { - base.ExecuteCmdlet(); - ExecuteClientAction(() => - { - if (ShouldProcess(this.Name, "Update")) - { - string resourceGroupName; - string hostGroupName; - string Name; - switch (this.ParameterSetName) - { - case "ResourceIdParameter": - resourceGroupName = GetResourceGroupName(this.ResourceId); - hostGroupName = GetResourceName(this.ResourceId, "Microsoft.Compute/hostGroups", "hosts"); - Name = GetInstanceId(this.ResourceId, "Microsoft.Compute/hostGroups", "hosts"); - break; - default: - resourceGroupName = this.ResourceGroupName; - hostGroupName = this.HostGroupName; - Name = this.Name; - break; - } - - DedicatedHostUpdate parameters = new DedicatedHostUpdate(); - - if (this.IsParameterBound(c => c.AutoReplaceOnFailure)) - { - parameters.AutoReplaceOnFailure = this.AutoReplaceOnFailure; - } - - if (this.IsParameterBound(c => c.LicenseType)) - { - parameters.LicenseType = this.LicenseType; - } - - if (this.IsParameterBound(c => c.Sku)) - { - parameters.Sku = new Sku(this.Sku, null, null); - } - - - var result = DedicatedHostsClient.Update(resourceGroupName, hostGroupName, Name, parameters); - var psObject = new PSHost(); - ComputeAutomationAutoMapperProfile.Mapper.Map(result, psObject); - WriteObject(psObject); - } - }); - } - - [Parameter( - ParameterSetName = "DefaultParameter", - Position = 0, - Mandatory = true, - ValueFromPipelineByPropertyName = true)] - [ResourceGroupCompleter] - public string ResourceGroupName { get; set; } - - [Parameter( - ParameterSetName = "DefaultParameter", - Position = 1, - Mandatory = true, - ValueFromPipelineByPropertyName = true)] - public string HostGroupName { get; set; } - - [Alias("HostName")] - [Parameter( - ParameterSetName = "DefaultParameter", - Position = 2, - Mandatory = true, - ValueFromPipelineByPropertyName = true)] - public string Name { get; set; } - - [Parameter( - Mandatory = false, - HelpMessage = "The Sku Name that needs to be updated.")] - public string Sku { get; set; } - - [Parameter( - Mandatory = false)] - public bool AutoReplaceOnFailure { get; set; } - - [Parameter( - Mandatory = false)] - public DedicatedHostLicenseTypes LicenseType { get; set; } - - [Parameter( - ParameterSetName = "ResourceIdParameter", - Position = 0, - Mandatory = true, - ValueFromPipelineByPropertyName = true)] - public string ResourceId { get; set; } - - } -} diff --git a/src/Compute/Compute/help/Get-AzHostSize.md b/src/Compute/Compute/help/Get-AzHostSize.md deleted file mode 100644 index be4fecdb2a96..000000000000 --- a/src/Compute/Compute/help/Get-AzHostSize.md +++ /dev/null @@ -1,111 +0,0 @@ ---- -external help file: Microsoft.Azure.PowerShell.Cmdlets.Compute.dll-Help.xml -Module Name: Az.Compute -online version: https://learn.microsoft.com/powershell/module/az.compute/get-azhostsize -schema: 2.0.0 ---- - -# Get-AzHostSize - -## SYNOPSIS -Get List of possible Host Sizes. - -## SYNTAX - -``` -Get-AzHostSize [-ResourceGroupName] [-HostGroupName] [[-HostName] ] - [-DefaultProfile ] [] -``` - -## DESCRIPTION -Get List of possible Host Sizes. - -## EXAMPLES - -### Example 1 -```powershell -Get-AzHostSize -ResourceGroupName $resourceGroupName -HostGroupName $hostGroupName -HostName $hostName -``` - -```output -Dsv3-Type1 -``` - -This command return the possible host sizes. - -## PARAMETERS - -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. - -```yaml -Type: IAzureContextContainer -Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -HostGroupName -The name of the Host Group. - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -HostName -The name of the Dedicated Host. - -```yaml -Type: String -Parameter Sets: (All) -Aliases: Name - -Required: False -Position: 2 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -ResourceGroupName -Name of Resource Group. - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### System.String - -## OUTPUTS - -### System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] - -## NOTES - -## RELATED LINKS diff --git a/src/Compute/Compute/help/Update-AzHost.md b/src/Compute/Compute/help/Update-AzHost.md deleted file mode 100644 index f31b928a55a3..000000000000 --- a/src/Compute/Compute/help/Update-AzHost.md +++ /dev/null @@ -1,222 +0,0 @@ ---- -external help file: Microsoft.Azure.PowerShell.Cmdlets.Compute.dll-Help.xml -Module Name: Az.Compute -online version: https://learn.microsoft.com/powershell/module/az.compute/update-azhost -schema: 2.0.0 ---- - -# Update-AzHost - -## SYNOPSIS -Updates the Dedicated Host. - -## SYNTAX - -### DefaultParameter -``` -Update-AzHost [-ResourceGroupName] [-HostGroupName] [-Name] [-Sku ] - [-AutoReplaceOnFailure ] [-LicenseType ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] -``` - -### ResourceIdParameter -``` -Update-AzHost [-Sku ] [-AutoReplaceOnFailure ] [-LicenseType ] - [-ResourceId] [-DefaultProfile ] [-WhatIf] [-Confirm] [] -``` - -## DESCRIPTION -This cmdlet can be used to update the Dedicated Host Sku, LicenseType and AutoReplaceOnFailure property. - -## EXAMPLES - -### Example 1 -```powershell -Update-AzHost -ResourceGroupName $resourceGroupName -HostGroupName $hostGroupName -Name $hostName -Sku $skuName -``` - -```output -ResourceGroupName : myrg01 -PlatformFaultDomain : 0 -AutoReplaceOnFailure : True -HostId : 00000000-0000-0000-0000-000000000000 -ProvisioningTime : 7/25/2019 8:34:16 PM -ProvisioningState : Succeeded -Sku : - Name : ESv3-Type1 -Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myrg01/providers/Microsoft.Compute/hostGroups/myhostgroup01/hosts/myhost01 -Name : myhost01 -Location : eastus -Tags : {"key1":"val2"} -``` - -This command updates the given Sku of a host. - -## PARAMETERS - -### -AutoReplaceOnFailure -Specifies whether the host should be replaced automatically in case of a failure. - -```yaml -Type: Boolean -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. - -```yaml -Type: IAzureContextContainer -Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -HostGroupName -Name of the Host Group. - -```yaml -Type: String -Parameter Sets: DefaultParameter -Aliases: - -Required: True -Position: 1 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -LicenseType -Specifies the software license type that will be applied to the VMs deployed on the host. Possible values are: None, Windows_Server_Hybrid, and Windows_Server_Perpetual. Default value is None. - -```yaml -Type: DedicatedHostLicenseTypes -Parameter Sets: (All) -Aliases: -Accepted values: None, WindowsServerHybrid, WindowsServerPerpetual - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Name -Specifies the name of the Host to be updated. - -```yaml -Type: String -Parameter Sets: DefaultParameter -Aliases: HostName - -Required: True -Position: 2 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -ResourceGroupName -The name of the resource group. - -```yaml -Type: String -Parameter Sets: DefaultParameter -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -ResourceId -Resource Id of the Host to be updated. - -```yaml -Type: String -Parameter Sets: ResourceIdParameter -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -Sku -The Sku Name that needs to be updated. - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### System.String - -## OUTPUTS - -### Microsoft.Azure.Commands.Compute.Automation.Models.PSHost - -## NOTES - -## RELATED LINKS From 12d693ced66e4d7769f9dfcc03738f77c58b4ad8 Mon Sep 17 00:00:00 2001 From: nanxiangLiu Date: Tue, 25 Jul 2023 21:20:27 +0800 Subject: [PATCH 3/3] Revert "update SDK package to use latest REST API version calls (#22337)" This reverts commit 7407fb00a5c87de5dcc5725a737561049d08a967. --- src/Compute/Compute.Test/Compute.Test.csproj | 2 +- src/Compute/Compute/Compute.csproj | 2 +- .../Config/NewAzureRmVmssIpConfigCommand.cs | 2 +- src/Network/Network.Test/Network.Test.csproj | 2 +- .../RecoveryServices.Backup.Test.csproj | 2 +- .../RecoveryServices.SiteRecovery.Test.csproj | 2 +- src/Security/Security.Test/Security.Test.csproj | 2 +- src/Ssh/Ssh.Test/ScenarioTests/SshTestRunner.cs | 5 +---- src/Ssh/Ssh.Test/Ssh.Test.csproj | 6 +++--- 9 files changed, 11 insertions(+), 14 deletions(-) diff --git a/src/Compute/Compute.Test/Compute.Test.csproj b/src/Compute/Compute.Test/Compute.Test.csproj index 67f8a300fd2f..b6e66fcc15ac 100644 --- a/src/Compute/Compute.Test/Compute.Test.csproj +++ b/src/Compute/Compute.Test/Compute.Test.csproj @@ -12,7 +12,7 @@ - + diff --git a/src/Compute/Compute/Compute.csproj b/src/Compute/Compute/Compute.csproj index 9ca56005cb63..39f882ae46c1 100644 --- a/src/Compute/Compute/Compute.csproj +++ b/src/Compute/Compute/Compute.csproj @@ -15,7 +15,7 @@ - + diff --git a/src/Compute/Compute/Generated/VirtualMachineScaleSet/Config/NewAzureRmVmssIpConfigCommand.cs b/src/Compute/Compute/Generated/VirtualMachineScaleSet/Config/NewAzureRmVmssIpConfigCommand.cs index fefdfa06c01b..5d86866ac183 100644 --- a/src/Compute/Compute/Generated/VirtualMachineScaleSet/Config/NewAzureRmVmssIpConfigCommand.cs +++ b/src/Compute/Compute/Generated/VirtualMachineScaleSet/Config/NewAzureRmVmssIpConfigCommand.cs @@ -129,7 +129,7 @@ private void Run() vIpConfigurations.Name = this.IsParameterBound(c => c.Name) ? this.Name : null; vIpConfigurations.Primary = this.Primary.IsPresent; vIpConfigurations.PrivateIPAddressVersion = this.IsParameterBound(c => c.PrivateIPAddressVersion) ? this.PrivateIPAddressVersion : null; - //vIpConfigurations.Id = this.IsParameterBound(c => c.Id) ? this.Id : null; + vIpConfigurations.Id = this.IsParameterBound(c => c.Id) ? this.Id : null; // SubnetId if (this.IsParameterBound(c => c.SubnetId)) diff --git a/src/Network/Network.Test/Network.Test.csproj b/src/Network/Network.Test/Network.Test.csproj index edb34466ae66..0bda88168f22 100644 --- a/src/Network/Network.Test/Network.Test.csproj +++ b/src/Network/Network.Test/Network.Test.csproj @@ -17,7 +17,7 @@ - + diff --git a/src/RecoveryServices/RecoveryServices.Backup.Test/RecoveryServices.Backup.Test.csproj b/src/RecoveryServices/RecoveryServices.Backup.Test/RecoveryServices.Backup.Test.csproj index fe35f5eb65c0..8fed9be93079 100644 --- a/src/RecoveryServices/RecoveryServices.Backup.Test/RecoveryServices.Backup.Test.csproj +++ b/src/RecoveryServices/RecoveryServices.Backup.Test/RecoveryServices.Backup.Test.csproj @@ -11,7 +11,7 @@ - + diff --git a/src/RecoveryServices/RecoveryServices.SiteRecovery.Test/RecoveryServices.SiteRecovery.Test.csproj b/src/RecoveryServices/RecoveryServices.SiteRecovery.Test/RecoveryServices.SiteRecovery.Test.csproj index 33d8a4420617..0fa696680375 100644 --- a/src/RecoveryServices/RecoveryServices.SiteRecovery.Test/RecoveryServices.SiteRecovery.Test.csproj +++ b/src/RecoveryServices/RecoveryServices.SiteRecovery.Test/RecoveryServices.SiteRecovery.Test.csproj @@ -12,7 +12,7 @@ - + diff --git a/src/Security/Security.Test/Security.Test.csproj b/src/Security/Security.Test/Security.Test.csproj index 69c79d2aecf2..bfed2af3f63b 100644 --- a/src/Security/Security.Test/Security.Test.csproj +++ b/src/Security/Security.Test/Security.Test.csproj @@ -42,7 +42,7 @@ Always - + \ No newline at end of file diff --git a/src/Ssh/Ssh.Test/ScenarioTests/SshTestRunner.cs b/src/Ssh/Ssh.Test/ScenarioTests/SshTestRunner.cs index 84b686e221df..cb5005387b35 100644 --- a/src/Ssh/Ssh.Test/ScenarioTests/SshTestRunner.cs +++ b/src/Ssh/Ssh.Test/ScenarioTests/SshTestRunner.cs @@ -26,10 +26,7 @@ protected SshTestRunner(ITestOutputHelper output) }) .WithNewRecordMatcherArguments( userAgentsToIgnore: new Dictionary(), - resourceProviders: new Dictionary - { - {"Microsoft.Compute", null} - } + resourceProviders: new Dictionary() ) .Build(); } diff --git a/src/Ssh/Ssh.Test/Ssh.Test.csproj b/src/Ssh/Ssh.Test/Ssh.Test.csproj index f150af724022..a9dd3cb0a032 100644 --- a/src/Ssh/Ssh.Test/Ssh.Test.csproj +++ b/src/Ssh/Ssh.Test/Ssh.Test.csproj @@ -1,4 +1,4 @@ - + Ssh @@ -19,7 +19,7 @@ - + - + \ No newline at end of file