From 378963d863fcd9e5e4995357d6fe102fcffa1176 Mon Sep 17 00:00:00 2001 From: msJinLei Date: Tue, 11 Aug 2020 22:58:38 +0800 Subject: [PATCH] Add AllowAll to New-AzMySqlFirewallRule Fix issue: https://github.com/Azure/azure-powershell/issues/11932 --- src/MySql/custom/New-AzMySqlFirewallRule.ps1 | 37 +- src/MySql/docs/Az.MySql.md | 2 +- src/MySql/docs/New-AzMySqlFirewallRule.md | 60 ++- src/MySql/examples/New-AzMySqlFirewallRule.md | 25 +- src/MySql/test/Az.MySql-TestResults.xml | 159 +++--- .../New-AzMySqlFirewallRule.Recording.json | 466 +++++++++++++----- .../test/New-AzMySqlFirewallRule.Tests.ps1 | 14 +- 7 files changed, 542 insertions(+), 221 deletions(-) diff --git a/src/MySql/custom/New-AzMySqlFirewallRule.ps1 b/src/MySql/custom/New-AzMySqlFirewallRule.ps1 index 2f1215e0dc9d..c38f39cb2a4a 100644 --- a/src/MySql/custom/New-AzMySqlFirewallRule.ps1 +++ b/src/MySql/custom/New-AzMySqlFirewallRule.ps1 @@ -23,11 +23,13 @@ function New-AzMySqlFirewallRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory)] + [Parameter()] [Alias('FirewallRuleName')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the server firewall rule. + # If not specified, the default is undefined. + # If AllowAll is present, the default name is AllowAll_yyyy-MM-dd_HH-mm-ss. ${Name}, [Parameter(Mandatory)] @@ -50,14 +52,14 @@ param( # The ID of the target subscription. ${SubscriptionId}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] # The end IP address of the server firewall rule. # Must be IPv4 format. ${EndIPAddress}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] # The start IP address of the server firewall rule. @@ -65,6 +67,12 @@ param( # If range contains one IP, use StartIPAddress only. ${StartIPAddress}, + [Parameter(ParameterSetName='AllowAll', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Present to allow all range IPs, from 0.0.0.0 to 255.255.255.255. + ${AllowAll}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -127,10 +135,29 @@ param( process { try { - if(!$PSBoundParameters.ContainsKey('EndIPAddress')) + if($PSBoundParameters.ContainsKey('AllowAll')) { - $PSBoundParameters['EndIPAddress'] = $PSBoundParameters['StartIPAddress'] + if(!$PSBoundParameters.ContainsKey('Name')) + { + $PSBoundParameters['Name'] = Get-Date -Format "AllowAll_yyyy-MM-dd_HH-mm-ss" + } + $PSBoundParameters['StartIPAddress'] = "0.0.0.0" + $PSBoundParameters['EndIPAddress'] = "255.255.255.255" + + $null = $PSBoundParameters.Remove('AllowAll') } + else + { + if(!$PSBoundParameters.ContainsKey('Name')) + { + $PSBoundParameters['Name'] = "undefined" + } + if(!$PSBoundParameters.ContainsKey('EndIPAddress')) + { + $PSBoundParameters['EndIPAddress'] = $PSBoundParameters['StartIPAddress'] + } + } + Az.MySql.internal\New-AzMySqlFirewallRule @PSBoundParameters } catch { throw diff --git a/src/MySql/docs/Az.MySql.md b/src/MySql/docs/Az.MySql.md index 56008161cf7e..79ec320a01d1 100644 --- a/src/MySql/docs/Az.MySql.md +++ b/src/MySql/docs/Az.MySql.md @@ -1,6 +1,6 @@ --- Module Name: Az.MySql -Module Guid: 963f9799-010a-4688-a6d4-7eb6aea40e10 +Module Guid: 34e4ccf3-3db4-43f5-8e28-26d94c4d67f9 Download Help Link: https://docs.microsoft.com/en-us/powershell/module/az.mysql Help Version: 1.0.0.0 Locale: en-US diff --git a/src/MySql/docs/New-AzMySqlFirewallRule.md b/src/MySql/docs/New-AzMySqlFirewallRule.md index 081d3fab82d7..4c9205e54af4 100644 --- a/src/MySql/docs/New-AzMySqlFirewallRule.md +++ b/src/MySql/docs/New-AzMySqlFirewallRule.md @@ -12,10 +12,18 @@ Creates a new firewall rule or updates an existing firewall rule. ## SYNTAX +### CreateExpanded (Default) ``` -New-AzMySqlFirewallRule -Name -ResourceGroupName -ServerName - -StartIPAddress [-SubscriptionId ] [-EndIPAddress ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +New-AzMySqlFirewallRule -ResourceGroupName -ServerName -StartIPAddress + [-Name ] [-SubscriptionId ] [-EndIPAddress ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### AllowAll +``` +New-AzMySqlFirewallRule -ResourceGroupName -ServerName -AllowAll [-Name ] + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] ``` ## DESCRIPTION @@ -27,9 +35,9 @@ Creates a new firewall rule or updates an existing firewall rule. ```powershell PS C:\> New-AzMySqlFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 -Name Type ----- ---- -rule Microsoft.DBforMySQL/servers/firewallRules +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.0 0.0.0.1 ``` This cmdlets create a MySql server Firewall Rule. @@ -38,15 +46,41 @@ This cmdlets create a MySql server Firewall Rule. ```powershell PS C:\> New-AzMySqlFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -StartIPAddress 0.0.0.1 -Name Type ----- ---- -rule Microsoft.DBforMySQL/servers/firewallRules +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.1 0.0.0.1 ``` This cmdlets create a MySql Firewall Rule use only one parameter StartIPAddress when only one IP needs to be authorized. +### Example 3: Create a new MySql Firewall Rule to allow all IPs +```powershell +PS C:\> New-AzMySqlFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -AllowAll + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +AllowAll_2020-08-11_18-19-27 0.0.0.0 255.255.255.255 +``` + +This cmdlets create a new MySql Firewall Rule to allow all IPs. + ## PARAMETERS +### -AllowAll +Present to allow all range IPs, from 0.0.0.0 to 255.255.255.255. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: AllowAll +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -AsJob Run the command as a job @@ -83,7 +117,7 @@ Must be IPv4 format. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -95,13 +129,15 @@ Accept wildcard characters: False ### -Name The name of the server firewall rule. +If not specified, the default is undefined. +If AllowAll is present, the default name is AllowAll_yyyy-MM-dd_HH-mm-ss. ```yaml Type: System.String Parameter Sets: (All) Aliases: FirewallRuleName -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -161,7 +197,7 @@ If range contains one IP, use StartIPAddress only. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: True diff --git a/src/MySql/examples/New-AzMySqlFirewallRule.md b/src/MySql/examples/New-AzMySqlFirewallRule.md index 7f56efd06b88..d6602ff94f3b 100644 --- a/src/MySql/examples/New-AzMySqlFirewallRule.md +++ b/src/MySql/examples/New-AzMySqlFirewallRule.md @@ -2,9 +2,9 @@ ```powershell PS C:\> New-AzMySqlFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 -Name Type ----- ---- -rule Microsoft.DBforMySQL/servers/firewallRules +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.0 0.0.0.1 ``` This cmdlets create a MySql server Firewall Rule. @@ -13,9 +13,20 @@ This cmdlets create a MySql server Firewall Rule. ```powershell PS C:\> New-AzMySqlFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -StartIPAddress 0.0.0.1 -Name Type ----- ---- -rule Microsoft.DBforMySQL/servers/firewallRules +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.1 0.0.0.1 ``` -This cmdlets create a MySql Firewall Rule use only one parameter StartIPAddress when only one IP needs to be authorized. \ No newline at end of file +This cmdlets create a MySql Firewall Rule use only one parameter StartIPAddress when only one IP needs to be authorized. + +### Example 3: Create a new MySql Firewall Rule to allow all IPs +```powershell +PS C:\> New-AzMySqlFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -AllowAll + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +AllowAll_2020-08-11_18-19-27 0.0.0.0 255.255.255.255 +``` + +This cmdlets create a new MySql Firewall Rule to allow all IPs. \ No newline at end of file diff --git a/src/MySql/test/Az.MySql-TestResults.xml b/src/MySql/test/Az.MySql-TestResults.xml index edd4137dedda..f3860791547e 100644 --- a/src/MySql/test/Az.MySql-TestResults.xml +++ b/src/MySql/test/Az.MySql-TestResults.xml @@ -1,195 +1,196 @@  - - + + - + - + - + - - - + + + - + - + - - + + - + - + - - - + + + - + - + - + - + - + - - - - + + + + - + - + - - - + + + - + - + - + + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + diff --git a/src/MySql/test/New-AzMySqlFirewallRule.Recording.json b/src/MySql/test/New-AzMySqlFirewallRule.Recording.json index ee33d12d8911..9cb9d370bfd9 100644 --- a/src/MySql/test/New-AzMySqlFirewallRule.Recording.json +++ b/src/MySql/test/New-AzMySqlFirewallRule.Recording.json @@ -3,12 +3,12 @@ "Request": { "Method": "PUT", "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", - "Content": "{\n \"properties\": {\n \"endIpAddress\": \"0.0.0.1\",\n \"startIpAddress\": \"0.0.0.0\"\n }\n}", + "Content": "{\r\n \"properties\": {\r\n \"endIpAddress\": \"0.0.0.1\",\r\n \"startIpAddress\": \"0.0.0.0\"\r\n }\r\n}", "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "88" ] + "Content-Length": [ "93" ] } }, "Response": { @@ -16,34 +16,34 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/15676fd2-89dd-421c-8a39-5bb20fbc17e3?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/7905d7ea-2033-455a-91a4-7780d0e6c19b?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/15676fd2-89dd-421c-8a39-5bb20fbc17e3?api-version=2017-12-01" ], - "x-ms-request-id": [ "15676fd2-89dd-421c-8a39-5bb20fbc17e3" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/7905d7ea-2033-455a-91a4-7780d0e6c19b?api-version=2017-12-01" ], + "x-ms-request-id": [ "7905d7ea-2033-455a-91a4-7780d0e6c19b" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], - "x-ms-correlation-request-id": [ "d398c4a1-3621-4c7d-a66b-11d6ae539868" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T061431Z:d398c4a1-3621-4c7d-a66b-11d6ae539868" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1191" ], + "x-ms-correlation-request-id": [ "2d4d9a71-7a4a-488a-9c69-8326ca19f0e8" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20200811T132707Z:2d4d9a71-7a4a-488a-9c69-8326ca19f0e8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:14:30 GMT" ] + "Date": [ "Tue, 11 Aug 2020 13:27:06 GMT" ] }, "ContentHeaders": { "Content-Length": [ "87" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-07-24T06:14:30.457Z\"}" + "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-08-11T13:27:05.877Z\"}" } }, - "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/15676fd2-89dd-421c-8a39-5bb20fbc17e3?api-version=2017-12-01+2": { + "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/7905d7ea-2033-455a-91a4-7780d0e6c19b?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/15676fd2-89dd-421c-8a39-5bb20fbc17e3?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/7905d7ea-2033-455a-91a4-7780d0e6c19b?api-version=2017-12-01", "Content": null, "Headers": { - "x-ms-unique-id": [ "1", "2" ], - "x-ms-client-request-id": [ "88e4a14f-2375-4293-ad69-d99e037dfa3f", "88e4a14f-2375-4293-ad69-d99e037dfa3f" ], + "x-ms-unique-id": [ "94", "95" ], + "x-ms-client-request-id": [ "ed523453-ec6c-4d57-bc5e-9c9bac7bed82", "ed523453-ec6c-4d57-bc5e-9c9bac7bed82" ], "CommandName": [ "Az.MySql.internal\\New-AzMySqlFirewallRule", "Az.MySql.internal\\New-AzMySqlFirewallRule" ], "FullCommandName": [ "New-AzMySqlFirewallRule_CreateExpanded", "New-AzMySqlFirewallRule_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], @@ -59,21 +59,21 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "15" ], - "x-ms-request-id": [ "40d5f5d5-9627-4d88-ad0a-1221f8c64a82" ], + "x-ms-request-id": [ "6d75bccd-26bd-4c6c-b6ac-79c107734909" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], - "x-ms-correlation-request-id": [ "d524fe3a-48e3-476e-a242-1730549e4231" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T061447Z:d524fe3a-48e3-476e-a242-1730549e4231" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11926" ], + "x-ms-correlation-request-id": [ "0d169ffa-8b29-43ec-87b5-41359dcb704e" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20200811T132722Z:0d169ffa-8b29-43ec-87b5-41359dcb704e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:14:46 GMT" ] + "Date": [ "Tue, 11 Aug 2020 13:27:21 GMT" ] }, "ContentHeaders": { "Content-Length": [ "107" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"name\":\"15676fd2-89dd-421c-8a39-5bb20fbc17e3\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:14:30.457Z\"}" + "Content": "{\"name\":\"7905d7ea-2033-455a-91a4-7780d0e6c19b\",\"status\":\"Succeeded\",\"startTime\":\"2020-08-11T13:27:05.877Z\"}" } }, "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+3": { @@ -82,8 +82,8 @@ "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": null, "Headers": { - "x-ms-unique-id": [ "1", "2", "3" ], - "x-ms-client-request-id": [ "88e4a14f-2375-4293-ad69-d99e037dfa3f", "88e4a14f-2375-4293-ad69-d99e037dfa3f", "88e4a14f-2375-4293-ad69-d99e037dfa3f" ], + "x-ms-unique-id": [ "94", "95", "96" ], + "x-ms-client-request-id": [ "ed523453-ec6c-4d57-bc5e-9c9bac7bed82", "ed523453-ec6c-4d57-bc5e-9c9bac7bed82", "ed523453-ec6c-4d57-bc5e-9c9bac7bed82" ], "CommandName": [ "Az.MySql.internal\\New-AzMySqlFirewallRule", "Az.MySql.internal\\New-AzMySqlFirewallRule", "Az.MySql.internal\\New-AzMySqlFirewallRule" ], "FullCommandName": [ "New-AzMySqlFirewallRule_CreateExpanded", "New-AzMySqlFirewallRule_CreateExpanded", "New-AzMySqlFirewallRule_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], @@ -98,14 +98,14 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "8aecb969-6fdc-4e17-9b7b-70cd2026b181" ], + "x-ms-request-id": [ "6cbe6c03-5c6a-4d70-b794-88174dfaf91f" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], - "x-ms-correlation-request-id": [ "bb7bb968-38ec-425f-9f03-ab588610807f" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T061447Z:bb7bb968-38ec-425f-9f03-ab588610807f" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11925" ], + "x-ms-correlation-request-id": [ "b211a423-9105-4575-92ce-ea7fe361e45e" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20200811T132723Z:b211a423-9105-4575-92ce-ea7fe361e45e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:14:46 GMT" ] + "Date": [ "Tue, 11 Aug 2020 13:27:22 GMT" ] }, "ContentHeaders": { "Content-Length": [ "305" ], @@ -121,8 +121,8 @@ "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": null, "Headers": { - "x-ms-unique-id": [ "4" ], - "x-ms-client-request-id": [ "4e9afde4-dcc3-421c-ba21-aaf7c3da440d" ], + "x-ms-unique-id": [ "97" ], + "x-ms-client-request-id": [ "bd4ff2a5-58e9-4141-b121-49bb64accd9f" ], "CommandName": [ "Remove-AzMySqlFirewallRule" ], "FullCommandName": [ "Remove-AzMySqlFirewallRule_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -137,34 +137,34 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/2fd4f25d-b792-4890-b8e9-c51dc6181c8f?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/afcfce15-c285-405b-9fa2-5b12013a9137?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/2fd4f25d-b792-4890-b8e9-c51dc6181c8f?api-version=2017-12-01" ], - "x-ms-request-id": [ "2fd4f25d-b792-4890-b8e9-c51dc6181c8f" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/afcfce15-c285-405b-9fa2-5b12013a9137?api-version=2017-12-01" ], + "x-ms-request-id": [ "afcfce15-c285-405b-9fa2-5b12013a9137" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], - "x-ms-correlation-request-id": [ "fbfb45d2-ffc9-4d7b-a461-abe593801952" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T061449Z:fbfb45d2-ffc9-4d7b-a461-abe593801952" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14992" ], + "x-ms-correlation-request-id": [ "1c022c84-c87e-4822-8a70-53e1cf83bd56" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20200811T132725Z:1c022c84-c87e-4822-8a70-53e1cf83bd56" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:14:48 GMT" ] + "Date": [ "Tue, 11 Aug 2020 13:27:24 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "84" ], + "Content-Length": [ "83" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-07-24T06:14:48.067Z\"}" + "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-08-11T13:27:23.83Z\"}" } }, - "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/2fd4f25d-b792-4890-b8e9-c51dc6181c8f?api-version=2017-12-01+5": { + "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/afcfce15-c285-405b-9fa2-5b12013a9137?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/2fd4f25d-b792-4890-b8e9-c51dc6181c8f?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/afcfce15-c285-405b-9fa2-5b12013a9137?api-version=2017-12-01", "Content": null, "Headers": { - "x-ms-unique-id": [ "4", "5" ], - "x-ms-client-request-id": [ "4e9afde4-dcc3-421c-ba21-aaf7c3da440d", "4e9afde4-dcc3-421c-ba21-aaf7c3da440d" ], + "x-ms-unique-id": [ "97", "98" ], + "x-ms-client-request-id": [ "bd4ff2a5-58e9-4141-b121-49bb64accd9f", "bd4ff2a5-58e9-4141-b121-49bb64accd9f" ], "CommandName": [ "Remove-AzMySqlFirewallRule", "Remove-AzMySqlFirewallRule" ], "FullCommandName": [ "Remove-AzMySqlFirewallRule_Delete", "Remove-AzMySqlFirewallRule_Delete" ], "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], @@ -180,31 +180,31 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "15" ], - "x-ms-request-id": [ "875fff8d-ee0e-455d-94c0-7b425505cda3" ], + "x-ms-request-id": [ "7d3d4519-ee7f-4fc4-ab45-ff864c6b40fa" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], - "x-ms-correlation-request-id": [ "5d6ed0ad-da70-4af5-84ce-360819f8fa0b" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T061504Z:5d6ed0ad-da70-4af5-84ce-360819f8fa0b" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11924" ], + "x-ms-correlation-request-id": [ "f0745f4e-95ec-4cc9-b04e-5c8599f4a118" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20200811T132741Z:f0745f4e-95ec-4cc9-b04e-5c8599f4a118" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:15:04 GMT" ] + "Date": [ "Tue, 11 Aug 2020 13:27:40 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "107" ], + "Content-Length": [ "106" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"name\":\"2fd4f25d-b792-4890-b8e9-c51dc6181c8f\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:14:48.067Z\"}" + "Content": "{\"name\":\"afcfce15-c285-405b-9fa2-5b12013a9137\",\"status\":\"Succeeded\",\"startTime\":\"2020-08-11T13:27:23.83Z\"}" } }, - "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/2fd4f25d-b792-4890-b8e9-c51dc6181c8f?api-version=2017-12-01+6": { + "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/afcfce15-c285-405b-9fa2-5b12013a9137?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/2fd4f25d-b792-4890-b8e9-c51dc6181c8f?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/afcfce15-c285-405b-9fa2-5b12013a9137?api-version=2017-12-01", "Content": null, "Headers": { - "x-ms-unique-id": [ "4", "5", "6" ], - "x-ms-client-request-id": [ "4e9afde4-dcc3-421c-ba21-aaf7c3da440d", "4e9afde4-dcc3-421c-ba21-aaf7c3da440d", "4e9afde4-dcc3-421c-ba21-aaf7c3da440d" ], + "x-ms-unique-id": [ "97", "98", "99" ], + "x-ms-client-request-id": [ "bd4ff2a5-58e9-4141-b121-49bb64accd9f", "bd4ff2a5-58e9-4141-b121-49bb64accd9f", "bd4ff2a5-58e9-4141-b121-49bb64accd9f" ], "CommandName": [ "Remove-AzMySqlFirewallRule", "Remove-AzMySqlFirewallRule", "Remove-AzMySqlFirewallRule" ], "FullCommandName": [ "Remove-AzMySqlFirewallRule_Delete", "Remove-AzMySqlFirewallRule_Delete", "Remove-AzMySqlFirewallRule_Delete" ], "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], @@ -219,14 +219,14 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "d674b730-9702-45f4-b187-bd46b1dff4c3" ], + "x-ms-request-id": [ "4436a735-7bf6-46fb-b18f-b229618069fb" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], - "x-ms-correlation-request-id": [ "f1f6d483-9e3d-44fb-8643-b2a900c9c441" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T061505Z:f1f6d483-9e3d-44fb-8643-b2a900c9c441" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11923" ], + "x-ms-correlation-request-id": [ "e684b655-319a-4bb1-8878-a00599bd0cd6" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20200811T132741Z:e684b655-319a-4bb1-8878-a00599bd0cd6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:15:04 GMT" ] + "Date": [ "Tue, 11 Aug 2020 13:27:41 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], @@ -239,12 +239,12 @@ "Request": { "Method": "PUT", "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", - "Content": "{\n \"properties\": {\n \"endIpAddress\": \"0.0.0.1\",\n \"startIpAddress\": \"0.0.0.0\"\n }\n}", + "Content": "{\r\n \"properties\": {\r\n \"endIpAddress\": \"0.0.0.1\",\r\n \"startIpAddress\": \"0.0.0.1\"\r\n }\r\n}", "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "88" ] + "Content-Length": [ "93" ] } }, "Response": { @@ -252,34 +252,34 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/9af0d260-03db-48c5-912b-3cc8a99dd376?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/7829f89e-24fe-4760-af09-60a52c725ace?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9af0d260-03db-48c5-912b-3cc8a99dd376?api-version=2017-12-01" ], - "x-ms-request-id": [ "9af0d260-03db-48c5-912b-3cc8a99dd376" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/7829f89e-24fe-4760-af09-60a52c725ace?api-version=2017-12-01" ], + "x-ms-request-id": [ "7829f89e-24fe-4760-af09-60a52c725ace" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], - "x-ms-correlation-request-id": [ "d9d18ed9-5a0c-4065-9279-0ac4c3825dff" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T061506Z:d9d18ed9-5a0c-4065-9279-0ac4c3825dff" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1190" ], + "x-ms-correlation-request-id": [ "64de701c-cfe4-48f9-aa40-223a72753c94" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20200811T132743Z:64de701c-cfe4-48f9-aa40-223a72753c94" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:15:06 GMT" ] + "Date": [ "Tue, 11 Aug 2020 13:27:42 GMT" ] }, "ContentHeaders": { "Content-Length": [ "86" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-07-24T06:15:05.38Z\"}" + "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-08-11T13:27:42.36Z\"}" } }, - "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9af0d260-03db-48c5-912b-3cc8a99dd376?api-version=2017-12-01+8": { + "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/7829f89e-24fe-4760-af09-60a52c725ace?api-version=2017-12-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9af0d260-03db-48c5-912b-3cc8a99dd376?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/7829f89e-24fe-4760-af09-60a52c725ace?api-version=2017-12-01", "Content": null, "Headers": { - "x-ms-unique-id": [ "7", "8" ], - "x-ms-client-request-id": [ "99525d38-5119-45d5-b306-f86f3153d74b", "99525d38-5119-45d5-b306-f86f3153d74b" ], + "x-ms-unique-id": [ "100", "101" ], + "x-ms-client-request-id": [ "f43706a0-0099-41dd-9c3d-9544c000fc4a", "f43706a0-0099-41dd-9c3d-9544c000fc4a" ], "CommandName": [ "Az.MySql.internal\\New-AzMySqlFirewallRule", "Az.MySql.internal\\New-AzMySqlFirewallRule" ], "FullCommandName": [ "New-AzMySqlFirewallRule_CreateExpanded", "New-AzMySqlFirewallRule_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], @@ -295,21 +295,21 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "15" ], - "x-ms-request-id": [ "56c9e0e0-59b0-4960-81d5-e46edb4b801d" ], + "x-ms-request-id": [ "2bdd3ffd-24b1-439b-bec8-8c20e6215346" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], - "x-ms-correlation-request-id": [ "d0565725-7a02-44bb-bbf3-8af5b330f763" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T061521Z:d0565725-7a02-44bb-bbf3-8af5b330f763" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11922" ], + "x-ms-correlation-request-id": [ "a6b3372c-7c8c-40f8-b650-7581f956503f" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20200811T132759Z:a6b3372c-7c8c-40f8-b650-7581f956503f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:15:21 GMT" ] + "Date": [ "Tue, 11 Aug 2020 13:27:58 GMT" ] }, "ContentHeaders": { "Content-Length": [ "106" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"name\":\"9af0d260-03db-48c5-912b-3cc8a99dd376\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:15:05.38Z\"}" + "Content": "{\"name\":\"7829f89e-24fe-4760-af09-60a52c725ace\",\"status\":\"Succeeded\",\"startTime\":\"2020-08-11T13:27:42.36Z\"}" } }, "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+9": { @@ -318,8 +318,8 @@ "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": null, "Headers": { - "x-ms-unique-id": [ "7", "8", "9" ], - "x-ms-client-request-id": [ "99525d38-5119-45d5-b306-f86f3153d74b", "99525d38-5119-45d5-b306-f86f3153d74b", "99525d38-5119-45d5-b306-f86f3153d74b" ], + "x-ms-unique-id": [ "100", "101", "102" ], + "x-ms-client-request-id": [ "f43706a0-0099-41dd-9c3d-9544c000fc4a", "f43706a0-0099-41dd-9c3d-9544c000fc4a", "f43706a0-0099-41dd-9c3d-9544c000fc4a" ], "CommandName": [ "Az.MySql.internal\\New-AzMySqlFirewallRule", "Az.MySql.internal\\New-AzMySqlFirewallRule", "Az.MySql.internal\\New-AzMySqlFirewallRule" ], "FullCommandName": [ "New-AzMySqlFirewallRule_CreateExpanded", "New-AzMySqlFirewallRule_CreateExpanded", "New-AzMySqlFirewallRule_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], @@ -334,21 +334,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "bf8c56b3-5185-4424-a5dc-b276ea5cc73d" ], + "x-ms-request-id": [ "08063341-0c68-4cc4-a161-13d7d00bcd07" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], - "x-ms-correlation-request-id": [ "fc5ec6f1-9427-4d66-bd85-06ec9ce164a5" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T061522Z:fc5ec6f1-9427-4d66-bd85-06ec9ce164a5" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11921" ], + "x-ms-correlation-request-id": [ "25d1df5f-e106-4dbf-9c71-a556ce1d1a78" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20200811T132759Z:25d1df5f-e106-4dbf-9c71-a556ce1d1a78" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:15:22 GMT" ] + "Date": [ "Tue, 11 Aug 2020 13:27:58 GMT" ] }, "ContentHeaders": { "Content-Length": [ "305" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.1\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/servers/firewallRules\"}" } }, "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+10": { @@ -357,8 +357,244 @@ "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": null, "Headers": { - "x-ms-unique-id": [ "10" ], - "x-ms-client-request-id": [ "fe206ba7-e505-474d-986d-dce800bbddbb" ], + "x-ms-unique-id": [ "103" ], + "x-ms-client-request-id": [ "3069ae71-1ec4-42a1-8284-dc80ee065b8b" ], + "CommandName": [ "Remove-AzMySqlFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/0bfce3da-97d8-4215-a951-d983b2ce4fd6?api-version=2017-12-01" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/0bfce3da-97d8-4215-a951-d983b2ce4fd6?api-version=2017-12-01" ], + "x-ms-request-id": [ "0bfce3da-97d8-4215-a951-d983b2ce4fd6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14991" ], + "x-ms-correlation-request-id": [ "c82801ee-fbdc-4208-883a-cbcbd01a1e77" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20200811T132801Z:c82801ee-fbdc-4208-883a-cbcbd01a1e77" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 11 Aug 2020 13:28:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-08-11T13:28:00.173Z\"}" + } + }, + "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/0bfce3da-97d8-4215-a951-d983b2ce4fd6?api-version=2017-12-01+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/0bfce3da-97d8-4215-a951-d983b2ce4fd6?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "103", "104" ], + "x-ms-client-request-id": [ "3069ae71-1ec4-42a1-8284-dc80ee065b8b", "3069ae71-1ec4-42a1-8284-dc80ee065b8b" ], + "CommandName": [ "Remove-AzMySqlFirewallRule", "Remove-AzMySqlFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFirewallRule_Delete", "Remove-AzMySqlFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "x-ms-request-id": [ "0faef606-72ec-4fa8-9d7c-26776c5e951d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11920" ], + "x-ms-correlation-request-id": [ "f08ab6f0-d323-4a1f-b593-3a43dec17af2" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20200811T132818Z:f08ab6f0-d323-4a1f-b593-3a43dec17af2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 11 Aug 2020 13:28:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"0bfce3da-97d8-4215-a951-d983b2ce4fd6\",\"status\":\"Succeeded\",\"startTime\":\"2020-08-11T13:28:00.173Z\"}" + } + }, + "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/0bfce3da-97d8-4215-a951-d983b2ce4fd6?api-version=2017-12-01+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/0bfce3da-97d8-4215-a951-d983b2ce4fd6?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "103", "104", "105" ], + "x-ms-client-request-id": [ "3069ae71-1ec4-42a1-8284-dc80ee065b8b", "3069ae71-1ec4-42a1-8284-dc80ee065b8b", "3069ae71-1ec4-42a1-8284-dc80ee065b8b" ], + "CommandName": [ "Remove-AzMySqlFirewallRule", "Remove-AzMySqlFirewallRule", "Remove-AzMySqlFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFirewallRule_Delete", "Remove-AzMySqlFirewallRule_Delete", "Remove-AzMySqlFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "153acd45-058b-40d3-90b7-d8bd031706c9" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11919" ], + "x-ms-correlation-request-id": [ "74f8cf65-492c-41e9-891c-05cb85cdfba3" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20200811T132818Z:74f8cf65-492c-41e9-891c-05cb85cdfba3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 11 Aug 2020 13:28:18 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzMySqlFirewallRule+[NoContext]+AllowAll+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01", + "Content": "{\r\n \"properties\": {\r\n \"endIpAddress\": \"255.255.255.255\",\r\n \"startIpAddress\": \"0.0.0.0\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "101" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/8a4de3fa-c25f-4b3a-9c9a-fc8b40491ef9?api-version=2017-12-01" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/8a4de3fa-c25f-4b3a-9c9a-fc8b40491ef9?api-version=2017-12-01" ], + "x-ms-request-id": [ "8a4de3fa-c25f-4b3a-9c9a-fc8b40491ef9" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1189" ], + "x-ms-correlation-request-id": [ "8ea8ffad-b781-4a2d-8c22-e6106ce61017" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20200811T132820Z:8ea8ffad-b781-4a2d-8c22-e6106ce61017" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 11 Aug 2020 13:28:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "87" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-08-11T13:28:19.243Z\"}" + } + }, + "New-AzMySqlFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/8a4de3fa-c25f-4b3a-9c9a-fc8b40491ef9?api-version=2017-12-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/8a4de3fa-c25f-4b3a-9c9a-fc8b40491ef9?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "106", "107" ], + "x-ms-client-request-id": [ "fbc93aef-f54b-4c79-be23-f2d6573dff22", "fbc93aef-f54b-4c79-be23-f2d6573dff22" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFirewallRule", "Az.MySql.internal\\New-AzMySqlFirewallRule" ], + "FullCommandName": [ "New-AzMySqlFirewallRule_CreateExpanded", "New-AzMySqlFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "x-ms-request-id": [ "3c886455-753c-497b-9507-2fb266a4ee13" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11918" ], + "x-ms-correlation-request-id": [ "91b4547e-3d5d-4f09-883b-afb4fe272deb" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20200811T132835Z:91b4547e-3d5d-4f09-883b-afb4fe272deb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 11 Aug 2020 13:28:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"8a4de3fa-c25f-4b3a-9c9a-fc8b40491ef9\",\"status\":\"Succeeded\",\"startTime\":\"2020-08-11T13:28:19.243Z\"}" + } + }, + "New-AzMySqlFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "106", "107", "108" ], + "x-ms-client-request-id": [ "fbc93aef-f54b-4c79-be23-f2d6573dff22", "fbc93aef-f54b-4c79-be23-f2d6573dff22", "fbc93aef-f54b-4c79-be23-f2d6573dff22" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFirewallRule", "Az.MySql.internal\\New-AzMySqlFirewallRule", "Az.MySql.internal\\New-AzMySqlFirewallRule" ], + "FullCommandName": [ "New-AzMySqlFirewallRule_CreateExpanded", "New-AzMySqlFirewallRule_CreateExpanded", "New-AzMySqlFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "6016ab7f-0c6c-4e1e-9c2a-59635192154f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11917" ], + "x-ms-correlation-request-id": [ "a1e25f47-585b-4ab6-9447-52fe3e8ae2d9" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20200811T132836Z:a1e25f47-585b-4ab6-9447-52fe3e8ae2d9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 11 Aug 2020 13:28:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "347" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"255.255.255.255\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19\",\"name\":\"AllowAll_2020-08-11_21-28-19\",\"type\":\"Microsoft.DBforMySQL/servers/firewallRules\"}" + } + }, + "New-AzMySqlFirewallRule+[NoContext]+AllowAll+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "109" ], + "x-ms-client-request-id": [ "64853478-f2c9-4975-8cb9-bbf3dcbddecf" ], "CommandName": [ "Remove-AzMySqlFirewallRule" ], "FullCommandName": [ "Remove-AzMySqlFirewallRule_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -373,34 +609,34 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/bbe7232f-f3cd-4067-a3c5-d4164b9e5327?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/42839a43-c94c-48c1-a2c0-71273cd0b3ec?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/bbe7232f-f3cd-4067-a3c5-d4164b9e5327?api-version=2017-12-01" ], - "x-ms-request-id": [ "bbe7232f-f3cd-4067-a3c5-d4164b9e5327" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/42839a43-c94c-48c1-a2c0-71273cd0b3ec?api-version=2017-12-01" ], + "x-ms-request-id": [ "42839a43-c94c-48c1-a2c0-71273cd0b3ec" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], - "x-ms-correlation-request-id": [ "633bfa60-680a-4a8b-926f-024761e22aac" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T061523Z:633bfa60-680a-4a8b-926f-024761e22aac" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14990" ], + "x-ms-correlation-request-id": [ "fb129fdc-d7cc-4a4e-90eb-1c95486a67c1" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20200811T132838Z:fb129fdc-d7cc-4a4e-90eb-1c95486a67c1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:15:23 GMT" ] + "Date": [ "Tue, 11 Aug 2020 13:28:37 GMT" ] }, "ContentHeaders": { "Content-Length": [ "84" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-07-24T06:15:22.757Z\"}" + "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-08-11T13:28:37.043Z\"}" } }, - "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/bbe7232f-f3cd-4067-a3c5-d4164b9e5327?api-version=2017-12-01+11": { + "New-AzMySqlFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/42839a43-c94c-48c1-a2c0-71273cd0b3ec?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/bbe7232f-f3cd-4067-a3c5-d4164b9e5327?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/42839a43-c94c-48c1-a2c0-71273cd0b3ec?api-version=2017-12-01", "Content": null, "Headers": { - "x-ms-unique-id": [ "10", "11" ], - "x-ms-client-request-id": [ "fe206ba7-e505-474d-986d-dce800bbddbb", "fe206ba7-e505-474d-986d-dce800bbddbb" ], + "x-ms-unique-id": [ "109", "110" ], + "x-ms-client-request-id": [ "64853478-f2c9-4975-8cb9-bbf3dcbddecf", "64853478-f2c9-4975-8cb9-bbf3dcbddecf" ], "CommandName": [ "Remove-AzMySqlFirewallRule", "Remove-AzMySqlFirewallRule" ], "FullCommandName": [ "Remove-AzMySqlFirewallRule_Delete", "Remove-AzMySqlFirewallRule_Delete" ], "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], @@ -416,31 +652,31 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "15" ], - "x-ms-request-id": [ "3e3a2eda-36a8-443f-b462-4dcc12a14fa8" ], + "x-ms-request-id": [ "416dcc50-d45f-4ab0-87a0-55c947e97100" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], - "x-ms-correlation-request-id": [ "04b7f20b-768c-4ae8-b7d6-6fc6f81a7f66" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T061539Z:04b7f20b-768c-4ae8-b7d6-6fc6f81a7f66" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11916" ], + "x-ms-correlation-request-id": [ "ca32e1b2-9b79-43ee-8428-8275dace81ff" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20200811T132853Z:ca32e1b2-9b79-43ee-8428-8275dace81ff" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:15:38 GMT" ] + "Date": [ "Tue, 11 Aug 2020 13:28:52 GMT" ] }, "ContentHeaders": { "Content-Length": [ "107" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"name\":\"bbe7232f-f3cd-4067-a3c5-d4164b9e5327\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:15:22.757Z\"}" + "Content": "{\"name\":\"42839a43-c94c-48c1-a2c0-71273cd0b3ec\",\"status\":\"Succeeded\",\"startTime\":\"2020-08-11T13:28:37.043Z\"}" } }, - "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/bbe7232f-f3cd-4067-a3c5-d4164b9e5327?api-version=2017-12-01+12": { + "New-AzMySqlFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/42839a43-c94c-48c1-a2c0-71273cd0b3ec?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/bbe7232f-f3cd-4067-a3c5-d4164b9e5327?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/42839a43-c94c-48c1-a2c0-71273cd0b3ec?api-version=2017-12-01", "Content": null, "Headers": { - "x-ms-unique-id": [ "10", "11", "12" ], - "x-ms-client-request-id": [ "fe206ba7-e505-474d-986d-dce800bbddbb", "fe206ba7-e505-474d-986d-dce800bbddbb", "fe206ba7-e505-474d-986d-dce800bbddbb" ], + "x-ms-unique-id": [ "109", "110", "111" ], + "x-ms-client-request-id": [ "64853478-f2c9-4975-8cb9-bbf3dcbddecf", "64853478-f2c9-4975-8cb9-bbf3dcbddecf", "64853478-f2c9-4975-8cb9-bbf3dcbddecf" ], "CommandName": [ "Remove-AzMySqlFirewallRule", "Remove-AzMySqlFirewallRule", "Remove-AzMySqlFirewallRule" ], "FullCommandName": [ "Remove-AzMySqlFirewallRule_Delete", "Remove-AzMySqlFirewallRule_Delete", "Remove-AzMySqlFirewallRule_Delete" ], "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], @@ -455,14 +691,14 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "5aaa7dcb-d528-4f2c-9d05-70c7da6b7e2b" ], + "x-ms-request-id": [ "5332d2e4-d932-4a3e-be54-70fa026d02c1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], - "x-ms-correlation-request-id": [ "2ef6d396-fd48-42ec-a518-6d2c29272cc5" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T061539Z:2ef6d396-fd48-42ec-a518-6d2c29272cc5" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11915" ], + "x-ms-correlation-request-id": [ "14519af9-cfef-4d16-9137-922fd9d79605" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20200811T132854Z:14519af9-cfef-4d16-9137-922fd9d79605" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:15:39 GMT" ] + "Date": [ "Tue, 11 Aug 2020 13:28:53 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], diff --git a/src/MySql/test/New-AzMySqlFirewallRule.Tests.ps1 b/src/MySql/test/New-AzMySqlFirewallRule.Tests.ps1 index f838e843a317..18dc2d481189 100644 --- a/src/MySql/test/New-AzMySqlFirewallRule.Tests.ps1 +++ b/src/MySql/test/New-AzMySqlFirewallRule.Tests.ps1 @@ -20,9 +20,19 @@ Describe 'New-AzMySqlFirewallRule' { Remove-AzMySqlFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName #Use only one parameter when only one IP - $rule = New-AzMySqlFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 + $rule = New-AzMySqlFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -StartIPAddress 0.0.0.1 $rule.Name | Should -Be $env.firewallRuleName - $rule.StartIPAddress | Should -Be 0.0.0.0 + $rule.StartIPAddress | Should -Be 0.0.0.1 + $rule.EndIPAddress | Should -Be 0.0.0.1 Remove-AzMySqlFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName } + + It 'AllowAll' { + $allowAllName = 'AllowAll_2020-08-11_21-28-19' + $rule = New-AzMySqlFirewallRule -Name $allowAllName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -AllowAll + $rule.Name | Should -Be $allowAllName + $rule.StartIPAddress | Should -Be 0.0.0.0 + $rule.EndIPAddress | Should -Be 255.255.255.255 + Remove-AzMySqlFirewallRule -Name $rule.Name -ResourceGroupName $env.resourceGroup -ServerName $env.serverName + } }