diff --git a/src/Network/Network.Test/ScenarioTests/PublicIpPrefixTests.cs b/src/Network/Network.Test/ScenarioTests/PublicIpPrefixTests.cs index 30777c9a9b20..2aed399d368a 100644 --- a/src/Network/Network.Test/ScenarioTests/PublicIpPrefixTests.cs +++ b/src/Network/Network.Test/ScenarioTests/PublicIpPrefixTests.cs @@ -49,5 +49,13 @@ public void TestPublicIpPrefixAllocatePublicIpAddress() { TestRunner.RunTestScript("Test-PublicIpPrefixAllocatePublicIpAddress"); } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + [Trait(Category.Owner, NrpTeamAlias.sdnnrp)] + public void TestPublicIpPrefixInEdgeZone() + { + TestRunner.RunTestScript("Test-PublicIpPrefixInEdgeZone"); + } } } diff --git a/src/Network/Network.Test/ScenarioTests/PublicIpPrefixTests.ps1 b/src/Network/Network.Test/ScenarioTests/PublicIpPrefixTests.ps1 index 4f15d0109b9b..77283e999f0e 100644 --- a/src/Network/Network.Test/ScenarioTests/PublicIpPrefixTests.ps1 +++ b/src/Network/Network.Test/ScenarioTests/PublicIpPrefixTests.ps1 @@ -248,4 +248,43 @@ function Test-PublicIpPrefixAllocatePublicIpAddress # Cleanup Clean-ResourceGroup $rgname } +} + +<# +.SYNOPSIS +Test creating a public IP prefix in an edge zone. Subscriptions need to be explicitly whitelisted for access to edge zones. +#> +function Test-PublicIpPrefixInEdgeZone +{ + # Setup + $rgname = Get-ResourceGroupName + $rname = Get-ResourceName + $pipname = $rname+"pip" + $domainNameLabel = Get-ResourceName + $rglocation = "westus" + $resourceTypeParent = "Microsoft.Network/publicIpPrefixes" + $location = "westus" + $edgeZone = "microsoftlosangeles1" + + try + { + # Create the resource group + $resourceGroup = New-AzResourceGroup -Name $rgname -Location $rglocation -Tags @{ testtag = "testval" } + + # Create publicIpPrefix + New-AzPublicIpPrefix -ResourceGroupName $rgname -name $rname -location $location -Sku Standard -PrefixLength 30 -EdgeZone $edgeZone + $publicIpPrefix = Get-AzPublicIpPrefix -ResourceGroupName $rgname -name $rname + + Assert-AreEqual $publicIpPrefix.ExtendedLocation.Name $edgeZone + Assert-AreEqual $publicIpPrefix.ExtendedLocation.Type "EdgeZone" + } + catch [Microsoft.Azure.Commands.Network.Common.NetworkCloudException] + { + Assert-NotNull { $_.Exception.Message -match 'Resource type .* does not support edge zone .* in location .* The supported edge zones are .*' } + } + finally + { + # Cleanup + Clean-ResourceGroup $rgname + } } \ No newline at end of file diff --git a/src/Network/Network.Test/SessionRecords/Commands.Network.Test.ScenarioTests.PublicIpPrefixTests/TestPublicIpPrefixInEdgeZone.json b/src/Network/Network.Test/SessionRecords/Commands.Network.Test.ScenarioTests.PublicIpPrefixTests/TestPublicIpPrefixInEdgeZone.json new file mode 100644 index 000000000000..056d6d404825 --- /dev/null +++ b/src/Network/Network.Test/SessionRecords/Commands.Network.Test.ScenarioTests.PublicIpPrefixTests/TestPublicIpPrefixInEdgeZone.json @@ -0,0 +1,1067 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/resourcegroups/ps5205?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFmZmZmODktMmM3Ni00MjRhLWFmNGMtNDNiNzUxOGEzY2I4L3Jlc291cmNlZ3JvdXBzL3BzNTIwNT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5fb85b5b-2f75-4116-ae8f-4800026a1174" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.34" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "34d6f6a2-4dce-4633-bc71-16dbce27f361" + ], + "x-ms-correlation-request-id": [ + "34d6f6a2-4dce-4633-bc71-16dbce27f361" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210610T075633Z:34d6f6a2-4dce-4633-bc71-16dbce27f361" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 07:56:32 GMT" + ], + "Content-Length": [ + "165" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/resourceGroups/ps5205\",\r\n \"name\": \"ps5205\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/resourceGroups/ps5205/providers/Microsoft.Network/publicIPPrefixes/ps2350?api-version=2021-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFmZmZmODktMmM3Ni00MjRhLWFmNGMtNDNiNzUxOGEzY2I4L3Jlc291cmNlR3JvdXBzL3BzNTIwNS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBQcmVmaXhlcy9wczIzNTA/YXBpLXZlcnNpb249MjAyMS0wMi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7ff36767-e765-483a-9158-9f4660118e68" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/20.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "69f78fa6-4869-4e7a-a30c-3549cec194a8" + ], + "x-ms-correlation-request-id": [ + "69f78fa6-4869-4e7a-a30c-3549cec194a8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210610T075633Z:69f78fa6-4869-4e7a-a30c-3549cec194a8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 07:56:32 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "219" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.Network/publicIPPrefixes/ps2350' under resource group 'ps5205' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/resourceGroups/ps5205/providers/Microsoft.Network/publicIPPrefixes/ps2350?api-version=2021-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFmZmZmODktMmM3Ni00MjRhLWFmNGMtNDNiNzUxOGEzY2I4L3Jlc291cmNlR3JvdXBzL3BzNTIwNS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBQcmVmaXhlcy9wczIzNTA/YXBpLXZlcnNpb249MjAyMS0wMi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7ff36767-e765-483a-9158-9f4660118e68" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/20.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"41ed02ac-e28c-4c84-9b7d-5a80cd31109d\"" + ], + "x-ms-request-id": [ + "1fac1231-4626-4132-a847-003d4a15df83" + ], + "x-ms-correlation-request-id": [ + "57af2ff0-738a-4b80-86b8-e2920ced91e5" + ], + "x-ms-arm-service-request-id": [ + "f413c65d-c856-44d5-993a-9cbe387ac76d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210610T075649Z:57af2ff0-738a-4b80-86b8-e2920ced91e5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 07:56:48 GMT" + ], + "Content-Length": [ + "694" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ps2350\",\r\n \"id\": \"/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/resourceGroups/ps5205/providers/Microsoft.Network/publicIPPrefixes/ps2350\",\r\n \"etag\": \"W/\\\"41ed02ac-e28c-4c84-9b7d-5a80cd31109d\\\"\",\r\n \"type\": \"Microsoft.Network/publicIPPrefixes\",\r\n \"location\": \"westus\",\r\n \"extendedLocation\": {\r\n \"type\": \"EdgeZone\",\r\n \"name\": \"microsoftlosangeles1\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"fdd19e88-fc86-4dd5-9c09-56f91feaf743\",\r\n \"prefixLength\": 30,\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"ipPrefix\": \"20.59.65.32/30\",\r\n \"ipTags\": []\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/resourceGroups/ps5205/providers/Microsoft.Network/publicIPPrefixes/ps2350?api-version=2021-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFmZmZmODktMmM3Ni00MjRhLWFmNGMtNDNiNzUxOGEzY2I4L3Jlc291cmNlR3JvdXBzL3BzNTIwNS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBQcmVmaXhlcy9wczIzNTA/YXBpLXZlcnNpb249MjAyMS0wMi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7ff36767-e765-483a-9158-9f4660118e68" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/20.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"41ed02ac-e28c-4c84-9b7d-5a80cd31109d\"" + ], + "x-ms-request-id": [ + "1ca32671-a32a-40a3-b304-cf16551c98ff" + ], + "x-ms-correlation-request-id": [ + "29540596-c350-48bd-8a40-126513107147" + ], + "x-ms-arm-service-request-id": [ + "205fb700-e5c2-4155-9341-328718821bf3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210610T075649Z:29540596-c350-48bd-8a40-126513107147" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 07:56:48 GMT" + ], + "Content-Length": [ + "694" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ps2350\",\r\n \"id\": \"/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/resourceGroups/ps5205/providers/Microsoft.Network/publicIPPrefixes/ps2350\",\r\n \"etag\": \"W/\\\"41ed02ac-e28c-4c84-9b7d-5a80cd31109d\\\"\",\r\n \"type\": \"Microsoft.Network/publicIPPrefixes\",\r\n \"location\": \"westus\",\r\n \"extendedLocation\": {\r\n \"type\": \"EdgeZone\",\r\n \"name\": \"microsoftlosangeles1\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"fdd19e88-fc86-4dd5-9c09-56f91feaf743\",\r\n \"prefixLength\": 30,\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"ipPrefix\": \"20.59.65.32/30\",\r\n \"ipTags\": []\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/resourceGroups/ps5205/providers/Microsoft.Network/publicIPPrefixes/ps2350?api-version=2021-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFmZmZmODktMmM3Ni00MjRhLWFmNGMtNDNiNzUxOGEzY2I4L3Jlc291cmNlR3JvdXBzL3BzNTIwNS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBQcmVmaXhlcy9wczIzNTA/YXBpLXZlcnNpb249MjAyMS0wMi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0527f0ba-ed69-44b2-bd63-b9c2d1202cf9" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/20.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"41ed02ac-e28c-4c84-9b7d-5a80cd31109d\"" + ], + "x-ms-request-id": [ + "55ea2bd1-c1fe-4b51-ae8f-60849aaf4a2b" + ], + "x-ms-correlation-request-id": [ + "83dfebe8-d231-46ac-b086-d2037a6d2390" + ], + "x-ms-arm-service-request-id": [ + "4265740e-1d14-4baf-a2fa-8acd3cb9ae9d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210610T075649Z:83dfebe8-d231-46ac-b086-d2037a6d2390" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 07:56:48 GMT" + ], + "Content-Length": [ + "694" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ps2350\",\r\n \"id\": \"/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/resourceGroups/ps5205/providers/Microsoft.Network/publicIPPrefixes/ps2350\",\r\n \"etag\": \"W/\\\"41ed02ac-e28c-4c84-9b7d-5a80cd31109d\\\"\",\r\n \"type\": \"Microsoft.Network/publicIPPrefixes\",\r\n \"location\": \"westus\",\r\n \"extendedLocation\": {\r\n \"type\": \"EdgeZone\",\r\n \"name\": \"microsoftlosangeles1\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"fdd19e88-fc86-4dd5-9c09-56f91feaf743\",\r\n \"prefixLength\": 30,\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"ipPrefix\": \"20.59.65.32/30\",\r\n \"ipTags\": []\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/resourceGroups/ps5205/providers/Microsoft.Network/publicIPPrefixes/ps2350?api-version=2021-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFmZmZmODktMmM3Ni00MjRhLWFmNGMtNDNiNzUxOGEzY2I4L3Jlc291cmNlR3JvdXBzL3BzNTIwNS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHVibGljSVBQcmVmaXhlcy9wczIzNTA/YXBpLXZlcnNpb249MjAyMS0wMi0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"extendedLocation\": {\r\n \"name\": \"microsoftlosangeles1\",\r\n \"type\": \"EdgeZone\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Regional\"\r\n },\r\n \"properties\": {\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"ipTags\": [],\r\n \"prefixLength\": 30\r\n },\r\n \"zones\": [],\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7ff36767-e765-483a-9158-9f4660118e68" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/20.5.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "310" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "185521ec-de8b-4719-ad6b-ff03eeb3f476" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/providers/Microsoft.Network/locations/westus/operations/185521ec-de8b-4719-ad6b-ff03eeb3f476?api-version=2021-02-01" + ], + "x-ms-correlation-request-id": [ + "0f9a7da3-8578-40d5-97af-7dc90d819558" + ], + "Azure-AsyncNotification": [ + "Enabled" + ], + "x-ms-arm-service-request-id": [ + "7fc10cc0-20d7-46c5-a683-3b1223d3d4c1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210610T075635Z:0f9a7da3-8578-40d5-97af-7dc90d819558" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 07:56:35 GMT" + ], + "Content-Length": [ + "658" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ps2350\",\r\n \"id\": \"/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/resourceGroups/ps5205/providers/Microsoft.Network/publicIPPrefixes/ps2350\",\r\n \"etag\": \"W/\\\"9d5a60f1-3e8e-40e4-8b37-76d4bafdedd1\\\"\",\r\n \"type\": \"Microsoft.Network/publicIPPrefixes\",\r\n \"location\": \"westus\",\r\n \"extendedLocation\": {\r\n \"type\": \"EdgeZone\",\r\n \"name\": \"microsoftlosangeles1\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"fdd19e88-fc86-4dd5-9c09-56f91feaf743\",\r\n \"prefixLength\": 30,\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"ipTags\": []\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Regional\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/providers/Microsoft.Network/locations/westus/operations/185521ec-de8b-4719-ad6b-ff03eeb3f476?api-version=2021-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFmZmZmODktMmM3Ni00MjRhLWFmNGMtNDNiNzUxOGEzY2I4L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvMTg1NTIxZWMtZGU4Yi00NzE5LWFkNmItZmYwM2VlYjNmNDc2P2FwaS12ZXJzaW9uPTIwMjEtMDItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7ff36767-e765-483a-9158-9f4660118e68" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/20.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-request-id": [ + "09128b14-8332-4b5f-8702-6a566d7da6e2" + ], + "x-ms-correlation-request-id": [ + "ad0927a7-16c8-4e9f-a515-3c52ec21f2ad" + ], + "x-ms-arm-service-request-id": [ + "3a03c5fa-9c54-408c-9b21-af4bf107482b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210610T075638Z:ad0927a7-16c8-4e9f-a515-3c52ec21f2ad" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 07:56:38 GMT" + ], + "Content-Length": [ + "30" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/providers/Microsoft.Network/locations/westus/operations/185521ec-de8b-4719-ad6b-ff03eeb3f476?api-version=2021-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFmZmZmODktMmM3Ni00MjRhLWFmNGMtNDNiNzUxOGEzY2I4L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnMvMTg1NTIxZWMtZGU4Yi00NzE5LWFkNmItZmYwM2VlYjNmNDc2P2FwaS12ZXJzaW9uPTIwMjEtMDItMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7ff36767-e765-483a-9158-9f4660118e68" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/20.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "212b644d-9e9d-469b-b207-0c1b31b4e1b5" + ], + "x-ms-correlation-request-id": [ + "576377f2-3a1e-445a-b477-6b1f72a8d639" + ], + "x-ms-arm-service-request-id": [ + "c4aa4132-3958-4e66-ac8f-3db9bad5f62c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210610T075648Z:576377f2-3a1e-445a-b477-6b1f72a8d639" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 07:56:48 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/resourcegroups/ps5205?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFmZmZmODktMmM3Ni00MjRhLWFmNGMtNDNiNzUxOGEzY2I4L3Jlc291cmNlZ3JvdXBzL3BzNTIwNT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bd6e99bc-896d-48e9-86d2-d6a654cf2592" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.34" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzUyMDUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "eb5d25bf-a42d-47a1-8c7f-179b0a0d87a6" + ], + "x-ms-correlation-request-id": [ + "eb5d25bf-a42d-47a1-8c7f-179b0a0d87a6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210610T075649Z:eb5d25bf-a42d-47a1-8c7f-179b0a0d87a6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 07:56:48 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzUyMDUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFmZmZmODktMmM3Ni00MjRhLWFmNGMtNDNiNzUxOGEzY2I4L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpVeU1EVXRWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.34" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzUyMDUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "07e7657a-844a-4859-9ecd-ef445bda3b4f" + ], + "x-ms-correlation-request-id": [ + "07e7657a-844a-4859-9ecd-ef445bda3b4f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210610T075704Z:07e7657a-844a-4859-9ecd-ef445bda3b4f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 07:57:03 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzUyMDUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFmZmZmODktMmM3Ni00MjRhLWFmNGMtNDNiNzUxOGEzY2I4L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpVeU1EVXRWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.34" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzUyMDUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "1510c98c-65e2-464e-bc7b-630b72dbe8e5" + ], + "x-ms-correlation-request-id": [ + "1510c98c-65e2-464e-bc7b-630b72dbe8e5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210610T075719Z:1510c98c-65e2-464e-bc7b-630b72dbe8e5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 07:57:18 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzUyMDUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFmZmZmODktMmM3Ni00MjRhLWFmNGMtNDNiNzUxOGEzY2I4L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpVeU1EVXRWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.34" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzUyMDUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "6937c188-ce20-451a-8c48-0d408edea732" + ], + "x-ms-correlation-request-id": [ + "6937c188-ce20-451a-8c48-0d408edea732" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210610T075734Z:6937c188-ce20-451a-8c48-0d408edea732" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 07:57:34 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzUyMDUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFmZmZmODktMmM3Ni00MjRhLWFmNGMtNDNiNzUxOGEzY2I4L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpVeU1EVXRWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.34" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzUyMDUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "291f2156-e5cb-4481-abf9-928ae93a4124" + ], + "x-ms-correlation-request-id": [ + "291f2156-e5cb-4481-abf9-928ae93a4124" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210610T075749Z:291f2156-e5cb-4481-abf9-928ae93a4124" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 07:57:49 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzUyMDUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFmZmZmODktMmM3Ni00MjRhLWFmNGMtNDNiNzUxOGEzY2I4L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpVeU1EVXRWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.34" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzUyMDUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "b86dc7dc-acb7-4460-8d30-132a68d6eb8e" + ], + "x-ms-correlation-request-id": [ + "b86dc7dc-acb7-4460-8d30-132a68d6eb8e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210610T075804Z:b86dc7dc-acb7-4460-8d30-132a68d6eb8e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 07:58:04 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzUyMDUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFmZmZmODktMmM3Ni00MjRhLWFmNGMtNDNiNzUxOGEzY2I4L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpVeU1EVXRWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.34" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzUyMDUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "c9b1a824-8390-4844-8296-6cfc40826b9e" + ], + "x-ms-correlation-request-id": [ + "c9b1a824-8390-4844-8296-6cfc40826b9e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210610T075819Z:c9b1a824-8390-4844-8296-6cfc40826b9e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 07:58:19 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzUyMDUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFmZmZmODktMmM3Ni00MjRhLWFmNGMtNDNiNzUxOGEzY2I4L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpVeU1EVXRWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.34" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "19f47e56-584d-48e4-b3b7-a8d6fd737d7f" + ], + "x-ms-correlation-request-id": [ + "19f47e56-584d-48e4-b3b7-a8d6fd737d7f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210610T075834Z:19f47e56-584d-48e4-b3b7-a8d6fd737d7f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 07:58:34 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/baffff89-2c76-424a-af4c-43b7518a3cb8/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzUyMDUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFmZmZmODktMmM3Ni00MjRhLWFmNGMtNDNiNzUxOGEzY2I4L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpVeU1EVXRWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.34" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "55a60900-16ca-45f4-82d4-7ec0773ec727" + ], + "x-ms-correlation-request-id": [ + "55a60900-16ca-45f4-82d4-7ec0773ec727" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210610T075834Z:55a60900-16ca-45f4-82d4-7ec0773ec727" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 07:58:34 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "Test-PublicIpPrefixInEdgeZone": [ + "ps5205", + "ps2350", + "ps1957" + ] + }, + "Variables": { + "SubscriptionId": "baffff89-2c76-424a-af4c-43b7518a3cb8" + } +} \ No newline at end of file diff --git a/src/Network/Network/ChangeLog.md b/src/Network/Network/ChangeLog.md index 5862cf4121ad..158029160ef0 100644 --- a/src/Network/Network/ChangeLog.md +++ b/src/Network/Network/ChangeLog.md @@ -19,6 +19,8 @@ ---> ## Upcoming Release +* Updated cmdlets to enable specification of edge zone + - `New-AzPublicIpPrefix` * Updated cmdlets for route server for a more stable way to add IP configuration. * Added support for getting a single private link resource. * Added more detailed description about GroupId in `New-AzPrivateLinkServiceConnection` diff --git a/src/Network/Network/Models/PSPublicIpPrefix.cs b/src/Network/Network/Models/PSPublicIpPrefix.cs index d85c109fb5b4..e85c31ee11e5 100644 --- a/src/Network/Network/Models/PSPublicIpPrefix.cs +++ b/src/Network/Network/Models/PSPublicIpPrefix.cs @@ -37,6 +37,8 @@ public class PSPublicIpPrefix : PSTopLevelResource public PSResourceId CustomIpPrefix { get; set; } + public PSExtendedLocation ExtendedLocation { get; set; } + [JsonIgnore] public string PublicIpAddressesText { @@ -54,5 +56,11 @@ public string SkuText { get { return JsonConvert.SerializeObject(Sku, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); } } + + [JsonIgnore] + public string ExtendedLocationText + { + get { return JsonConvert.SerializeObject(ExtendedLocation, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); } + } } } diff --git a/src/Network/Network/Network.format.ps1xml b/src/Network/Network/Network.format.ps1xml index 1040f4b6f7bf..f5fb624361f4 100644 --- a/src/Network/Network/Network.format.ps1xml +++ b/src/Network/Network/Network.format.ps1xml @@ -1718,6 +1718,10 @@ PublicIpAddressesText + + + ExtendedLocationText + diff --git a/src/Network/Network/PublicIpPrefix/NewAzurePublicIpPrefixCommand.cs b/src/Network/Network/PublicIpPrefix/NewAzurePublicIpPrefixCommand.cs index b9913f60bdcc..6731ccdb808d 100644 --- a/src/Network/Network/PublicIpPrefix/NewAzurePublicIpPrefixCommand.cs +++ b/src/Network/Network/PublicIpPrefix/NewAzurePublicIpPrefixCommand.cs @@ -113,6 +113,12 @@ public class NewAzurePublicIpPrefixCommand : PublicIpPrefixBaseCmdlet HelpMessage = "The CustomIpPrefix that this PublicIpPrefix will be associated with")] public PSCustomIpPrefix CustomIpPrefix { get; set; } + [Parameter( + Mandatory = false, + ValueFromPipelineByPropertyName = true, + HelpMessage = "The edge zone of the public IP prefix")] + public string EdgeZone { get; set; } + [Parameter( Mandatory = false, ValueFromPipelineByPropertyName = true, @@ -190,6 +196,11 @@ private PSPublicIpPrefix CreatePublicIpPrefix() publicIpPrefix.CustomIpPrefix = this.CustomIpPrefix; + if (!string.IsNullOrEmpty(this.EdgeZone)) + { + publicIpPrefix.ExtendedLocation = new PSExtendedLocation(this.EdgeZone); + } + var theModel = NetworkResourceManagerProfile.Mapper.Map(publicIpPrefix); theModel.Tags = TagsConversionHelper.CreateTagDictionary(this.Tag, validate: true); diff --git a/src/Network/Network/help/New-AzPublicIpPrefix.md b/src/Network/Network/help/New-AzPublicIpPrefix.md index 9defb869385a..a2a4ec4093ee 100644 --- a/src/Network/Network/help/New-AzPublicIpPrefix.md +++ b/src/Network/Network/help/New-AzPublicIpPrefix.md @@ -15,8 +15,8 @@ Creates a Public IP Prefix ``` New-AzPublicIpPrefix -Name -ResourceGroupName [-Location ] [-Sku ] [-Tier ] -PrefixLength [-IpAddressVersion ] [-IpTag ] - [-Zone ] [-CustomIpPrefix ] [-Tag ] [-Force] [-AsJob] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-Zone ] [-CustomIpPrefix ] [-EdgeZone ] [-Tag ] [-Force] + [-AsJob] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -85,6 +85,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -EdgeZone +The edge zone of the public IP prefix + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + ### -Force Do not ask for confirmation if you want to overwrite a resource