From b08bf8162f92c9d632f418f30e14053bc21587c6 Mon Sep 17 00:00:00 2001 From: Daeun Yim <69321306+DaeunYim@users.noreply.github.com> Date: Thu, 7 Jan 2021 19:45:29 -0800 Subject: [PATCH] Changed PostgreSql New-AzPostgreSqlFlexibleServer cmdlet and Added Get-AzPostgreSqlFlexibleServerLocationBasedCapability (#13716) * Generate flexible server cmdlets (#13269) * test commit with server mgmt md files * cmdlet design draft * fixed errors for mysql md files * fixed errors for mysql md files * fixing mistakes * resolved comments * mysql cmdlets customization verified * mysql modified * postgres customized cmdlets and readme * mysql postgres customized cmdlets and docs * initial commit for mysql pg module * mysql test success * pg module * postgresql cmdlet update test fixed * example document fixed * Revert "example document fixed" This reverts commit 6c60dbf77e9f38a1fe1f817dbc8a3276187898b4. * align single server test with flexible server * docs fixed * docs files moved from exports to upper folder * typo fixed * reverted mysql flexible server * configuration update doc resolved * cred scan fixed * copied from generation branch * Fix the format of cmdlet help files * Fixed bugs * comments resolved * initial commit for customization * test recorded * test pass fix * utils CI fix * CI test fix * postgresql comments resolved * minor fix for location capabilities * CI fixed * utils included * test fixed for live testing * customized server object * dynamically assign server name for live testing * dynamically assign live test variables * if else case consistent * comments resolved * change autorest version Co-authored-by: Jin Lei <54836179+msJinLei@users.noreply.github.com> Co-authored-by: msJinLei --- .../custom/Az.PostgreSql.custom.psm1 | 17 + src/PostgreSql/custom/FlexibleServer.cs | 21 + .../Get-AzPostgreSqlConnectionString.ps1 | 2 +- ...stgreSqlFlexibleServerConnectionString.ps1 | 120 + ...lFlexibleServerLocationBasedCapability.ps1 | 118 + .../custom/New-AzPostgreSqlFlexibleServer.ps1 | 596 ++ ...AzPostgreSqlFlexibleServerFirewallRule.ps1 | 182 + .../custom/New-AzPostgreSqlServer.ps1 | 4 +- ...reSqlFlexibleServer_PointInTimeRestore.ps1 | 130 + .../Update-AzPostgreSqlFlexibleServer.ps1 | 202 + ...zPostgreSqlFlexibleServerConfiguration.ps1 | 149 + ...AzPostgreSqlFlexibleServerFirewallRule.ps1 | 162 + src/PostgreSql/custom/adjectives.txt | 166 + src/PostgreSql/custom/nouns.txt | 138 + src/PostgreSql/docs/Az.PostgreSql.md | 51 + .../docs/Get-AzPostgreSqlConnectionString.md | 8 +- .../docs/Get-AzPostgreSqlFlexibleServer.md | 201 + ...AzPostgreSqlFlexibleServerConfiguration.md | 189 + ...ostgreSqlFlexibleServerConnectionString.md | 190 + ...-AzPostgreSqlFlexibleServerFirewallRule.md | 200 + ...qlFlexibleServerLocationBasedCapability.md | 112 + .../docs/New-AzPostgreSqlFlexibleServer.md | 519 ++ ...-AzPostgreSqlFlexibleServerFirewallRule.md | 292 + .../docs/New-AzPostgreSqlReplica.md | 4 +- src/PostgreSql/docs/New-AzPostgreSqlServer.md | 7 +- .../docs/Remove-AzPostgreSqlFlexibleServer.md | 237 + ...-AzPostgreSqlFlexibleServerFirewallRule.md | 253 + .../Restart-AzPostgreSqlFlexibleServer.md | 235 + .../Restore-AzPostgreSqlFlexibleServer.md | 220 + .../docs/Restore-AzPostgreSqlServer.md | 4 +- .../docs/Start-AzPostgreSqlFlexibleServer.md | 235 + .../docs/Stop-AzPostgreSqlFlexibleServer.md | 235 + .../docs/Update-AzPostgreSqlFlexibleServer.md | 390 + ...AzPostgreSqlFlexibleServerConfiguration.md | 276 + ...-AzPostgreSqlFlexibleServerFirewallRule.md | 306 + .../Get-AzPostgreSqlFlexibleServer.md | 45 + ...AzPostgreSqlFlexibleServerConfiguration.md | 23 + ...ostgreSqlFlexibleServerConnectionString.md | 17 + ...-AzPostgreSqlFlexibleServerFirewallRule.md | 34 + ...qlFlexibleServerLocationBasedCapability.md | 24 + .../New-AzPostgreSqlFlexibleServer.md | 110 + ...-AzPostgreSqlFlexibleServerFirewallRule.md | 33 + .../Remove-AzPostgreSqlFlexibleServer.md | 16 + ...-AzPostgreSqlFlexibleServerFirewallRule.md | 16 + .../Restart-AzPostgreSqlFlexibleServer.md | 14 + .../Restore-AzPostgreSqlFlexibleServer.md | 11 + .../Start-AzPostgreSqlFlexibleServer.md | 14 + .../Stop-AzPostgreSqlFlexibleServer.md | 15 + .../Update-AzPostgreSqlFlexibleServer.md | 21 + ...AzPostgreSqlFlexibleServerConfiguration.md | 22 + ...-AzPostgreSqlFlexibleServerFirewallRule.md | 22 + src/PostgreSql/readme.md | 121 +- ...t-AzPostgreSqlConfiguration.Recording.json | 18 +- .../Get-AzPostgreSqlConfiguration.Tests.ps1 | 2 +- ...zPostgreSqlConnectionString.Recording.json | 60 +- ...et-AzPostgreSqlFirewallRule.Recording.json | 120 +- .../Get-AzPostgreSqlFirewallRule.Tests.ps1 | 2 +- ...-AzPostgreSqlFlexibleServer.Recording.json | 158 + .../Get-AzPostgreSqlFlexibleServer.Tests.ps1 | 43 + ...FlexibleServerConfiguration.Recording.json | 119 + ...reSqlFlexibleServerConfiguration.Tests.ps1 | 36 + ...xibleServerConnectionString.Recording.json | 314 + ...qlFlexibleServerConnectionString.Tests.ps1 | 47 + ...lFlexibleServerFirewallRule.Recording.json | 355 + ...greSqlFlexibleServerFirewallRule.Tests.ps1 | 40 + ...rverLocationBasedCapability.Recording.json | 41 + ...bleServerLocationBasedCapability.Tests.ps1 | 21 + .../Get-AzPostgreSqlReplica.Recording.json | 96 +- .../Get-AzPostgreSqlServer.Recording.json | 24 +- .../test/Get-AzPostgreSqlServer.Tests.ps1 | 2 +- ...ostgreSqlVirtualNetworkRule.Recording.json | 126 +- ...t-AzPostgreSqlVirtualNetworkRule.Tests.ps1 | 8 +- ...ew-AzPostgreSqlFirewallRule.Recording.json | 102 +- ...-AzPostgreSqlFlexibleServer.Recording.json | 7299 +++++++++++++++++ .../New-AzPostgreSqlFlexibleServer.Tests.ps1 | 325 + ...lFlexibleServerFirewallRule.Recording.json | 710 ++ ...greSqlFlexibleServerFirewallRule.Tests.ps1 | 39 + .../New-AzPostgreSqlReplica.Recording.json | 86 +- .../test/New-AzPostgreSqlReplica.Tests.ps1 | 2 +- .../New-AzPostgreSqlServer.Recording.json | 40 +- ...ostgreSqlVirtualNetworkRule.Recording.json | 36 +- ...w-AzPostgreSqlVirtualNetworkRule.Tests.ps1 | 2 +- ...ve-AzPostgreSqlFirewallRule.Recording.json | 68 +- .../Remove-AzPostgreSqlFirewallRule.Tests.ps1 | 2 +- ...-AzPostgreSqlFlexibleServer.Recording.json | 298 + ...emove-AzPostgreSqlFlexibleServer.Tests.ps1 | 37 + ...lFlexibleServerFirewallRule.Recording.json | 474 ++ ...greSqlFlexibleServerFirewallRule.Tests.ps1 | 25 + .../Remove-AzPostgreSqlServer.Recording.json | 80 +- .../test/Remove-AzPostgreSqlServer.Tests.ps1 | 2 +- ...ostgreSqlVirtualNetworkRule.Recording.json | 72 +- ...e-AzPostgreSqlVirtualNetworkRule.Tests.ps1 | 6 +- ...-AzPostgreSqlFlexibleServer.Recording.json | 324 + ...start-AzPostgreSqlFlexibleServer.Tests.ps1 | 27 + .../Restart-AzPostgreSqlServer.Recording.json | 88 +- .../test/Restart-AzPostgreSqlServer.Tests.ps1 | 2 +- ...-AzPostgreSqlFlexibleServer.Recording.json | 358 + ...store-AzPostgreSqlFlexibleServer.Tests.ps1 | 21 + .../Restore-AzPostgreSqlServer.Recording.json | 272 +- .../test/Restore-AzPostgreSqlServer.Tests.ps1 | 4 +- ...-AzPostgreSqlFlexibleServer.Recording.json | 646 ++ ...Start-AzPostgreSqlFlexibleServer.Tests.ps1 | 29 + ...-AzPostgreSqlFlexibleServer.Recording.json | 646 ++ .../Stop-AzPostgreSqlFlexibleServer.Tests.ps1 | 29 + ...e-AzPostgreSqlConfiguration.Recording.json | 36 +- ...Update-AzPostgreSqlConfiguration.Tests.ps1 | 2 +- ...te-AzPostgreSqlFirewallRule.Recording.json | 104 +- .../Update-AzPostgreSqlFirewallRule.Tests.ps1 | 2 +- ...-AzPostgreSqlFlexibleServer.Recording.json | 234 + ...pdate-AzPostgreSqlFlexibleServer.Tests.ps1 | 29 + ...FlexibleServerConfiguration.Recording.json | 234 + ...reSqlFlexibleServerConfiguration.Tests.ps1 | 27 + ...lFlexibleServerFirewallRule.Recording.json | 582 ++ ...greSqlFlexibleServerFirewallRule.Tests.ps1 | 41 + .../Update-AzPostgreSqlServer.Recording.json | 42 +- ...ostgreSqlVirtualNetworkRule.Recording.json | 112 +- ...e-AzPostgreSqlVirtualNetworkRule.Tests.ps1 | 10 +- .../virtual-network/template.json | 2 +- src/PostgreSql/test/env.json | 22 +- src/PostgreSql/test/localEnv.json | 20 +- src/PostgreSql/test/utils.ps1 | 72 +- src/PostgreSql/utils/adjectives.txt | 166 + src/PostgreSql/utils/nouns.txt | 138 + 123 files changed, 21505 insertions(+), 882 deletions(-) create mode 100644 src/PostgreSql/custom/Az.PostgreSql.custom.psm1 create mode 100644 src/PostgreSql/custom/FlexibleServer.cs create mode 100644 src/PostgreSql/custom/Get-AzPostgreSqlFlexibleServerConnectionString.ps1 create mode 100644 src/PostgreSql/custom/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.ps1 create mode 100644 src/PostgreSql/custom/New-AzPostgreSqlFlexibleServer.ps1 create mode 100644 src/PostgreSql/custom/New-AzPostgreSqlFlexibleServerFirewallRule.ps1 create mode 100644 src/PostgreSql/custom/Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore.ps1 create mode 100644 src/PostgreSql/custom/Update-AzPostgreSqlFlexibleServer.ps1 create mode 100644 src/PostgreSql/custom/Update-AzPostgreSqlFlexibleServerConfiguration.ps1 create mode 100644 src/PostgreSql/custom/Update-AzPostgreSqlFlexibleServerFirewallRule.ps1 create mode 100644 src/PostgreSql/custom/adjectives.txt create mode 100644 src/PostgreSql/custom/nouns.txt create mode 100644 src/PostgreSql/docs/Get-AzPostgreSqlFlexibleServer.md create mode 100644 src/PostgreSql/docs/Get-AzPostgreSqlFlexibleServerConfiguration.md create mode 100644 src/PostgreSql/docs/Get-AzPostgreSqlFlexibleServerConnectionString.md create mode 100644 src/PostgreSql/docs/Get-AzPostgreSqlFlexibleServerFirewallRule.md create mode 100644 src/PostgreSql/docs/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.md create mode 100644 src/PostgreSql/docs/New-AzPostgreSqlFlexibleServer.md create mode 100644 src/PostgreSql/docs/New-AzPostgreSqlFlexibleServerFirewallRule.md create mode 100644 src/PostgreSql/docs/Remove-AzPostgreSqlFlexibleServer.md create mode 100644 src/PostgreSql/docs/Remove-AzPostgreSqlFlexibleServerFirewallRule.md create mode 100644 src/PostgreSql/docs/Restart-AzPostgreSqlFlexibleServer.md create mode 100644 src/PostgreSql/docs/Restore-AzPostgreSqlFlexibleServer.md create mode 100644 src/PostgreSql/docs/Start-AzPostgreSqlFlexibleServer.md create mode 100644 src/PostgreSql/docs/Stop-AzPostgreSqlFlexibleServer.md create mode 100644 src/PostgreSql/docs/Update-AzPostgreSqlFlexibleServer.md create mode 100644 src/PostgreSql/docs/Update-AzPostgreSqlFlexibleServerConfiguration.md create mode 100644 src/PostgreSql/docs/Update-AzPostgreSqlFlexibleServerFirewallRule.md create mode 100644 src/PostgreSql/examples/Get-AzPostgreSqlFlexibleServer.md create mode 100644 src/PostgreSql/examples/Get-AzPostgreSqlFlexibleServerConfiguration.md create mode 100644 src/PostgreSql/examples/Get-AzPostgreSqlFlexibleServerConnectionString.md create mode 100644 src/PostgreSql/examples/Get-AzPostgreSqlFlexibleServerFirewallRule.md create mode 100644 src/PostgreSql/examples/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.md create mode 100644 src/PostgreSql/examples/New-AzPostgreSqlFlexibleServer.md create mode 100644 src/PostgreSql/examples/New-AzPostgreSqlFlexibleServerFirewallRule.md create mode 100644 src/PostgreSql/examples/Remove-AzPostgreSqlFlexibleServer.md create mode 100644 src/PostgreSql/examples/Remove-AzPostgreSqlFlexibleServerFirewallRule.md create mode 100644 src/PostgreSql/examples/Restart-AzPostgreSqlFlexibleServer.md create mode 100644 src/PostgreSql/examples/Restore-AzPostgreSqlFlexibleServer.md create mode 100644 src/PostgreSql/examples/Start-AzPostgreSqlFlexibleServer.md create mode 100644 src/PostgreSql/examples/Stop-AzPostgreSqlFlexibleServer.md create mode 100644 src/PostgreSql/examples/Update-AzPostgreSqlFlexibleServer.md create mode 100644 src/PostgreSql/examples/Update-AzPostgreSqlFlexibleServerConfiguration.md create mode 100644 src/PostgreSql/examples/Update-AzPostgreSqlFlexibleServerFirewallRule.md create mode 100644 src/PostgreSql/test/Get-AzPostgreSqlFlexibleServer.Recording.json create mode 100644 src/PostgreSql/test/Get-AzPostgreSqlFlexibleServer.Tests.ps1 create mode 100644 src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConfiguration.Recording.json create mode 100644 src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConfiguration.Tests.ps1 create mode 100644 src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConnectionString.Recording.json create mode 100644 src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConnectionString.Tests.ps1 create mode 100644 src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerFirewallRule.Recording.json create mode 100644 src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 create mode 100644 src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.Recording.json create mode 100644 src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.Tests.ps1 create mode 100644 src/PostgreSql/test/New-AzPostgreSqlFlexibleServer.Recording.json create mode 100644 src/PostgreSql/test/New-AzPostgreSqlFlexibleServer.Tests.ps1 create mode 100644 src/PostgreSql/test/New-AzPostgreSqlFlexibleServerFirewallRule.Recording.json create mode 100644 src/PostgreSql/test/New-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 create mode 100644 src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServer.Recording.json create mode 100644 src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServer.Tests.ps1 create mode 100644 src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServerFirewallRule.Recording.json create mode 100644 src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 create mode 100644 src/PostgreSql/test/Restart-AzPostgreSqlFlexibleServer.Recording.json create mode 100644 src/PostgreSql/test/Restart-AzPostgreSqlFlexibleServer.Tests.ps1 create mode 100644 src/PostgreSql/test/Restore-AzPostgreSqlFlexibleServer.Recording.json create mode 100644 src/PostgreSql/test/Restore-AzPostgreSqlFlexibleServer.Tests.ps1 create mode 100644 src/PostgreSql/test/Start-AzPostgreSqlFlexibleServer.Recording.json create mode 100644 src/PostgreSql/test/Start-AzPostgreSqlFlexibleServer.Tests.ps1 create mode 100644 src/PostgreSql/test/Stop-AzPostgreSqlFlexibleServer.Recording.json create mode 100644 src/PostgreSql/test/Stop-AzPostgreSqlFlexibleServer.Tests.ps1 create mode 100644 src/PostgreSql/test/Update-AzPostgreSqlFlexibleServer.Recording.json create mode 100644 src/PostgreSql/test/Update-AzPostgreSqlFlexibleServer.Tests.ps1 create mode 100644 src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerConfiguration.Recording.json create mode 100644 src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerConfiguration.Tests.ps1 create mode 100644 src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerFirewallRule.Recording.json create mode 100644 src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 create mode 100644 src/PostgreSql/utils/adjectives.txt create mode 100644 src/PostgreSql/utils/nouns.txt diff --git a/src/PostgreSql/custom/Az.PostgreSql.custom.psm1 b/src/PostgreSql/custom/Az.PostgreSql.custom.psm1 new file mode 100644 index 000000000000..638c9dbd7ca3 --- /dev/null +++ b/src/PostgreSql/custom/Az.PostgreSql.custom.psm1 @@ -0,0 +1,17 @@ +# region Generated + # Load the private module dll + $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.PostgreSql.private.dll') + + # Load the internal module + $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.PostgreSql.internal.psm1' + if(Test-Path $internalModulePath) { + $null = Import-Module -Name $internalModulePath + } + + # Export nothing to clear implicit exports + Export-ModuleMember + + # Export script cmdlets + Get-ChildItem -Path $PSScriptRoot -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } + Export-ModuleMember -Function (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot) -Alias (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot -AsAlias) +# endregion diff --git a/src/PostgreSql/custom/FlexibleServer.cs b/src/PostgreSql/custom/FlexibleServer.cs new file mode 100644 index 000000000000..076bb287707b --- /dev/null +++ b/src/PostgreSql/custom/FlexibleServer.cs @@ -0,0 +1,21 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Extensions; + using System.Security; + + /// Represents a server. + public partial class ServerAutoGenerated + { + private SecureString _SecuredPassword; + // The user password in secure string. Convert the secure string into plain text if necessary. + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.DoNotFormat] + public SecureString SecuredPassword {get => this._SecuredPassword; set => this._SecuredPassword = value;} + + private string _FirewallRuleName; + // The name of the firewall rule of the server + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.DoNotFormat] + public string FirewallRuleName {get => this._FirewallRuleName; set => this._FirewallRuleName = value;} + } +} \ No newline at end of file diff --git a/src/PostgreSql/custom/Get-AzPostgreSqlConnectionString.ps1 b/src/PostgreSql/custom/Get-AzPostgreSqlConnectionString.ps1 index 3d329d2b6a12..e7fb07ef596d 100644 --- a/src/PostgreSql/custom/Get-AzPostgreSqlConnectionString.ps1 +++ b/src/PostgreSql/custom/Get-AzPostgreSqlConnectionString.ps1 @@ -34,7 +34,7 @@ function Get-AzPostgreSqlConnectionString { [System.String] ${SubscriptionId}, - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline, HelpMessage = 'The source server object to create replica from.')] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline, HelpMessage = 'The server for the connection string')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer] ${InputObject}, diff --git a/src/PostgreSql/custom/Get-AzPostgreSqlFlexibleServerConnectionString.ps1 b/src/PostgreSql/custom/Get-AzPostgreSqlFlexibleServerConnectionString.ps1 new file mode 100644 index 000000000000..5dc92225bad8 --- /dev/null +++ b/src/PostgreSql/custom/Get-AzPostgreSqlFlexibleServerConnectionString.ps1 @@ -0,0 +1,120 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Get the connection string according to client connection provider. +.Description +Get the connection string according to client connection provider. +#> +function Get-AzPostgreSqlFlexibleServerConnectionString { + [OutputType([System.String])] + [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Description('Get the connection string according to client connection provider.')] + param( + [Parameter(ParameterSetName='Get', Mandatory, HelpMessage = 'The name of the server.')] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [System.String] + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory, HelpMessage = 'The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [System.String] + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get', HelpMessage='The subscription ID that identifies an Azure subscription.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + ${SubscriptionId}, + + [Parameter(Mandatory, HelpMessage = 'Client connection provider.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [Validateset('ADO.NET', 'C++', 'JDBC', 'Node.js', 'PHP', 'psql', 'Python', 'Ruby')] + [System.String] + ${Client}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline, HelpMessage = 'The server for the connection string')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated] + ${InputObject}, + + [Parameter(HelpMessage = 'The credentials, account, tenant, and subscription used for communication with Azure.')] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Azure')] + [System.Management.Automation.PSObject] + ${DefaultProfile}, + + [Parameter(DontShow, HelpMessage = 'Wait for .NET debugger to attach.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline. + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline. + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use. + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call. + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy. + ${ProxyUseDefaultCredentials} + ) + + process { + $null = $PSBoundParameters.Remove('Client') + $postgreSql = Az.PostgreSql\Get-AzPostgreSqlFlexibleServer @PSBoundParameters + $DBHost = $postgreSql.FullyQualifiedDomainName + $DBPort = 5432 + $adminName = $postgreSql.AdministratorLogin + + $ConnectionStringMap = @{ + 'ADO.NET' = "Server=${DBHost};Database={your_database};Port=${DBPort};User Id=${adminName};Password={your_password};" + 'C++' = "host=${DBHost} port=${DBPort} dbname={your_database} user=${adminName} password={your_password}" + 'JDBC' = "jdbc:postgresql://${DBHost}:${DBPort}/{your_database}?user=${adminName}&password={your_password}&" + 'Node.js' = "host=${DBHost} port=${DBPort} dbname={your_database} user=${adminName} password={your_password}" + 'PHP' = "host=${DBHost} port=${DBPort} dbname={your_database} user=${adminName} password={your_password}" + 'psql' = "psql ""host=${DBHost} port=${DBPort} dbname={your_database} user=${adminName} password={your_password}""" + 'Python' = "dbname='{your_database}' user='${adminName}' host='${DBHost}' password='{your_password}' port='${DBPort}'" + 'Ruby' = "host=${DBHost}; dbname={your_database} user=${adminName} password={your_password} port=${DBPort}" + } + return $ConnectionStringMap[$Client] + } +} + diff --git a/src/PostgreSql/custom/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.ps1 b/src/PostgreSql/custom/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.ps1 new file mode 100644 index 000000000000..19bfe200f7cf --- /dev/null +++ b/src/PostgreSql/custom/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.ps1 @@ -0,0 +1,118 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Get the available SKU information for the location +.Description +Get the available SKU information for the location +#> + +function Get-AzPostgreSqlFlexibleServerLocationBasedCapability { + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ICapabilityProperties])] + [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] + param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [System.String] + # The name of the location. + ${Location}, + + [Parameter(ParameterSetName='Get')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + + process { + try { + $PSBoundParameters.LocationName = $PSBoundParameters['Location'] + $null = $PSBoundParameters.Remove('Location') + + $Result = Az.PostgreSql.internal\Get-AzPostgreSqlFlexibleServerLocationBasedCapability @PSBoundParameters + Write-Host "Please refer to https://aka.ms/postgresql-pricing for pricing details" + $SkusTiers = $Result[0].SupportedFlexibleServerEdition + $TableResult = @() + + foreach ($Skus in $SkusTiers) { + $TierName = $Skus.Name + try { + $Keys = $Skus.SupportedServerVersion[0].SupportedVcore + + foreach ($Key in $Keys) { + $NewEntry = New-Object -TypeName PSCustomObject -Property @{SKU=$Key.Name; Tier=$TierName; vCore=$Key.Vcore; Memory=$Key.SupportedMemoryPerVcoreMb} + $TableResult += $NewEntry + } + } + catch { + throw "No SKU info for this location" + } + } + $TableResult + + } catch { + throw + } + } +} + \ No newline at end of file diff --git a/src/PostgreSql/custom/New-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/custom/New-AzPostgreSqlFlexibleServer.ps1 new file mode 100644 index 000000000000..85360a267732 --- /dev/null +++ b/src/PostgreSql/custom/New-AzPostgreSqlFlexibleServer.ps1 @@ -0,0 +1,596 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +<# +.Synopsis +Creates a new PostgreSQL flexible server. +.Description +Creates a new PostgreSQL flexible server. +#> + +$DELEGATION_SERVICE_NAME = "Microsoft.DBforPostgreSQL/flexibleServers" +$DEFAULT_VNET_PREFIX = '10.0.0.0/16' +$DEFAULT_SUBNET_PREFIX = '10.0.0.0/24' +$AZURE_ARMNAME = '^[^<>%&:\\?/]{1,260}$' + +function New-AzPostgreSqlFlexibleServer { + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated])] + [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Description('Creates a new server.')] + param( + [Parameter(HelpMessage = 'The name of the server.')] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [System.String] + ${Name}, + + [Parameter(HelpMessage = 'The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [System.String] + ${ResourceGroupName}, + + [Parameter(HelpMessage='The subscription ID that identifies an Azure subscription.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + ${SubscriptionId}, + + [Parameter(HelpMessage = 'The location the resource resides in.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.String] + ${Location}, + + [Parameter(HelpMessage = 'Administrator username for the server. Once set, it cannot be changed.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.String] + ${AdministratorUserName}, + + [Parameter(HelpMessage = 'The password of the administrator. Minimum 8 characters and maximum 128 characters. Password must contain characters from three of the following categories: English uppercase letters, English lowercase letters, numbers, and non-alphanumeric characters.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.Security.SecureString] + [ValidateNotNullOrEmpty()] + ${AdministratorLoginPassword}, + + [Parameter(HelpMessage = 'The name of the sku, typically, tier + family + cores, e.g. Standard_B1ms, Standard_D2ds_v4.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.String] + ${Sku}, + + [Parameter(HelpMessage = 'Compute tier of the server. Accepted values: Burstable, GeneralPurpose, Memory Optimized. Default: Burstable.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.String] + ${SkuTier}, + + [Parameter(HelpMessage = "Backup retention days for the server. Day count is between 7 and 35.")] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.Int32] + ${BackupRetentionDay}, + + [Parameter(HelpMessage = 'Max storage allowed for a server.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.Int32] + ${StorageInMb}, + + [Parameter(HelpMessage = 'Application-specific metadata in the form of key-value pairs.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateTags]))] + [System.Collections.Hashtable] + ${Tag}, + + [Parameter(HelpMessage = 'Server version.')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion])] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion] + ${Version}, + + # [Parameter(ParameterSetName='CreateWithPrivateAccess')] + [Parameter(HelpMessage = 'The subnet IP address prefix to use when creating a new vnet in CIDR format. Default value is 10.0.0.0/24.')] + [System.String] + ${SubnetPrefix}, + + # [Parameter(ParameterSetName='CreateWithPrivateAccess')] + [Parameter(HelpMessage = 'The Name or Id of an existing Subnet or name of a new one to create. Please note that the subnet will be delegated to Microsoft.DBforPostgreSQL/flexibleServers. After delegation, this subnet cannot be used for any other type of Azure resources.')] + [System.String] + ${Subnet}, + + # [Parameter(ParameterSetName='CreateWithPrivateAccess')] + [Parameter(HelpMessage = 'The IP address prefix to use when creating a new vnet in CIDR format. Default value is 10.0.0.0/16.')] + [System.String] + ${VnetPrefix}, + + # [Parameter(ParameterSetName='CreateWithPrivateAccess')] + [Parameter(HelpMessage = 'The Name or Id of an existing virtual network or name of a new one to create. The name must be between 2 to 64 characters. The name must begin with a letter or number, end with a letter, number or underscore, and may contain only letters, numbers, underscores, periods, or hyphens.')] + [System.String] + ${Vnet}, + + # [Parameter(ParameterSetName='CreateWithPublicAccess')] + [Parameter(HelpMessage = " + Determines the public access. Enter single or range of IP addresses to be + included in the allowed list of IPs. IP address ranges must be dash- + separated and not contain any spaces. Specifying 0.0.0.0 allows public + access from any resources deployed within Azure to access your server. + Specifying no IP address sets the server in public access mode but does + not create a firewall rule.")] + [System.String] + ${PublicAccess}, + + [Parameter(HelpMessage = 'The credentials, account, tenant, and subscription used for communication with Azure.')] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Azure')] + [System.Management.Automation.PSObject] + ${DefaultProfile}, + + [Parameter(HelpMessage = 'Run the command as a job.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${AsJob}, + + [Parameter(DontShow, HelpMessage = 'Wait for .NET debugger to attach.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline. + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline. + ${HttpPipelinePrepend}, + + [Parameter(HelpMessage = 'Run the command asynchronously.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use. + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call. + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy. + ${ProxyUseDefaultCredentials} + ) + + process { + try { + + if (!$PSBoundParameters.ContainsKey('Location')) { + $PSBoundParameters.Location = 'eastus' + } + + if (!$PSBoundParameters.ContainsKey('AdministratorLoginPassword')) { + $Password = Get-GeneratePassword + $PSBoundParameters.AdministratorLoginPassword = $Password | ConvertTo-SecureString -AsPlainText -Force + } + $PSBoundParameters.AdministratorLoginPassword = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['AdministratorLoginPassword'] + + Import-Module -Name Az.Resources + + if(!$PSBoundParameters.ContainsKey('ResourceGroupName')) { + $PSBoundParameters.ResourceGroupName = Get-RandomNumbers -Prefix 'group' -Length 10 + $Msg = "Creating Resource Group {0}..." -f $PSBoundParameters.ResourceGroupName + Write-Host $Msg + + if($PSCmdlet.ShouldProcess($PSBoundParameters.ResourceGroupName)) { + $null = New-AzResourceGroup -Name $PSBoundParameters.ResourceGroupName -Location $PSBoundParameters.Location -Force + } + } + else { + $Msg = 'Checking the existence of the resource group {0} ...' -f $PSBoundParameters.ResourceGroupName + Write-Host $Msg + try { + $null = Get-AzResourceGroup -Name $PSBoundParameters.ResourceGroupName -ErrorAction Stop + $Msg = 'Resource group {0} exists ? : True' -f $PSBoundParameters.ResourceGroupName + Write-Host $Msg + } + catch { + $Msg = 'Resource group {0} exists ? : False' -f $PSBoundParameters.ResourceGroupName + Write-Host $Msg + $Msg = "Creating Resource Group {0}..." -f $PSBoundParameters.ResourceGroupName + Write-Host $Msg + if($PSCmdlet.ShouldProcess($PSBoundParameters.ResourceGroupName)) { + $null = New-AzResourceGroup -Name $PSBoundParameters.ResourceGroupName -Location $PSBoundParameters.Location -Force + } + + } + } + + if (!$PSBoundParameters.ContainsKey('Name')) { + $PSBoundParameters.Name = Get-RandomNumbers -Prefix 'server' -Length 10 + } + + if ($PSBoundParameters.ContainsKey('Sku')) { + $PSBoundParameters.SkuName = $PSBoundParameters['Sku'] + $null = $PSBoundParameters.Remove('Sku') + } + else { + $PSBoundParameters.SkuName = 'Standard_D2s_v3' + } + + if ($PSBoundParameters.ContainsKey('BackupRetentionDay')) { + $PSBoundParameters.StorageProfileBackupRetentionDay = $PSBoundParameters['BackupRetentionDay'] + $null = $PSBoundParameters.Remove('BackupRetentionDay') + } + else { + $PSBoundParameters.StorageProfileBackupRetentionDay = 7 + } + + if ($PSBoundParameters.ContainsKey('StorageInMb')) { + $PSBoundParameters.StorageProfileStorageMb = $PSBoundParameters['StorageInMb'] + $null = $PSBoundParameters.Remove('StorageInMb') + } + else { + $PSBoundParameters.StorageProfileStorageMb = 128*1024 + } + + if (!$PSBoundParameters.ContainsKey('Version')) { + $PSBoundParameters.Version = '12' + } + + if (!$PSBoundParameters.ContainsKey('SkuTier')) { + $PSBoundParameters.SkuTier = 'GeneralPurpose' + } + + if ($PSBoundParameters.ContainsKey('AdministratorUserName')) { + $PSBoundParameters.AdministratorLogin = $PSBoundParameters['AdministratorUserName'] + $null = $PSBoundParameters.Remove('AdministratorUserName') + } + else { + $PSBoundParameters.AdministratorLogin = Get-RandomName + } + + $PSBoundParameters.CreateMode = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode]::Default + + # Handling Vnet & Subnet + $NetworkKeys = 'PublicAccess', 'Subnet', 'Vnet', 'SubnetPrefix', 'VnetPrefix' + $NetworkParameters = @{} + foreach($Key in $NetworkKeys){ + if ($PSBoundParameters.ContainsKey($Key)){ + $NetworkParameters[$Key] = $PSBoundParameters[$Key] + $null = $PSBoundParameters.Remove($Key) + } + } + $RequiredKeys = 'SubscriptionId', 'ResourceGroupName', 'Name', 'Location' + foreach($Key in $RequiredKeys){ $NetworkParameters[$Key] = $PSBoundParameters[$Key] } + + if(!$NetworkParameters.ContainsKey('PublicAccess')){ + $VnetSubnetParameters = CreateNetworkResource $NetworkParameters + $SubnetId = GetSubnetId $VnetSubnetParameters.ResourceGroupName $VnetSubnetParameters.VnetName $VnetSubnetParameters.SubnetName + $PSBoundParameters.DelegatedSubnetArgumentSubnetArmResourceId = $SubnetId + if ([string]::IsNullOrEmpty($PSBoundParameters.DelegatedSubnetArgumentSubnetArmResourceId)) { + $null = $PSBoundParameters.Remove('DelegatedSubnetArgumentSubnetArmResourceId') + } + } + + $Msg = 'Creating PostgreSQL server {0} in group {1}...' -f $PSBoundParameters.Name, $PSBoundParameters.resourceGroupName + Write-Host $Msg + $Msg = 'Your server {0} is using sku {1} (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details' -f $PSBoundParameters.Name, $PSBoundParameters.SkuName + Write-Host $Msg + $Server = Az.PostgreSql.internal\New-AzPostgreSqlFlexibleServer @PSBoundParameters + + # Create Firewallrules + $FirewallRuleName = CreateFirewallRule $NetworkParameters + + if (![string]::IsNullOrEmpty($FirewallRuleName)) { + $Server.FirewallRuleName = $FirewallRuleName + } + $Server.SecuredPassword = $PSBoundParameters.AdministratorLoginPassword | ConvertTo-SecureString -AsPlainText -Force + + return $Server + } catch { + throw + } + } +} + +function CreateNetworkResource($NetworkParameters) { + [OutputType([hashtable])] + $WarningPreference = 'silentlycontinue' + + if (!(Get-Module -ListAvailable -Name Az.Network)) { + throw 'Please install Az.Network module by entering "Install-Module -Name Az.Network"' + } + else { + Import-Module -Name Az.Network + } + + # 1. Error Handling + # Raise error when user passes values for both parameters + if ($NetworkParameters.Containskey('Subnet') -And $NetworkParameters.ContainsKey('PublicAccess')) { + throw "Incorrect usage : A combination of the parameters -Subnet and -PublicAccess is invalid. Use either one of them." + } + + # When address space parameters are passed, the only valid combination is : -Vnet -Subnet -VnetPrefix -SubnetPrefix + if ($NetworkParameters.ContainsKey('Vnet') -Or $NetworkParameters.ContainsKey('Subnet')) { + if (($NetworkParameters.ContainsKey('VnetPrefix') -And !$NetworkParameters.ContainsKey('SubnetPrefix')) -Or + (!$NetworkParameters.ContainsKey('VnetPrefix') -And $NetworkParameters.ContainsKey('SubnetPrefix')) -Or + ($NetworkParameters.ContainsKey('VnetPrefix') -And $NetworkParameters.ContainsKey('SubnetPrefix') -And (!$NetworkParameters.ContainsKey('Vnet') -Or !$NetworkParameters.ContainsKey('Subnet')))){ + throw "Incorrect usage : -Vnet -Subnet -VnetPrefix -SubnetPrefix must be supplied together." + } + } + + #Handle Vnet, Subnet scenario + if ($NetworkParameters.ContainsKey('Vnet') -Or $NetworkParameters.ContainsKey('Subnet')) { + # Only the Subnet ID provided.. + if (!$NetworkParameters.ContainsKey('Vnet') -And $NetworkParameters.ContainsKey('Subnet')) { + if (IsValidSubnetId $NetworkParameters.Subnet) { + Write-Host "You have supplied a subnet Id. Verifying its existence..." + $ParsedResult = ParseResourceId $NetworkParameters.Subnet + $NetworkParameters.VnetName = $ParsedResult.VnetName + $NetworkParameters.SubnetName = $ParsedResult.SubnetName + $NetworkParameters.ResourceGroupName = $ParsedResult.ResourceGroupName + $SubnetFlag = $true + try { # Valid Subnet ID is provided + $Subnet = Get-AzVirtualNetworkSubnetConfig -ResourceId $NetworkParameters.Subnet -ErrorAction Stop + } + catch { # Invalid subnet ID is provided, creating a new one. + $SubnetFlag = $false + Write-Host "The subnet doesn't exist. Creating the subnet" + $Subnet = CreateVnetSubnet $NetworkParameters + } + + if ($SubnetFlag){ + $Delegations = Get-AzDelegation -Subnet $Subnet + if ($null -ne $Delegations){ # Valid but incorrect delegation + $Delegations | ForEach-Object {if ($PSItem.ServiceName -ne $DELEGATION_SERVICE_NAME) { + $Msg = "Can not use subnet with existing delegations other than {0}" -f $DELEGATION_SERVICE_NAME + throw $Msg + }} + } + else { # Valid but no delegation + $Vnet = Get-AzVirtualNetwork -ResourceGroupName $NetworkParameters.ResourceGroupName -Name $NetworkParameters.VnetName + $Subnet = Get-AzVirtualNetworkSubnetConfig -Name $NetworkParameters.SubnetName -VirtualNetwork $Vnet + $Subnet = Add-AzDelegation -Name $DELEGATION_SERVICE_NAME -ServiceName $DELEGATION_SERVICE_NAME -Subnet $Subnet + $Vnet | Set-AzVirtualNetwork + } + } + } + else { + throw "The Subnet ID is not a valid form of resource id." + } + } + elseif ($NetworkParameters.ContainsKey('Vnet') -And !$NetworkParameters.ContainsKey('Subnet')) { + if (IsValidVnetId $NetworkParameters.Vnet){ + Write-Host "You have supplied a vnet Id. Verifying its existence..." + IsValidRgLocation $NetworkParameters.Vnet $NetworkParameters + $ParsedResult = ParseResourceId $NetworkParameters.Vnet + $NetworkParameters.VnetName = $ParsedResult.VnetName + $NetworkParameters.SubnetName = 'Subnet' + $NetworkParameters.Name + $Subnet = CreateVnetSubnet $NetworkParameters + } + elseif ($NetworkParameters.Vnet -Match $AZURE_ARMNAME) { + Write-Host "You have supplied a vnet Name. Verifying its existence..." + $NetworkParameters.VnetName = $NetworkParameters.Vnet + $NetworkParameters.SubnetName = 'Subnet' + $NetworkParameters.Name + $Subnet = CreateVnetSubnet $NetworkParameters + IsValidRgLocation $Subnet.Id $NetworkParameters + } + else { + throw "Incorrectly formed Vnet id or Vnet name" + } + } + else { # Both Vnet and Subnet provided + if ($NetworkParameters.Vnet -Match $AZURE_ARMNAME -And $NetworkParameters.Subnet -Match $AZURE_ARMNAME) { + $NetworkParameters.VnetName = $NetworkParameters.Vnet + $NetworkParameters.SubnetName = $NetworkParameters.Subnet + $Subnet = CreateVnetSubnet $NetworkParameters + } + else { + if ($NetworkParameters.ContainsKey('SubnetPrefix') -And $NetworkParameters.ContainsKey('VnetPrefix')) { + $Msg = "If you pass an address prefix, please consider passing a name (instead of Id) for a subnet or vnet." + } + else { $Msg = "If you pass both --vnet and --subnet, consider passing names instead of ids." } + throw $Msg + } + } + } + # Handling create command without arguments + elseif (!$NetworkParameters.ContainsKey('PublicAccess') -And !$NetworkParameters.ContainsKey('Subnet') -And !$NetworkParameters.ContainsKey('Vnet')) { + $NetworkParameters.VnetName = 'VNET' + $NetworkParameters.Name + $NetworkParameters.SubnetName = 'Subnet' + $NetworkParameters.Name + $NetworkParameters.VnetPrefix = $DEFAULT_VNET_PREFIX + $NetworkParameters.SubnetPrefix = $DEFAULT_SUBNET_PREFIX + + $Subnet = CreateVnetSubnet $NetworkParameters + } + return $NetworkParameters +} + + +function GetSubnetId($ResourceGroupName, $VnetName, $SubnetName){ + if (!($ResourceGroupName -is [String])){ $ResourceGroupName = $ResourceGroupName[0]} + $Vnet = Get-AzVirtualNetwork -Name $VnetName -ResourceGroupName $ResourceGroupName + $Subnet = Get-AzVirtualNetworkSubnetConfig -Name $SubnetName -VirtualNetwork $Vnet + return $Subnet.Id +} + +function CreateVnetSubnet($Parameters){ + if (!$Parameters.ContainsKey('SubnetPrefix')){$Parameters.SubnetPrefix = $DEFAULT_SUBNET_PREFIX} + if (!$Parameters.ContainsKey('VnetPrefix')){$Parameters.VnetPrefix = $DEFAULT_VNET_PREFIX} + + try { + Get-AzVirtualNetwork -Name $Parameters.VnetName -ResourceGroupName $Parameters.ResourceGroupName -ErrorAction Stop + $Msg = "The provided vnet does exist." + Write-Host $Msg + } + catch { + $Msg = "Creating new vnet {0} in resource group {1}" -f $Parameters.VnetName, $Parameters.ResourceGroupName + Write-Host $Msg + if($PSCmdlet.ShouldProcess($Parameters.VnetName)) { + New-AzVirtualNetwork -Name $Parameters.VnetName -ResourceGroupName $Parameters.ResourceGroupName -Location $Parameters.Location -AddressPrefix $Parameters.VnetPrefix -Force + } + } + + $Subnet = CreateAndDelegateSubnet $Parameters + + return $Subnet +} + +function CreateAndDelegateSubnet($Parameters) { + $SubnetFlag = $true + $Vnet = Get-AzVirtualNetwork -Name $Parameters.VnetName -ResourceGroupName $Parameters.ResourceGroupName -ErrorAction Stop + try { + $Subnet = Get-AzVirtualNetworkSubnetConfig -VirtualNetwork $Vnet -Name $Parameters.SubnetName -ErrorAction Stop + $Msg = "The provided subnet does exist." + Write-Host $Msg + } + catch { + $SubnetFlag = $false + $Msg = 'Creating new subnet {0} in resource group {1} and delegating it to {2}' -f $Parameters.SubnetName, $Parameters.ResourceGroupName, $DELEGATION_SERVICE_NAME + Write-Host $Msg + } + + if (!$SubnetFlag) { + $Delegation = New-AzDelegation -Name $DELEGATION_SERVICE_NAME -ServiceName $DELEGATION_SERVICE_NAME + Add-AzVirtualNetworkSubnetConfig -Name $Parameters.SubnetName -VirtualNetwork $Vnet -AddressPrefix $Parameters.SubnetPrefix -Delegation $Delegation | Set-AzVirtualNetwork + } + else { # check if existing subnet is delegated + $Delegations = Get-AzDelegation -Subnet $Subnet + if ($null -ne $Delegations){ + $Delegations | ForEach-Object {If ($PSItem.ServiceName -ne $DELEGATION_SERVICE_NAME) { + $Msg = "Can not use subnet with existing delegations other than {0}" -f $DELEGATION_SERVICE_NAME + throw $Msg + }} + } + else { # Valid but no delegation + $Subnet = Add-AzDelegation -Name $DELEGATION_SERVICE_NAME -ServiceName $DELEGATION_SERVICE_NAME -Subnet $Subnet + $Vnet | Set-AzVirtualNetwork + } + } + + return $Subnet +} + +function CreateFirewallRule($FirewallRuleParameters) { + if ($FirewallRuleParameters.ContainsKey('PublicAccess') -And $FirewallRuleParameters.PublicAccess.ToLower() -ne 'none') { + $Date = Get-Date -Format "yyyy-MM-dd_HH-mm-ss" + if ($FirewallRuleParameters.PublicAccess.ToLower() -eq 'all'){ + $StartIp = '0.0.0.0' + $EndIp = '255.255.255.255' + $RuleName = "AllowAll_" + $Date + $FirewallRule = New-AzPostgreSqlFlexibleServerFirewallRule -Name $RuleName -ResourceGroupName $FirewallRuleParameters.ResourceGroupName -ServerName $FirewallRuleParameters.Name -EndIPAddress $EndIp -StartIPAddress $StartIp + } + else { + $Parsed = $FirewallRuleParameters.PublicAccess -split "-" + if ($Parsed.length -eq 1) { + $StartIp = $Parsed[0] + $EndIp = $Parsed[0] + } + elseif ($Parsed.length -eq 2) { + $StartIp = $Parsed[0] + $EndIp = $Parsed[1] + } + else { throw "Incorrect usage: --public-access. Acceptable values are \'all\', \'none\',\'\' and \'-\' where startIP and destinationIP ranges from 0.0.0.0 to 255.255.255.255" } + if ($StartIp -eq '0.0.0.0' -And $EndIp -eq '0.0.0.0') { + $RuleName = "AllowAllAzureServicesAndResourcesWithinAzureIps_" + $Date + $Msg = 'Configuring server firewall rule to accept connections from all Azure resources...' + } + elseif ($StartIP -eq $EndIP) { + $Msg = 'Configuring server firewall rule to accept connections from ' + $StartIP + } + else { + $Msg = 'Configuring server firewall rule to accept connections from {0} to {1}' -f $StartIP, $EndIp + $RuleName = "FirewallIPAddress_" + $Date + } + Write-Host $Msg + $FirewallRule = New-AzPostgreSqlFlexibleServerFirewallRule -Name $RuleName -ResourceGroupName $FirewallRuleParameters.ResourceGroupName -ServerName $FirewallRuleParameters.Name -EndIPAddress $EndIp -StartIPAddress $StartIp + } + return $FirewallRule.Name + } + elseif ($Parameters.ContainsKey('PublicAccess') -And $Parameters.PublicAccess.ToLower() -ne 'none') { + Write-Host "No firewall rule was set" + } + +} +function IsValidVnetId($Rid){ + $VnetFormat = "\/subscriptions\/[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}\/resourceGroups\/[-\w\._\(\)]+\/providers\/Microsoft.Network\/virtualNetworks\/[^<>%&:\\?/]{1,260}$" + if ( $Rid -match $VnetFormat ) { + return $True + } + return $False +} +function IsValidSubnetId($Rid){ + $SubnetFormat = "\/subscriptions\/[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}\/resourceGroups/[-\w\._\(\)]+\/providers\/Microsoft.Network\/virtualNetworks\/[^<>%&:\\?/]{1,260}\/subnets\/[^<>%&:\\?/]{1,260}$" + if ( $Rid -match $SubnetFormat ) { + return $True + } + return $False +} +function ParseResourceId($Rid){ + $Splits = $Rid -split "/" + $ParsedResults = @{} + if ($Splits.length -gt 1){ + $ParsedResults["SubscriptionId"] = $Splits[2] + $ParsedResults["ResourceGroupName"] = $Splits[4] + $ParsedResults["VnetName"] = $Splits[8] + if ($Splits.length -eq 11) { + $ParsedResults["SubnetName"] = $Splits[10] + } + } + return $ParsedResults +} +function IsValidRgLocation($ResourceId, $Parameters){ + $ParsedResults = ParseResourceId $ResourceId + $Group = Get-AzResourceGroup -Name $ParsedResults["ResourceGroupName"] + $ParsedResults["Location"] = $Group.Location + + if ($Parameters.SubscriptionId -eq $ParsedResults.SubscriptionId -And $Parameters.Location -eq $ParsedResults.Location) { + return $True + } + throw "Incorrect Usage : The location and subscription of the server, Vnet and Subnet should be same." +} + +function Get-RandomNumbers($Prefix, $Length) { + $Generated = "" + for($i = 0; $i -lt $Length; $i++){ $Generated += Get-Random -Maximum 10 } + return $Prefix + $Generated +} + +function Get-RandomName() { + $Noun = Get-Content -Path (Join-Path $PSScriptRoot ".\nouns.txt") | Get-Random + $Adjective = Get-Content -Path (Join-Path $PSScriptRoot ".\adjectives.txt") | Get-Random + $Number = Get-Random -Maximum 10 + $RandomName = $Adjective + (Get-Culture).TextInfo.ToTitleCase($Noun) + $Number + return $RandomName + +} + +function Get-GeneratePassword() { + $Password = '' + $Chars = 'abcdefghiklmnoprstuvwxyzABCDEFGHKLMNOPRSTUVWXYZ1234567890' + $SpecialChars = '!$%&/()=?}][{@#*+' + for ($i = 0; $i -lt 10; $i++ ) { $Password += $Chars[(Get-Random -Minimum 0 -Maximum $Chars.Length)] } + for ($i = 0; $i -lt 6; $i++ ) { $Password += $SpecialChars[(Get-Random -Minimum 0 -Maximum $SpecialChars.Length)] } + $Password = ($Password -split '' | Sort-Object {Get-Random}) -join '' + return $Password +} diff --git a/src/PostgreSql/custom/New-AzPostgreSqlFlexibleServerFirewallRule.ps1 b/src/PostgreSql/custom/New-AzPostgreSqlFlexibleServerFirewallRule.ps1 new file mode 100644 index 000000000000..7f1c53834b3c --- /dev/null +++ b/src/PostgreSql/custom/New-AzPostgreSqlFlexibleServerFirewallRule.ps1 @@ -0,0 +1,182 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a new firewall rule or updates an existing firewall rule. +.Description +Creates a new firewall rule or updates an existing firewall rule. +#> +function New-AzPostgreSqlFlexibleServerFirewallRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter()] + [Alias('FirewallRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.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)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.String] + # The end IP address of the server firewall rule. + # Must be IPv4 format. + ${EndIPAddress}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.String] + # The start IP address of the server firewall rule. + # Must be IPv4 format. + ${StartIPAddress}, + + [Parameter(ParameterSetName='ClientIPAddress', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.String] + # Client specified single IP of the server firewall rule. + # Must be IPv4 format. + ${ClientIPAddress}, + + [Parameter(ParameterSetName='AllowAll', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.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()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +process { + try { + if($PSBoundParameters.ContainsKey('AllowAll')) + { + 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') + } + elseif($PSBoundParameters.ContainsKey('ClientIPAddress')) + { + $PSBoundParameters['StartIPAddress'] = $PSBoundParameters['ClientIPAddress'] + $PSBoundParameters['EndIPAddress'] = $PSBoundParameters['ClientIPAddress'] + + if(!$PSBoundParameters.ContainsKey('Name')) + { + $PSBoundParameters['Name'] = "ClientIPAddress_" + (Get-Date -Format "yyyy-MM-dd_HH-mm-ss") + } + + $null = $PSBoundParameters.Remove('ClientIPAddress') + } + else + { + if(!$PSBoundParameters.ContainsKey('Name')) + { + $PSBoundParameters['Name'] = "undefined" + } + } + $PSBoundParameters['FirewallRuleName'] = $PSBoundParameters['Name'] + $null = $PSBoundParameters.Remove('Name') + + Az.PostgreSql.internal\New-AzPostgreSqlFlexibleServerFirewallRule @PSBoundParameters + } catch { + throw + } +} +} diff --git a/src/PostgreSql/custom/New-AzPostgreSqlServer.ps1 b/src/PostgreSql/custom/New-AzPostgreSqlServer.ps1 index 05472367c31f..5afbe95c9dc4 100644 --- a/src/PostgreSql/custom/New-AzPostgreSqlServer.ps1 +++ b/src/PostgreSql/custom/New-AzPostgreSqlServer.ps1 @@ -40,12 +40,12 @@ function New-AzPostgreSqlServer { [System.String] ${Location}, - [Parameter(Mandatory, HelpMessage = 'The location the resource resides in.')] + [Parameter(Mandatory, HelpMessage = 'Administrator username for the server. Once set, it cannot be changed.')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] [System.String] ${AdministratorUserName}, - [Parameter(Mandatory, HelpMessage = 'The location the resource resides in.')] + [Parameter(Mandatory, HelpMessage = 'The password of the administrator. Minimum 8 characters and maximum 128 characters. Password must contain characters from three of the following categories: English uppercase letters, English lowercase letters, numbers, and non-alphanumeric characters.')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] [System.Security.SecureString] [ValidateNotNullOrEmpty()] diff --git a/src/PostgreSql/custom/Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore.ps1 b/src/PostgreSql/custom/Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore.ps1 new file mode 100644 index 000000000000..459c3ecd4737 --- /dev/null +++ b/src/PostgreSql/custom/Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore.ps1 @@ -0,0 +1,130 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Restore a PostgreSQL flexible server from an existing backup +.Description +Restore a PostgreSQL flexible server from an existing backup +#> +function Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore { + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated])] + [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Description('Restore a server from an existing backup')] + param( + [Parameter(Mandatory, HelpMessage = 'The name of the server.')] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [System.String] + ${Name}, + + [Parameter(Mandatory, HelpMessage = 'The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [System.String] + ${ResourceGroupName}, + + [Parameter(HelpMessage='The subscription ID that identifies an Azure subscription.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + ${SubscriptionId}, + + [Parameter(Mandatory, HelpMessage = 'The point in time to restore from (ISO8601 format), e.g., 2017-04-26T02:10:00+08:00.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.DateTime] + ${RestorePointInTime}, + + [Parameter(Mandatory, HelpMessage = 'The location the resource resides in.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.String] + ${Location}, + + [Parameter(Mandatory, HelpMessage = 'The name of the source server.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [System.String] + ${SourceServerName}, + + [Parameter(HelpMessage = 'The credentials, account, tenant, and subscription used for communication with Azure.')] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Azure')] + [System.Management.Automation.PSObject] + ${DefaultProfile}, + + [Parameter(HelpMessage = 'Run the command as a job.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${AsJob}, + + [Parameter(DontShow, HelpMessage = 'Wait for .NET debugger to attach.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline. + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline. + ${HttpPipelinePrepend}, + + [Parameter(HelpMessage = 'Run the command asynchronously.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use. + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call. + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy. + ${ProxyUseDefaultCredentials} + ) + + process { + try { + $PSBoundParameters.CreateMode = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode]::PointInTimeRestore + + $PSBoundParameters.PointInTimeUTC = $PSBoundParameters["RestorePointInTime"] + $null = $PSBoundParameters.Remove('RestorePointInTime') + + + Az.PostgreSql.internal\New-AzPostgreSqlFlexibleServer @PSBoundParameters + } catch { + throw + } + } +} + + diff --git a/src/PostgreSql/custom/Update-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/custom/Update-AzPostgreSqlFlexibleServer.ps1 new file mode 100644 index 000000000000..f2922d730081 --- /dev/null +++ b/src/PostgreSql/custom/Update-AzPostgreSqlFlexibleServer.ps1 @@ -0,0 +1,202 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates an existing server. +The request body can contain one to many of the properties present in the normal server definition. +Use Update-AzPostSqlFlexibleServerConfiguration instead if you want update server parameters such as wait_timeout or net_retry_count. +.Description +Updates an existing server. +The request body can contain one to many of the properties present in the normal server definition. +Use Update-AzPostSqlFlexibleServerConfiguration instead if you want update server parameters such as wait_timeout or net_retry_count. +#> + +function Update-AzPostgreSqlFlexibleServer { + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutogenerated])] + [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Description('Updates an existing server. The request body can contain one to many of the properties present in the normal server definition. Use Update-AzPostgreSqlFlexibleServerConfiguration instead if you want update server parameters such as wait_timeout or net_retry_count.')] + param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory, HelpMessage='The name of the server.')] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [System.String] + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory, HelpMessage='The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [System.String] + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded', HelpMessage='The subscription ID that identifies an Azure subscription.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline, HelpMessage='Identity Parameter. To construct, see NOTES section for INPUTOBJECT properties and create a hash table.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity] + ${InputObject}, + + [Parameter(HelpMessage='The password of the administrator login.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.Security.SecureString] + ${AdministratorLoginPassword}, + + [Parameter(HelpMessage='The replication role of the server.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.String] + ${ReplicationRole}, + + [Parameter(HelpMessage='The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.String] + ${Sku}, + + [Parameter(HelpMessage='The tier of the particular SKU, e.g. Basic.')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier])] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier] + ${SkuTier}, + + [Parameter(HelpMessage='Enable or disable high availability feature.')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum] + # Enable HA or not for a server. + ${HaEnabled}, + + [Parameter(HelpMessage='Enable ssl enforcement or not when connect to server.')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum] + ${SslEnforcement}, + + [Parameter(HelpMessage='Backup retention days for the server. Day count is between 7 and 35.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.Int32] + ${BackupRetentionDay}, + + [Parameter(HelpMessage='Enable Storage Auto Grow.')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow])] + [Validateset('Enabled', 'Disabled')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow] + ${StorageAutogrow}, + + [Parameter(HelpMessage='Max storage allowed for a server.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.Int32] + ${StorageInMb}, + + [Parameter(HelpMessage='Application-specific metadata in the form of key-value pairs.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersTags]))] + [System.Collections.Hashtable] + ${Tag}, + + [Parameter(HelpMessage = 'The credentials, account, tenant, and subscription used for communication with Azure.')] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Azure')] + [System.Management.Automation.PSObject] + ${DefaultProfile}, + + [Parameter(HelpMessage = 'Run the command as a job.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${AsJob}, + + [Parameter(DontShow, HelpMessage = 'Wait for .NET debugger to attach.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline. + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline. + ${HttpPipelinePrepend}, + + [Parameter(HelpMessage = 'Run the command asynchronously.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use. + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call. + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy. + ${ProxyUseDefaultCredentials} + ) + + process { + try { + if ($PSBoundParameters.ContainsKey('AdministratorLoginPassword')) { + $bStr = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['AdministratorLoginPassword'] + $null = $PSBoundParameters.Remove('AdministratorLoginPassword') + $PSBoundParameters.Add('AdministratorLoginPassword', $bStr) + } + + if ($PSBoundParameters.ContainsKey('StorageInMb')) { + $PSBoundParameters.StorageProfileStorageMb = $PSBoundParameters['StorageInMb'] + $null = $PSBoundParameters.Remove('StorageInMb') + } + + if ($PSBoundParameters.ContainsKey('Sku')) { + $PSBoundParameters.SkuName = $PSBoundParameters['Sku'] + $null = $PSBoundParameters.Remove('Sku') + } + + if ($PSBoundParameters.ContainsKey('BackupRetentionDay')) { + $PSBoundParameters.StorageProfileBackupRetentionDay = $PSBoundParameters['BackupRetentionDay'] + $null = $PSBoundParameters.Remove('BackupRetentionDay') + } + + if ($PSBoundParameters.ContainsKey('StorageAutogrow')) { + $PSBoundParameters.StorageProfileStorageAutogrow = $PSBoundParameters['StorageAutogrow'] + $null = $PSBoundParameters.Remove('StorageAutogrow') + } + + + + Az.PostgreSql.internal\Update-AzPostgreSqlFlexibleServer @PSBoundParameters + } catch { + throw + } + } +} diff --git a/src/PostgreSql/custom/Update-AzPostgreSqlFlexibleServerConfiguration.ps1 b/src/PostgreSql/custom/Update-AzPostgreSqlFlexibleServerConfiguration.ps1 new file mode 100644 index 000000000000..7c28497ba4c7 --- /dev/null +++ b/src/PostgreSql/custom/Update-AzPostgreSqlFlexibleServerConfiguration.ps1 @@ -0,0 +1,149 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates a configuration of a server. +Use Update-AzPostgreSqlFlexibleServer instead if you want update AdministratorLoginPassword, sku, etc. +.Description +Updates a configuration of a server. +Use Update-AzPostgreSqlFlexibleServer instead if you want update AdministratorLoginPassword, sku, etc. +#> + +function Update-AzPostgreSqlFlexibleServerConfiguration { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IConfigurationAutoGenerated])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('ConfigurationName')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [System.String] + # The name of the server configuration. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.String] + # Source of the configuration. + ${Source}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.String] + # Value of the configuration. + ${Value}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + + process { + try { + if(!$PSBoundParameters.ContainsKey('Source')) + { + $PSBoundParameters.Source = 'user-override' + } + Az.PostgreSql.internal\Update-AzPostgreSqlFlexibleServerConfiguration @PSBoundParameters + } catch { + throw + } +} + +} diff --git a/src/PostgreSql/custom/Update-AzPostgreSqlFlexibleServerFirewallRule.ps1 b/src/PostgreSql/custom/Update-AzPostgreSqlFlexibleServerFirewallRule.ps1 new file mode 100644 index 000000000000..c78a72ef842b --- /dev/null +++ b/src/PostgreSql/custom/Update-AzPostgreSqlFlexibleServerFirewallRule.ps1 @@ -0,0 +1,162 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a new firewall rule or updates an existing firewall rule. +.Description +Creates a new firewall rule or updates an existing firewall rule. +#> +function Update-AzPostgreSqlFlexibleServerFirewallRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='ClientIPAddress', Mandatory)] + [Alias('FirewallRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [System.String] + # The name of the server firewall rule. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='ClientIPAddress', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='ClientIPAddress', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ClientIPAddress')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='ClientIPAddressViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.String] + # The end IP address of the server firewall rule. + # Must be IPv4 format. + ${EndIPAddress}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.String] + # The start IP address of the server firewall rule. + # Must be IPv4 format. + ${StartIPAddress}, + + [Parameter(ParameterSetName='ClientIPAddress', Mandatory)] + [Parameter(ParameterSetName='ClientIPAddressViaIdentity', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.String] + # Client specified single IP of the server firewall rule. + # Must be IPv4 format. + ${ClientIPAddress}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +process { + try { + if($PSBoundParameters.ContainsKey('ClientIPAddress')) + { + $PSBoundParameters['StartIPAddress'] = $PSBoundParameters['ClientIPAddress'] + $PSBoundParameters['EndIPAddress'] = $PSBoundParameters['ClientIPAddress'] + $null = $PSBoundParameters.Remove('ClientIPAddress') + } + Az.PostgreSql.internal\Update-AzPostgreSqlFlexibleServerFirewallRule @PSBoundParameters + } catch { + throw + } +} +} diff --git a/src/PostgreSql/custom/adjectives.txt b/src/PostgreSql/custom/adjectives.txt new file mode 100644 index 000000000000..cea08ef79731 --- /dev/null +++ b/src/PostgreSql/custom/adjectives.txt @@ -0,0 +1,166 @@ +aboard +acidic +admired +adoring +ajar +alert +amazed +amused +angry +annoyed +anxious +aquatic +ardent +ashamed +awed +best +bored +bossy +bouncy +bright +broken +bubbly +calm +cocky +cold +common +content +cranky +crass +cruel +crushed +curious +curly +cynical +dim +direful +dopey +dreary +eager +earthy +eatable +elastic +elderly +empty +enraged +entire +envious +excited +exotic +famous +fearful +fixed +fluid +formal +free +giddy +gleeful +gloomy +goofy +gross +grouchy +guilty +harsh +hateful +hopeful +hostile +hurt +impish +insane +irate +jealous +joyful +junior +kind +last +lazy +lethal +level +liquid +longing +loving +lowly +loyal +macho +mad +male +measly +medical +mellow +merry +mild +misty +moral +morbid +muddled +near +needful +needy +next +noted +obvious +overt +panicky +pensive +picky +pitiful +playful +pleased +private +prize +proud +prudent +puffy +puzzled +rabid +remote +rigid +rowdy +rundown +sad +sane +scared +seemly +selfish +serene +shocked +shoddy +shy +sincere +sinful +smug +solemn +somber +sorry +sour +speedy +starchy +stark +stingy +supreme +swanky +tenuous +third +trusty +typical +uneven +unhappy +unlined +unruly +untrue +upset +valid +venal +verdant +vibrant +violent +vulgar +wacky +weary +weekly +wistful +wornout +worried +yawning +zesty +zippy diff --git a/src/PostgreSql/custom/nouns.txt b/src/PostgreSql/custom/nouns.txt new file mode 100644 index 000000000000..8ea70f70f7a5 --- /dev/null +++ b/src/PostgreSql/custom/nouns.txt @@ -0,0 +1,138 @@ +abalone +apple +auk +avocet +baboon +badger +bagels +basmati +beaver +bittern +boars +bobcat +bongo +buffalo +bustard +cake +camel +caribou +cattle +caviar +cheese +cheetah +chile +chowder +clam +cobra +coconut +cod +colt +coot +cordial +coyote +dingo +donkey +dunbird +dunnock +eagle +eggs +eland +elk +falcon +ferret +fish +garlic +gelding +gerbil +giraffe +gnat +goose +goshawk +granola +grouse +gull +hamster +hare +hawk +hinds +hoopoe +hornet +hound +hyena +ibexe +ibis +iguana +jay +jerky +kapi +kitten +lapwing +lard +linnet +lion +lizard +llama +lollies +macaw +magpie +mare +marten +mole +moth +muesli +oatmeal +oil +opossum +orange +ostrich +owl +ox +oxbird +paella +parrot +peacock +pear +penguin +pepper +pie +plover +polenta +poultry +pudding +quiche +raccoon +raisins +redwing +relish +rice +robin +roedeer +ruffs +salami +salt +sausage +seafowl +shads +shrimp +smelt +snail +snipe +sparrow +stoat +stork +syrup +tacos +tamarin +termite +thrushe +tomatoe +toucan +truffle +turtle +venison +vulture +walrus +wasp +widgeon +wigeon +wildcat \ No newline at end of file diff --git a/src/PostgreSql/docs/Az.PostgreSql.md b/src/PostgreSql/docs/Az.PostgreSql.md index d4b5c2d4f319..81d37e4a964b 100644 --- a/src/PostgreSql/docs/Az.PostgreSql.md +++ b/src/PostgreSql/docs/Az.PostgreSql.md @@ -20,6 +20,21 @@ Get the connection string according to client connection provider. ### [Get-AzPostgreSqlFirewallRule](Get-AzPostgreSqlFirewallRule.md) Gets information about a server firewall rule. +### [Get-AzPostgreSqlFlexibleServer](Get-AzPostgreSqlFlexibleServer.md) +Gets information about a server. + +### [Get-AzPostgreSqlFlexibleServerConfiguration](Get-AzPostgreSqlFlexibleServerConfiguration.md) +Gets information about a configuration of server. + +### [Get-AzPostgreSqlFlexibleServerConnectionString](Get-AzPostgreSqlFlexibleServerConnectionString.md) +Get the connection string according to client connection provider. + +### [Get-AzPostgreSqlFlexibleServerFirewallRule](Get-AzPostgreSqlFlexibleServerFirewallRule.md) +List all the firewall rules in a given server. + +### [Get-AzPostgreSqlFlexibleServerLocationBasedCapability](Get-AzPostgreSqlFlexibleServerLocationBasedCapability.md) +Get the available SKU information for the location + ### [Get-AzPostgreSqlReplica](Get-AzPostgreSqlReplica.md) List all the replicas for a given server. @@ -32,6 +47,12 @@ Gets a virtual network rule. ### [New-AzPostgreSqlFirewallRule](New-AzPostgreSqlFirewallRule.md) Creates a new firewall rule or updates an existing firewall rule. +### [New-AzPostgreSqlFlexibleServer](New-AzPostgreSqlFlexibleServer.md) +Creates a new server. + +### [New-AzPostgreSqlFlexibleServerFirewallRule](New-AzPostgreSqlFlexibleServerFirewallRule.md) +Creates a new firewall rule or updates an existing firewall rule. + ### [New-AzPostgreSqlReplica](New-AzPostgreSqlReplica.md) Creates a new replica from an existing database. @@ -44,18 +65,36 @@ Creates or updates an existing virtual network rule. ### [Remove-AzPostgreSqlFirewallRule](Remove-AzPostgreSqlFirewallRule.md) Deletes a server firewall rule. +### [Remove-AzPostgreSqlFlexibleServer](Remove-AzPostgreSqlFlexibleServer.md) +Deletes a server. + +### [Remove-AzPostgreSqlFlexibleServerFirewallRule](Remove-AzPostgreSqlFlexibleServerFirewallRule.md) +Deletes a PostgreSQL server firewall rule. + ### [Remove-AzPostgreSqlServer](Remove-AzPostgreSqlServer.md) Deletes a server. ### [Remove-AzPostgreSqlVirtualNetworkRule](Remove-AzPostgreSqlVirtualNetworkRule.md) Deletes the virtual network rule with the given name. +### [Restart-AzPostgreSqlFlexibleServer](Restart-AzPostgreSqlFlexibleServer.md) +Restarts a server. + ### [Restart-AzPostgreSqlServer](Restart-AzPostgreSqlServer.md) Restarts a server. +### [Restore-AzPostgreSqlFlexibleServer](Restore-AzPostgreSqlFlexibleServer.md) +Restore a server from an existing backup + ### [Restore-AzPostgreSqlServer](Restore-AzPostgreSqlServer.md) Restore a server from an existing backup +### [Start-AzPostgreSqlFlexibleServer](Start-AzPostgreSqlFlexibleServer.md) +Starts a server. + +### [Stop-AzPostgreSqlFlexibleServer](Stop-AzPostgreSqlFlexibleServer.md) +Stops a server. + ### [Update-AzPostgreSqlConfiguration](Update-AzPostgreSqlConfiguration.md) Updates a configuration of a server. Use Update-AzPostgreSqlServer instead if you want update AdministratorLoginPassword, sku, etc. @@ -63,6 +102,18 @@ Use Update-AzPostgreSqlServer instead if you want update AdministratorLoginPassw ### [Update-AzPostgreSqlFirewallRule](Update-AzPostgreSqlFirewallRule.md) Creates a new firewall rule or updates an existing firewall rule. +### [Update-AzPostgreSqlFlexibleServer](Update-AzPostgreSqlFlexibleServer.md) +Updates an existing server. +The request body can contain one to many of the properties present in the normal server definition. +Use Update-AzPostgreSqlFlexibleServerConfiguration instead if you want update server parameters such as wait_timeout or net_retry_count. + +### [Update-AzPostgreSqlFlexibleServerConfiguration](Update-AzPostgreSqlFlexibleServerConfiguration.md) +Updates a configuration of a server. +Use Update-AzPostgreSqlFlexibleServer instead if you want update AdministratorLoginPassword, sku, etc. + +### [Update-AzPostgreSqlFlexibleServerFirewallRule](Update-AzPostgreSqlFlexibleServerFirewallRule.md) +Creates a new firewall rule or updates an existing firewall rule. + ### [Update-AzPostgreSqlServer](Update-AzPostgreSqlServer.md) Updates an existing server. The request body can contain one to many of the properties present in the normal server definition. diff --git a/src/PostgreSql/docs/Get-AzPostgreSqlConnectionString.md b/src/PostgreSql/docs/Get-AzPostgreSqlConnectionString.md index 1fce66e0cd96..7ad835b0f7d1 100644 --- a/src/PostgreSql/docs/Get-AzPostgreSqlConnectionString.md +++ b/src/PostgreSql/docs/Get-AzPostgreSqlConnectionString.md @@ -80,7 +80,7 @@ Accept wildcard characters: False ``` ### -InputObject -The source server object to create replica from. +The server for the connection string To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml @@ -160,9 +160,9 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT : The source server object to create replica from. - - `Location `: The location the resource resides in. - - `[Tag ]`: Application-specific metadata in the form of key-value pairs. +INPUTOBJECT : The server for the connection string + - `Location `: The geo-location where the resource lives + - `[Tag ]`: Resource tags. - `[(Any) ]`: This indicates any property can be added to this object. - `[AdministratorLogin ]`: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). - `[EarliestRestoreDate ]`: Earliest restore point creation time (ISO8601 format) diff --git a/src/PostgreSql/docs/Get-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/docs/Get-AzPostgreSqlFlexibleServer.md new file mode 100644 index 000000000000..8e525024cf26 --- /dev/null +++ b/src/PostgreSql/docs/Get-AzPostgreSqlFlexibleServer.md @@ -0,0 +1,201 @@ +--- +external help file: +Module Name: Az.PostgreSql +online version: https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserver +schema: 2.0.0 +--- + +# Get-AzPostgreSqlFlexibleServer + +## SYNOPSIS +Gets information about a server. + +## SYNTAX + +### List1 (Default) +``` +Get-AzPostgreSqlFlexibleServer [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzPostgreSqlFlexibleServer -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzPostgreSqlFlexibleServer -InputObject [-DefaultProfile ] + [] +``` + +### List +``` +Get-AzPostgreSqlFlexibleServer -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets information about a server. + +## EXAMPLES + +### Example 1: Get PostgreSql server with default context +```powershell +PS C:\> Get-AzPostgreSqlFlexibleServer + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +postgresql-test eastus postgresql-test 12 32768 Standard_D2s_v3 GeneralPurpose +``` + +This cmdlet gets PostgreSql servers with default context. + +### Example 2: Get PostgreSql server by resource group and server name +```powershell +PS C:\> Get-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +postgresql-test eastus postgresql-test 12 32768 Standard_D2s_v3 GeneralPurpose +``` + +This cmdlet gets PostgreSql servers by resource group and server name. + +### Example 3: Lists all the PostgreSql servers in specified resource group +```powershell +PS C:\> Get-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +postgresql-test eastus postgresql-test 12 32768 Standard_D2s_v3 GeneralPurpose +postgresql-test2 eastus postgresql-test 12 32768 Standard_42s_v3 GeneralPurpose +``` + +This cmdlet lists all the PostgreSql servers in the specified resource group. + +### Example 4: Get PostgreSql server by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test" +PS C:\> Get-AzPostgreSqlFlexibleServer -InputObject $ID + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +postgresql-test eastus postgresql-test 12 32768 Standard_D2s_v3 GeneralPurpose +``` + +This cmdlet lists gets PostgreSql servers by identity. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: ServerName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: Get, List, List1 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/PostgreSql/docs/Get-AzPostgreSqlFlexibleServerConfiguration.md b/src/PostgreSql/docs/Get-AzPostgreSqlFlexibleServerConfiguration.md new file mode 100644 index 000000000000..6fc88efabed9 --- /dev/null +++ b/src/PostgreSql/docs/Get-AzPostgreSqlFlexibleServerConfiguration.md @@ -0,0 +1,189 @@ +--- +external help file: +Module Name: Az.PostgreSql +online version: https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserverconfiguration +schema: 2.0.0 +--- + +# Get-AzPostgreSqlFlexibleServerConfiguration + +## SYNOPSIS +Gets information about a configuration of server. + +## SYNTAX + +### List (Default) +``` +Get-AzPostgreSqlFlexibleServerConfiguration -ResourceGroupName -ServerName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzPostgreSqlFlexibleServerConfiguration -Name -ResourceGroupName -ServerName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzPostgreSqlFlexibleServerConfiguration -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets information about a configuration of server. + +## EXAMPLES + +### Example 1: Get specified PostgreSql configuration by name +```powershell +PS C:\> Get-AzPostgreSqlFlexibleServerConfiguration -Name work_mem -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +work_mem 4096 4096 system-default 4096-2097151 Integer +``` + +This cmdlet gets specified PostgreSql configuration by name. + +### Example 2: List all configurations in specified PostgreSql server +```powershell +PS C:\> Get-AzPostgreSqlFlexibleServerConfiguration -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +application_name "" "" system-default [A-Za-z0-9._-]* String +... +pgbouncer.enabled false false system-default true, false Boolean +``` + +This cmdlet lists all configurations in specified PostgreSql server. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server configuration. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: ConfigurationName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServerName +The name of the server. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IConfigurationAutoGenerated + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/PostgreSql/docs/Get-AzPostgreSqlFlexibleServerConnectionString.md b/src/PostgreSql/docs/Get-AzPostgreSqlFlexibleServerConnectionString.md new file mode 100644 index 000000000000..99bca435b204 --- /dev/null +++ b/src/PostgreSql/docs/Get-AzPostgreSqlFlexibleServerConnectionString.md @@ -0,0 +1,190 @@ +--- +external help file: +Module Name: Az.PostgreSql +online version: https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserverconnectionstring +schema: 2.0.0 +--- + +# Get-AzPostgreSqlFlexibleServerConnectionString + +## SYNOPSIS +Get the connection string according to client connection provider. + +## SYNTAX + +### Get (Default) +``` +Get-AzPostgreSqlFlexibleServerConnectionString -Client -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzPostgreSqlFlexibleServerConnectionString -Client -InputObject + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Get the connection string according to client connection provider. + +## EXAMPLES + +### Example 1: Get connection string by name +```powershell +PS C:\> Get-AzPostgreSqlFlexibleServerConnectionString -Client ADO.NET -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test + +Server=postgresql-test.postgres.database.azure.com;Database={your_database};Port=5432;User Id=adminuser;Password={your_password}; +``` + +This cmdlet shows connection string of a client by server name. + +### Example 2: Get PostgreSql server connection string by identity +```powershell +PS C:\> Get-AzPostgreSqlFlexibleServer -ResourceGroupName PostgreSqlTestRG -ServerName PostgreSqlTestServer | Get-AzPostgreSqlFlexibleServerConnectionString -Client PHP + +host=postgresqltestserver.postgres.database.azure.com port=5432 dbname={your_database} user=pwsh password={your_password} sslmode=require +``` + +This cmdlet gets PostgreSql server connection string by identity. + +## PARAMETERS + +### -Client +Client connection provider. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +The server for the connection string +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: ServerName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription ID that identifies an Azure subscription. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated + +## OUTPUTS + +### System.String + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : The server for the connection string + - `Location `: The geo-location where the resource lives + - `[Tag ]`: Resource tags. + - `[(Any) ]`: This indicates any property can be added to this object. + - `[AdministratorLogin ]`: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). + - `[AdministratorLoginPassword ]`: The administrator login password (required for server creation). + - `[AvailabilityZone ]`: availability Zone information of the server. + - `[CreateMode ]`: The mode to create a new PostgreSQL server. + - `[DelegatedSubnetArgumentSubnetArmResourceId ]`: delegated subnet arm resource id. + - `[DisplayName ]`: The display name of a server. + - `[HaEnabled ]`: stand by count value can be either enabled or disabled + - `[IdentityType ]`: The identity type. + - `[MaintenanceWindowCustomWindow ]`: indicates whether custom window is enabled or disabled + - `[MaintenanceWindowDayOfWeek ]`: day of week for maintenance window + - `[MaintenanceWindowStartHour ]`: start hour for maintenance window + - `[MaintenanceWindowStartMinute ]`: start minute for maintenance window + - `[PointInTimeUtc ]`: Restore point creation time (ISO8601 format), specifying the time to restore from. + - `[PropertiesTag ]`: Application-specific metadata in the form of key-value pairs. + - `[(Any) ]`: This indicates any property can be added to this object. + - `[SkuName ]`: The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3. + - `[SkuTier ]`: The tier of the particular SKU, e.g. Burstable. + - `[SourceServerName ]`: The source PostgreSQL server name to restore from. + - `[StorageProfileBackupRetentionDay ]`: Backup retention days for the server. + - `[StorageProfileStorageMb ]`: Max storage allowed for a server. + - `[Version ]`: PostgreSQL Server version. + +## RELATED LINKS + diff --git a/src/PostgreSql/docs/Get-AzPostgreSqlFlexibleServerFirewallRule.md b/src/PostgreSql/docs/Get-AzPostgreSqlFlexibleServerFirewallRule.md new file mode 100644 index 000000000000..694e29c1e97e --- /dev/null +++ b/src/PostgreSql/docs/Get-AzPostgreSqlFlexibleServerFirewallRule.md @@ -0,0 +1,200 @@ +--- +external help file: +Module Name: Az.PostgreSql +online version: https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserverfirewallrule +schema: 2.0.0 +--- + +# Get-AzPostgreSqlFlexibleServerFirewallRule + +## SYNOPSIS +List all the firewall rules in a given server. + +## SYNTAX + +### List (Default) +``` +Get-AzPostgreSqlFlexibleServerFirewallRule -ResourceGroupName -ServerName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzPostgreSqlFlexibleServerFirewallRule -Name -ResourceGroupName -ServerName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzPostgreSqlFlexibleServerFirewallRule -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +List all the firewall rules in a given server. + +## EXAMPLES + +### Example 1: Get firewall rules by name +```powershell +PS C:\> Get-AzPostgreSqlFlexibleServerFirewallRule -Name firewallrule-test -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test + +FirewallRuleName StartIPAddress EndIPAddress +----------------- --------------- --------------- +firewallrule-test 12.12.12.12 23.23.23.23 +``` + +This cmdlet gets firewall rules by name. + +### Example 2: Get firewall rules by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.DBForPostgreSql/servers/postgresql-test/firewallRules/firewallrule-test" +PS C:\> Get-AzPostgreSqlFlexibleServerFirewallRule -InputObject $ID + +FirewallRuleName StartIPAddress EndIPAddress +----------------- --------------- --------------- +firewallrule-test 12.12.12.12 23.23.23.23 +``` + +This cmdlet gets firewall rules by identity. + +### Example 3: Lists all the firewall rules in the specified PostgreSql server +```powershell +PS C:\> Get-AzPostgreSqlFlexibleServerFirewallRule -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test + +FirewallRuleName StartIPAddress EndIPAddress +----------------- --------------- --------------- +firewallrule-test 12.12.12.12 23.23.23.23 +firewallrule-test2 12.12.12.15 23.23.23.25 +``` + +This cmdlet lists all the firewall rule in specified PostgreSql server. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server firewall rule. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: FirewallRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServerName +The name of the server. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/PostgreSql/docs/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.md b/src/PostgreSql/docs/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.md new file mode 100644 index 000000000000..79138d260a24 --- /dev/null +++ b/src/PostgreSql/docs/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.md @@ -0,0 +1,112 @@ +--- +external help file: +Module Name: Az.PostgreSql +online version: https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserverlocationbasedcapability +schema: 2.0.0 +--- + +# Get-AzPostgreSqlFlexibleServerLocationBasedCapability + +## SYNOPSIS +Get the available SKU information for the location + +## SYNTAX + +``` +Get-AzPostgreSqlFlexibleServerLocationBasedCapability -Location [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Get the available SKU information for the location + +## EXAMPLES + +### Example 1: Get location capabilities by location name +```powershell +PS C:\> Get-AzPostgreSqlFlexibleServerLocationBasedCapability -Location eastus + +SKU Tier Memory vCore +--- ---- ------ ----- +Standard_B1ms Burstable 2048 1 +Standard_B2s Burstable 2048 2 +Standard_D2s_v3 GeneralPurpose 4096 2 +Standard_D4s_v3 GeneralPurpose 4096 4 +Standard_D8s_v3 GeneralPurpose 4096 8 +Standard_D16s_v3 GeneralPurpose 4096 16 +Standard_D32s_v3 GeneralPurpose 4096 32 +Standard_D48s_v3 GeneralPurpose 4096 48 +Standard_D64s_v3 GeneralPurpose 4096 64 +Standard_E2s_v3 MemoryOptimized 8192 2 +Standard_E4s_v3 MemoryOptimized 8192 4 +Standard_E8s_v3 MemoryOptimized 8192 8 +Standard_E16s_v3 MemoryOptimized 8192 16 +Standard_E32s_v3 MemoryOptimized 8192 32 +Standard_E48s_v3 MemoryOptimized 8192 48 +Standard_E64s_v3 MemoryOptimized 6912 64 +``` + +This cmdlet shows basic sku information of the provided location. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The name of the location. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ICapabilityProperties + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/PostgreSql/docs/New-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/docs/New-AzPostgreSqlFlexibleServer.md new file mode 100644 index 000000000000..b382de5626fd --- /dev/null +++ b/src/PostgreSql/docs/New-AzPostgreSqlFlexibleServer.md @@ -0,0 +1,519 @@ +--- +external help file: +Module Name: Az.PostgreSql +online version: https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlflexibleserver +schema: 2.0.0 +--- + +# New-AzPostgreSqlFlexibleServer + +## SYNOPSIS +Creates a new server. + +## SYNTAX + +``` +New-AzPostgreSqlFlexibleServer [-Name ] [-ResourceGroupName ] [-SubscriptionId ] + [-AdministratorLoginPassword ] [-AdministratorUserName ] [-BackupRetentionDay ] + [-Location ] [-PublicAccess ] [-Sku ] [-SkuTier ] [-StorageInMb ] + [-Subnet ] [-SubnetPrefix ] [-Tag ] [-Version ] [-Vnet ] + [-VnetPrefix ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Creates a new server. + +## EXAMPLES + +### Example 1: Create a new PostgreSql flexible server with arguments +```powershell +PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName PowershellPostgreSqlTest \ +-Location eastus -AdministratorUserName postgresqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -Version 12 -StorageInMb 10240 -PublicAccess none + +Checking the existence of the resource group PowershellPostgreSqlTest ... +Resource group PowershellPostgreSqlTest exists ? : True +Creating MySQL server postgresql-test in group PostgreSqlTest... +Your server postgresql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +postgresql-test eastus postgresqltest 12 10240 Standard_B1ms Burstable + +``` + + + +### Example 2: Create a new PostgreSql flexible server with default setting +```powershell +PS C:\> New-AzPostgreSqlFlexibleServer + +Creating resource group group00000000... +Creating new vnet VNETserver00000000 in resource group group00000000 +Creating new subnet Subnetserver00000000 in resource group group00000000 and delegating it to Microsoft.DBforMySQL/flexibleServers +Creating MySQL server server00000000 in group group00000000... +Your server postgresql-test is using sku Standard_D2s_v3 (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +postgresql-test eastus postgresqltest 12 131072 Standard_D2s_v3 GeneralPurpose +``` + +This cmdlet creates PostgreSql flexible server with default parameter values and provision the server inside a new virtual network and have a subnet delegated to the server. +The default values of location is West US 2, Sku is Standard_D2s_v3, Sku tier is GeneralPurpose, and storage size is 128GiB. + + +If you want to find the auto-generated password for your server, use ConvertFrom-SecureString to convert 'SecuredPassword' property to plain text. +(E.g., $server.SecuredPassword | ConvertFrom-SecureString -AsPlainText) + +### Example 3: Create a new PostgreSql flexible server with virtual network +```powershell +PS C:\> $Vnet = 'vnetname' +PS C:\> New-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -Vnet $Vnet + +or + +PS C:\> $Vnet = '/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.Network/virtualNetworks/vnetname' +PS C:\> New-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -Vnet $Vnet + +Resource group PowershellPostgreSqlTest exists ? : True +You have supplied a vnet Id/name. Verifying its existence... +Creating new vnet vnetname in resource group PowershellPostgreSqlTest +Creating new subnet Subnetserver00000000 in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforMySQL/flexibleServers +Creating MySQL server server00000000 in group PowershellPostgreSqlTest... +Your server server00000000 is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details +Creating database flexibleserverdb... + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +postgresql-test eastus postgresqltest 12 131072 Standard_D2s_v3 GeneralPurpose + +``` + +This cmdlet creates PostgreSql flexible server with vnet id or vnet name provided by a user. +If the virtual network doesn't exist, the cmdlet creates one. + +### Example 4: Create a new PostgreSql flexible server with virtual network and subnet name +```powershell +PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName PowershellPostgreSqlTest -Vnet postgresql-vnet -Subnet postgresql-subnet -VnetPrefix 10.0.0.0/16 -SubnetPrefix 10.0.0.0/24 + +Resource group PowershellPostgreSqlTest exists ? : True +Creating new vnet postgresql-vnet in resource group PowershellPostgreSqlTest +Creating new subnet postgresql-subnet in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforMySQL/flexibleServers +Creating MySQL server postgresql-test in group PowershellPostgreSqlTest... +Your server postgresql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details +Creating database flexibleserverdb... + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +postgresql-test eastus postgresqltest 12 131072 Standard_D2s_v3 GeneralPurpose + +``` + +This cmdlet creates PostgreSql flexible server with vnet name, subnet name, vnet prefix, and subnet prefix. +If the virtual network and subnet don't exist, the cmdlet creates one. + +### Example 7: Create a new PostgreSql flexible server with public access to all IPs +```powershell +PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName PowershellPostgreSqlTest -PublicAccess All + +Resource group PowershellPostgreSqlTest exists ? : True +Creating MySQL server postgresql-test in group PowershellPostgreSqlTest... +Your server postgresql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details +Creating database flexibleserverdb... +Configuring server firewall rule to accept connections from 0.0.0.0 to 255.255.255.255 + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +postgresql-test eastus postgresqltest 12 131072 Standard_D2s_v3 GeneralPurpose +``` + +This cmdlet creates PostgreSql flexible server open to all IP addresses. + +### Example 8: Create a new PostgreSql flexible server with firewall +```powershell +PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName PowershellPostgreSqlTest -PublicAccess 10.10.10.10-10.10.10.12 + +Resource group PowershellPostgreSqlTest exists ? : True +Creating MySQL server postgresql-test in group PowershellPostgreSqlTest... +Your server postgresql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details +Creating database flexibleserverdb... +Configuring server firewall rule to accept connections from 10.10.10.10 to 10.10.10.12 + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +postgresql-test eastus postgresqltest 12 131072 Standard_D2s_v3 GeneralPurpose + +``` + +This cmdlet creates PostgreSql flexible server open to specified IP addresses. + +## PARAMETERS + +### -AdministratorLoginPassword +The password of the administrator. +Minimum 8 characters and maximum 128 characters. +Password must contain characters from three of the following categories: English uppercase letters, English lowercase letters, numbers, and non-alphanumeric characters. + +```yaml +Type: System.Security.SecureString +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AdministratorUserName +Administrator username for the server. +Once set, it cannot be changed. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -BackupRetentionDay +Backup retention days for the server. +Day count is between 7 and 35. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The location the resource resides in. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the server. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ServerName + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PublicAccess +Determines the public access. +Enter single or range of IP addresses to be + included in the allowed list of IPs. +IP address ranges must be dash- + separated and not contain any spaces. +Specifying 0.0.0.0 allows public + access from any resources deployed within Azure to access your server. + Specifying no IP address sets the server in public access mode but does + not create a firewall rule. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Sku +The name of the sku, typically, tier + family + cores, e.g. +Standard_B1ms, Standard_D2ds_v4. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuTier +Compute tier of the server. +Accepted values: Burstable, GeneralPurpose, Memory Optimized. +Default: Burstable. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageInMb +Max storage allowed for a server. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Subnet +The Name or Id of an existing Subnet or name of a new one to create. +Please note that the subnet will be delegated to Microsoft.DBforPostgreSQL/flexibleServers. +After delegation, this subnet cannot be used for any other type of Azure resources. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubnetPrefix +The subnet IP address prefix to use when creating a new vnet in CIDR format. +Default value is 10.0.0.0/24. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription ID that identifies an Azure subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Application-specific metadata in the form of key-value pairs. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Version +Server version. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Vnet +The Name or Id of an existing virtual network or name of a new one to create. +The name must be between 2 to 64 characters. +The name must begin with a letter or number, end with a letter, number or underscore, and may contain only letters, numbers, underscores, periods, or hyphens. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VnetPrefix +The IP address prefix to use when creating a new vnet in CIDR format. +Default value is 10.0.0.0/16. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/PostgreSql/docs/New-AzPostgreSqlFlexibleServerFirewallRule.md b/src/PostgreSql/docs/New-AzPostgreSqlFlexibleServerFirewallRule.md new file mode 100644 index 000000000000..b3459238bed5 --- /dev/null +++ b/src/PostgreSql/docs/New-AzPostgreSqlFlexibleServerFirewallRule.md @@ -0,0 +1,292 @@ +--- +external help file: +Module Name: Az.PostgreSql +online version: https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlflexibleserverfirewallrule +schema: 2.0.0 +--- + +# New-AzPostgreSqlFlexibleServerFirewallRule + +## SYNOPSIS +Creates a new firewall rule or updates an existing firewall rule. + +## SYNTAX + +### CreateExpanded (Default) +``` +New-AzPostgreSqlFlexibleServerFirewallRule -ResourceGroupName -ServerName + -EndIPAddress -StartIPAddress [-Name ] [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### AllowAll +``` +New-AzPostgreSqlFlexibleServerFirewallRule -ResourceGroupName -ServerName -AllowAll + [-Name ] [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### ClientIPAddress +``` +New-AzPostgreSqlFlexibleServerFirewallRule -ResourceGroupName -ServerName + -ClientIPAddress [-Name ] [-SubscriptionId ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates a new firewall rule or updates an existing firewall rule. + +## EXAMPLES + +### Example 1: Create a new PostgreSql server Firewall Rule +```powershell +PS C:\> New-AzPostgreSqlFlexibleServerFirewallRule -Name firewallrule-test -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 + +Name StartIPAddress EndIPAddress +----------------- -------------- ------------ +firewallrule-test 0.0.0.0 0.0.0.1 +``` + +This cmdlets create a PostgreSql server Firewall Rule. + +### Example 2: Create a new PostgreSql Firewall Rule using -ClientIPAddress. +```powershell +PS C:\> New-AzPostgreSqlFlexibleServerFirewallRule -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test -ClientIPAddress 0.0.0.1 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +ClientIPAddress_2020-08-11_18-19-27 0.0.0.1 0.0.0.1 +``` + +This cmdlets create a PostgreSql Firewall Rule using -ClientIPAddress. + +### Example 3: Create a new PostgreSql Firewall Rule to allow all IPs +```powershell +PS C:\> New-AzPostgreSqlFlexibleServerFirewallRule -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-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 PostgreSql 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 + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ClientIPAddress +Client specified single IP of the server firewall rule. +Must be IPv4 format. + +```yaml +Type: System.String +Parameter Sets: ClientIPAddress +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EndIPAddress +The end IP address of the server firewall rule. +Must be IPv4 format. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +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: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServerName +The name of the server. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StartIPAddress +The start IP address of the server firewall rule. +Must be IPv4 format. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/PostgreSql/docs/New-AzPostgreSqlReplica.md b/src/PostgreSql/docs/New-AzPostgreSqlReplica.md index 6c50ab6d579d..9177b72fc2d4 100644 --- a/src/PostgreSql/docs/New-AzPostgreSqlReplica.md +++ b/src/PostgreSql/docs/New-AzPostgreSqlReplica.md @@ -237,8 +237,8 @@ To create the parameters described below, construct a hash table containing the MASTER : The source server object to create replica from. - - `Location `: The location the resource resides in. - - `[Tag ]`: Application-specific metadata in the form of key-value pairs. + - `Location `: The geo-location where the resource lives + - `[Tag ]`: Resource tags. - `[(Any) ]`: This indicates any property can be added to this object. - `[AdministratorLogin ]`: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). - `[EarliestRestoreDate ]`: Earliest restore point creation time (ISO8601 format) diff --git a/src/PostgreSql/docs/New-AzPostgreSqlServer.md b/src/PostgreSql/docs/New-AzPostgreSqlServer.md index de951e3bb9bc..43a9828b4c43 100644 --- a/src/PostgreSql/docs/New-AzPostgreSqlServer.md +++ b/src/PostgreSql/docs/New-AzPostgreSqlServer.md @@ -40,7 +40,9 @@ These cmdlets create a new PostgreSql server. ## PARAMETERS ### -AdministratorLoginPassword -The location the resource resides in. +The password of the administrator. +Minimum 8 characters and maximum 128 characters. +Password must contain characters from three of the following categories: English uppercase letters, English lowercase letters, numbers, and non-alphanumeric characters. ```yaml Type: System.Security.SecureString @@ -55,7 +57,8 @@ Accept wildcard characters: False ``` ### -AdministratorUserName -The location the resource resides in. +Administrator username for the server. +Once set, it cannot be changed. ```yaml Type: System.String diff --git a/src/PostgreSql/docs/Remove-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/docs/Remove-AzPostgreSqlFlexibleServer.md new file mode 100644 index 000000000000..980f989bfdce --- /dev/null +++ b/src/PostgreSql/docs/Remove-AzPostgreSqlFlexibleServer.md @@ -0,0 +1,237 @@ +--- +external help file: +Module Name: Az.PostgreSql +online version: https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqlflexibleserver +schema: 2.0.0 +--- + +# Remove-AzPostgreSqlFlexibleServer + +## SYNOPSIS +Deletes a server. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzPostgreSqlFlexibleServer -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzPostgreSqlFlexibleServer -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a server. + +## EXAMPLES + +### Example 1: Remove PostgreSql server by resourceGroup and server name +```powershell +PS C:\> Remove-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test + +``` + +This cmdlet removes PostgreSql server by resourceGroup and server name. + +### Example 2: Remove PostgreSql server by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test" +PS C:\> Remove-AzPostgreSqlFlexibleServer -InputObject $ID + +``` + +These cmdlets remove PostgreSql server by identity. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: ServerName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/PostgreSql/docs/Remove-AzPostgreSqlFlexibleServerFirewallRule.md b/src/PostgreSql/docs/Remove-AzPostgreSqlFlexibleServerFirewallRule.md new file mode 100644 index 000000000000..213b447c33d5 --- /dev/null +++ b/src/PostgreSql/docs/Remove-AzPostgreSqlFlexibleServerFirewallRule.md @@ -0,0 +1,253 @@ +--- +external help file: +Module Name: Az.PostgreSql +online version: https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqlflexibleserverfirewallrule +schema: 2.0.0 +--- + +# Remove-AzPostgreSqlFlexibleServerFirewallRule + +## SYNOPSIS +Deletes a PostgreSQL server firewall rule. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzPostgreSqlFlexibleServerFirewallRule -Name -ResourceGroupName -ServerName + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### DeleteViaIdentity +``` +Remove-AzPostgreSqlFlexibleServerFirewallRule -InputObject [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a PostgreSQL server firewall rule. + +## EXAMPLES + +### Example 1: Remove PostgreSql Firewall Rule by name +```powershell +PS C:\> Remove-AzPostgreSqlFlexibleServerFirewallRule -Name firewall-rule-test -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test + +``` + +This cmdlet removes PostgreSql Firewall Rule by name. + +### Example 2: Remove PostgreSql Firewall Rule by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test/firewallRules/firewall-rule-test" +PS C:\> Remove-AzPostgreSqlFlexibleServerFirewallRule -InputObject $ID + +``` + +These cmdlets remove PostgreSql Firewall Rule by identity. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server firewall rule. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: FirewallRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServerName +The name of the server. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/PostgreSql/docs/Restart-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/docs/Restart-AzPostgreSqlFlexibleServer.md new file mode 100644 index 000000000000..8d0c7907c591 --- /dev/null +++ b/src/PostgreSql/docs/Restart-AzPostgreSqlFlexibleServer.md @@ -0,0 +1,235 @@ +--- +external help file: +Module Name: Az.PostgreSql +online version: https://docs.microsoft.com/en-us/powershell/module/az.postgresql/restart-azpostgresqlflexibleserver +schema: 2.0.0 +--- + +# Restart-AzPostgreSqlFlexibleServer + +## SYNOPSIS +Restarts a server. + +## SYNTAX + +### Restart (Default) +``` +Restart-AzPostgreSqlFlexibleServer -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### RestartViaIdentity +``` +Restart-AzPostgreSqlFlexibleServer -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Restarts a server. + +## EXAMPLES + +### Example 1: Restart the server by resource name +```powershell +PS C:\> Restart-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test +``` + +Restart the server by name + +### Example 2: Restart the server by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test/restart" +PS C:\> Restart-AzPostgreSqlFlexibleServer -InputObject $ID +``` + +Restart the server by identity + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: RestartViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server. + +```yaml +Type: System.String +Parameter Sets: Restart +Aliases: ServerName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Restart +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: Restart +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/PostgreSql/docs/Restore-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/docs/Restore-AzPostgreSqlFlexibleServer.md new file mode 100644 index 000000000000..fd36f82f428f --- /dev/null +++ b/src/PostgreSql/docs/Restore-AzPostgreSqlFlexibleServer.md @@ -0,0 +1,220 @@ +--- +external help file: +Module Name: Az.PostgreSql +online version: https://docs.microsoft.com/en-us/powershell/module/az.postgresql/restore-azpostgresqlflexibleserver +schema: 2.0.0 +--- + +# Restore-AzPostgreSqlFlexibleServer + +## SYNOPSIS +Restore a PostgreSQL flexible server from an existing backup + +## SYNTAX + +``` +Restore-AzPostgreSqlFlexibleServer -Name -ResourceGroupName -SourceServerName + -Location -RestorePointInTime [-SubscriptionId ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Restore a server from an existing backup + +## EXAMPLES + +### Example 1: Restore PostgreSql server using PointInTime Restore +```powershell +PS C:\> $restorePointInTime = (Get-Date).AddMinutes(-10) +PS C:\> Restore-AzPostgreSqlFlexibleServer -Name pg-restore -ResourceGroupName PowershellPostgreSqlTest -SourceServerName postgresql-test -Location eastus -RestorePointInTime $restorePointInTime + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +pg-restore eastus postgresql_test 12 131072 Standard_D2s_v3 GeneralPurpose +``` + +These cmdlets restore PostgreSql server using PointInTime Restore. + +## PARAMETERS + +### -AsJob +Run the command as a job. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The location the resource resides in. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the server. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ServerName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RestorePointInTime +The point in time to restore from (ISO8601 format), e.g., 2017-04-26T02:10:00+08:00. + +```yaml +Type: System.DateTime +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SourceServerName +The name of the source server. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription ID that identifies an Azure subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/PostgreSql/docs/Restore-AzPostgreSqlServer.md b/src/PostgreSql/docs/Restore-AzPostgreSqlServer.md index 30f9aa4f991e..1c42f5018e4c 100644 --- a/src/PostgreSql/docs/Restore-AzPostgreSqlServer.md +++ b/src/PostgreSql/docs/Restore-AzPostgreSqlServer.md @@ -306,8 +306,8 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : The source server object to restore from. - - `Location `: The location the resource resides in. - - `[Tag ]`: Application-specific metadata in the form of key-value pairs. + - `Location `: The geo-location where the resource lives + - `[Tag ]`: Resource tags. - `[(Any) ]`: This indicates any property can be added to this object. - `[AdministratorLogin ]`: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). - `[EarliestRestoreDate ]`: Earliest restore point creation time (ISO8601 format) diff --git a/src/PostgreSql/docs/Start-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/docs/Start-AzPostgreSqlFlexibleServer.md new file mode 100644 index 000000000000..2be41554b879 --- /dev/null +++ b/src/PostgreSql/docs/Start-AzPostgreSqlFlexibleServer.md @@ -0,0 +1,235 @@ +--- +external help file: +Module Name: Az.PostgreSql +online version: https://docs.microsoft.com/en-us/powershell/module/az.postgresql/start-azpostgresqlflexibleserver +schema: 2.0.0 +--- + +# Start-AzPostgreSqlFlexibleServer + +## SYNOPSIS +Starts a server. + +## SYNTAX + +### Start (Default) +``` +Start-AzPostgreSqlFlexibleServer -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### StartViaIdentity +``` +Start-AzPostgreSqlFlexibleServer -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Starts a server. + +## EXAMPLES + +### Example 1: Start the server by resource name +```powershell +PS C:\> Start-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test +``` + +Start the server by name + +### Example 2: Start the server by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test/start" +PS C:\> Start-AzPostgreSqlFlexibleServer -InputObject $ID +``` + +Start the server by identity + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: StartViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server. + +```yaml +Type: System.String +Parameter Sets: Start +Aliases: ServerName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Start +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: Start +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/PostgreSql/docs/Stop-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/docs/Stop-AzPostgreSqlFlexibleServer.md new file mode 100644 index 000000000000..3477ea89ad90 --- /dev/null +++ b/src/PostgreSql/docs/Stop-AzPostgreSqlFlexibleServer.md @@ -0,0 +1,235 @@ +--- +external help file: +Module Name: Az.PostgreSql +online version: https://docs.microsoft.com/en-us/powershell/module/az.postgresql/stop-azpostgresqlflexibleserver +schema: 2.0.0 +--- + +# Stop-AzPostgreSqlFlexibleServer + +## SYNOPSIS +Stops a server. + +## SYNTAX + +### Stop (Default) +``` +Stop-AzPostgreSqlFlexibleServer -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### StopViaIdentity +``` +Stop-AzPostgreSqlFlexibleServer -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Stops a server. + +## EXAMPLES + +### Example 1: Stop the server by resource name +```powershell +PS C:\> Stop-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test +``` + +Stop the server by name + +### Example 2: Stop the server by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test/stop" +PS C:\> Stop-AzPostgreSqlFlexibleServer -InputObject $ID +``` + +Stop the server by identity + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: StopViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server. + +```yaml +Type: System.String +Parameter Sets: Stop +Aliases: ServerName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Stop +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: Stop +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/PostgreSql/docs/Update-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/docs/Update-AzPostgreSqlFlexibleServer.md new file mode 100644 index 000000000000..f40501259d76 --- /dev/null +++ b/src/PostgreSql/docs/Update-AzPostgreSqlFlexibleServer.md @@ -0,0 +1,390 @@ +--- +external help file: +Module Name: Az.PostgreSql +online version: https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlflexibleserver +schema: 2.0.0 +--- + +# Update-AzPostgreSqlFlexibleServer + +## SYNOPSIS +Updates an existing server. +The request body can contain one to many of the properties present in the normal server definition. +Use Update-AzPostSqlFlexibleServerConfiguration instead if you want update server parameters such as wait_timeout or net_retry_count. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzPostgreSqlFlexibleServer -Name -ResourceGroupName [-SubscriptionId ] + [-AdministratorLoginPassword ] [-BackupRetentionDay ] [-HaEnabled ] + [-ReplicationRole ] [-Sku ] [-SkuTier ] [-SslEnforcement ] + [-StorageAutogrow ] [-StorageInMb ] [-Tag ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzPostgreSqlFlexibleServer -InputObject + [-AdministratorLoginPassword ] [-BackupRetentionDay ] [-HaEnabled ] + [-ReplicationRole ] [-Sku ] [-SkuTier ] [-SslEnforcement ] + [-StorageAutogrow ] [-StorageInMb ] [-Tag ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates an existing server. +The request body can contain one to many of the properties present in the normal server definition. +Use Update-AzPostgreSqlFlexibleServerConfiguration instead if you want update server parameters such as wait_timeout or net_retry_count. + +## EXAMPLES + +### Example 1: Update PostgreSql server by resource group and server name +```powershell +PS C:\> Update-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test -Sku Standard_D4s_v3 + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +postgresql-test eastus postgresql_test 12 131072 Standard_D4s_v3 GeneralPurpose +``` + +This cmdlet updates PostgreSql server by resource group and server name. + +### Example 2: Update PostgreSql server by identity. +```powershell +PS C:\> Get-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test | Update-AzPostgreSqlFlexibleServer -BackupRetentionDay 23 -StorageMb 10240 + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +postgresql-test eastus postgresql_test 12 131072 Standard_D2s_v3 GeneralPurpose +``` + +This cmdlet updates PostgreSql server by identity. + +## PARAMETERS + +### -AdministratorLoginPassword +The password of the administrator login. + +```yaml +Type: System.Security.SecureString +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -BackupRetentionDay +Backup retention days for the server. +Day count is between 7 and 35. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -HaEnabled +Enable or disable high availability feature. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter. +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: ServerName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReplicationRole +The replication role of the server. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group that contains the resource. +You can obtain this value from the Azure Resource Manager API or the portal. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Sku +The name of the sku, typically, tier + family + cores, e.g. +B_Gen4_1, GP_Gen5_8. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuTier +The tier of the particular SKU, e.g. +Basic. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SslEnforcement +Enable ssl enforcement or not when connect to server. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageAutogrow +Enable Storage Auto Grow. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageInMb +Max storage allowed for a server. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription ID that identifies an Azure subscription. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Application-specific metadata in the form of key-value pairs. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter. + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/PostgreSql/docs/Update-AzPostgreSqlFlexibleServerConfiguration.md b/src/PostgreSql/docs/Update-AzPostgreSqlFlexibleServerConfiguration.md new file mode 100644 index 000000000000..0693c63c1e0c --- /dev/null +++ b/src/PostgreSql/docs/Update-AzPostgreSqlFlexibleServerConfiguration.md @@ -0,0 +1,276 @@ +--- +external help file: +Module Name: Az.PostgreSql +online version: https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlflexibleserverconfiguration +schema: 2.0.0 +--- + +# Update-AzPostgreSqlFlexibleServerConfiguration + +## SYNOPSIS +Updates a configuration of a server. +Use Update-AzPostgreSqlFlexibleServer instead if you want update AdministratorLoginPassword, sku, etc. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzPostgreSqlFlexibleServerConfiguration -Name -ResourceGroupName -ServerName + [-SubscriptionId ] [-Source ] [-Value ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzPostgreSqlFlexibleServerConfiguration -InputObject [-Source ] + [-Value ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates a configuration of a server. +Use Update-AzPostgreSqlFlexibleServer instead if you want update AdministratorLoginPassword, sku, etc. + +## EXAMPLES + +### Example 1: Updatae specified PostgreSql configuration by name +```powershell +PS C:\> Update-AzPostgreSqlFlexibleServerConfiguration -Name work_mem -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test -Value 8192 + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +work_mem 8192 4096 system-default 4096-2097151 Integer +``` + +This cmdlet updates specified PostgreSql configuration by name. + +### Example 1: Updatae specified PostgreSql configuration by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test/configurations/work_mem" +PS C:\> Get-AzPostgreSqlFlexibleServerConfiguration -Name work_mem -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test -Value 8192 + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +work_mem 8192 4096 system-default 4096-2097151 Integer +``` + +This cmdlet updates specified PostgreSql configuration by identity. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server configuration. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: ConfigurationName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServerName +The name of the server. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Source +Source of the configuration. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Value +Value of the configuration. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IConfigurationAutoGenerated + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/PostgreSql/docs/Update-AzPostgreSqlFlexibleServerFirewallRule.md b/src/PostgreSql/docs/Update-AzPostgreSqlFlexibleServerFirewallRule.md new file mode 100644 index 000000000000..c4affbf09084 --- /dev/null +++ b/src/PostgreSql/docs/Update-AzPostgreSqlFlexibleServerFirewallRule.md @@ -0,0 +1,306 @@ +--- +external help file: +Module Name: Az.PostgreSql +online version: https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlflexibleserverfirewallrule +schema: 2.0.0 +--- + +# Update-AzPostgreSqlFlexibleServerFirewallRule + +## SYNOPSIS +Creates a new firewall rule or updates an existing firewall rule. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzPostgreSqlFlexibleServerFirewallRule -Name -ResourceGroupName -ServerName + -EndIPAddress -StartIPAddress [-SubscriptionId ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### ClientIPAddress +``` +Update-AzPostgreSqlFlexibleServerFirewallRule -Name -ResourceGroupName -ServerName + -ClientIPAddress [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +### ClientIPAddressViaIdentity +``` +Update-AzPostgreSqlFlexibleServerFirewallRule -InputObject -ClientIPAddress + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzPostgreSqlFlexibleServerFirewallRule -InputObject -EndIPAddress + -StartIPAddress [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Creates a new firewall rule or updates an existing firewall rule. + +## EXAMPLES + +### Example 1: Update PostgreSql Firewall Rule by name +```powershell +PS C:\> Update-AzPostgreSqlFlexibleServerFirewallRule -Name rule -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.2 0.0.0.3 +``` + +This cmdlet updates PostgreSql Firewall Rule by name. + +### Example 2: Update PostgreSql Firewall Rule by identity. +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test/firewallRules/rule" +PS C:\> Update-AzPostgreSqlFlexibleServerFirewallRule -InputObject $ID -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.2 0.0.0.3 +``` + +These cmdlets update PostgreSql Firewall Rule by identity. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ClientIPAddress +Client specified single IP of the server firewall rule. +Must be IPv4 format. + +```yaml +Type: System.String +Parameter Sets: ClientIPAddress, ClientIPAddressViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EndIPAddress +The end IP address of the server firewall rule. +Must be IPv4 format. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: ClientIPAddressViaIdentity, UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server firewall rule. + +```yaml +Type: System.String +Parameter Sets: ClientIPAddress, UpdateExpanded +Aliases: FirewallRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: ClientIPAddress, UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServerName +The name of the server. + +```yaml +Type: System.String +Parameter Sets: ClientIPAddress, UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StartIPAddress +The start IP address of the server firewall rule. +Must be IPv4 format. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: ClientIPAddress, UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/PostgreSql/examples/Get-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/examples/Get-AzPostgreSqlFlexibleServer.md new file mode 100644 index 000000000000..9b2701c77a79 --- /dev/null +++ b/src/PostgreSql/examples/Get-AzPostgreSqlFlexibleServer.md @@ -0,0 +1,45 @@ +### Example 1: Get PostgreSql server with default context +```powershell +PS C:\> Get-AzPostgreSqlFlexibleServer + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +postgresql-test eastus postgresql-test 12 32768 Standard_D2s_v3 GeneralPurpose +``` + +This cmdlet gets PostgreSql servers with default context. + +### Example 2: Get PostgreSql server by resource group and server name +```powershell +PS C:\> Get-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +postgresql-test eastus postgresql-test 12 32768 Standard_D2s_v3 GeneralPurpose +``` + +This cmdlet gets PostgreSql servers by resource group and server name. + +### Example 3: Lists all the PostgreSql servers in specified resource group +```powershell +PS C:\> Get-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +postgresql-test eastus postgresql-test 12 32768 Standard_D2s_v3 GeneralPurpose +postgresql-test2 eastus postgresql-test 12 32768 Standard_42s_v3 GeneralPurpose +``` + +This cmdlet lists all the PostgreSql servers in the specified resource group. + +### Example 4: Get PostgreSql server by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test" +PS C:\> Get-AzPostgreSqlFlexibleServer -InputObject $ID + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +postgresql-test eastus postgresql-test 12 32768 Standard_D2s_v3 GeneralPurpose +``` + +This cmdlet lists gets PostgreSql servers by identity. \ No newline at end of file diff --git a/src/PostgreSql/examples/Get-AzPostgreSqlFlexibleServerConfiguration.md b/src/PostgreSql/examples/Get-AzPostgreSqlFlexibleServerConfiguration.md new file mode 100644 index 000000000000..52dd00dde7ba --- /dev/null +++ b/src/PostgreSql/examples/Get-AzPostgreSqlFlexibleServerConfiguration.md @@ -0,0 +1,23 @@ +### Example 1: Get specified PostgreSql configuration by name +```powershell +PS C:\> Get-AzPostgreSqlFlexibleServerConfiguration -Name work_mem -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +work_mem 4096 4096 system-default 4096-2097151 Integer +``` + +This cmdlet gets specified PostgreSql configuration by name. + +### Example 2: List all configurations in specified PostgreSql server +```powershell +PS C:\> Get-AzPostgreSqlFlexibleServerConfiguration -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +application_name "" "" system-default [A-Za-z0-9._-]* String +... +pgbouncer.enabled false false system-default true, false Boolean +``` + +This cmdlet lists all configurations in specified PostgreSql server. \ No newline at end of file diff --git a/src/PostgreSql/examples/Get-AzPostgreSqlFlexibleServerConnectionString.md b/src/PostgreSql/examples/Get-AzPostgreSqlFlexibleServerConnectionString.md new file mode 100644 index 000000000000..d25d327c6dea --- /dev/null +++ b/src/PostgreSql/examples/Get-AzPostgreSqlFlexibleServerConnectionString.md @@ -0,0 +1,17 @@ +### Example 1: Get connection string by name +```powershell +PS C:\> Get-AzPostgreSqlFlexibleServerConnectionString -Client ADO.NET -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test + +Server=postgresql-test.postgres.database.azure.com;Database={your_database};Port=5432;User Id=adminuser;Password={your_password}; +``` + +This cmdlet shows connection string of a client by server name. + +### Example 2: Get PostgreSql server connection string by identity +```powershell +PS C:\> Get-AzPostgreSqlFlexibleServer -ResourceGroupName PostgreSqlTestRG -ServerName PostgreSqlTestServer | Get-AzPostgreSqlFlexibleServerConnectionString -Client PHP + +host=postgresqltestserver.postgres.database.azure.com port=5432 dbname={your_database} user=pwsh password={your_password} sslmode=require +``` + +This cmdlet gets PostgreSql server connection string by identity. \ No newline at end of file diff --git a/src/PostgreSql/examples/Get-AzPostgreSqlFlexibleServerFirewallRule.md b/src/PostgreSql/examples/Get-AzPostgreSqlFlexibleServerFirewallRule.md new file mode 100644 index 000000000000..9cd911b7a278 --- /dev/null +++ b/src/PostgreSql/examples/Get-AzPostgreSqlFlexibleServerFirewallRule.md @@ -0,0 +1,34 @@ +### Example 1: Get firewall rules by name +```powershell +PS C:\> Get-AzPostgreSqlFlexibleServerFirewallRule -Name firewallrule-test -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test + +FirewallRuleName StartIPAddress EndIPAddress +----------------- --------------- --------------- +firewallrule-test 12.12.12.12 23.23.23.23 +``` + +This cmdlet gets firewall rules by name. + +### Example 2: Get firewall rules by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.DBForPostgreSql/servers/postgresql-test/firewallRules/firewallrule-test" +PS C:\> Get-AzPostgreSqlFlexibleServerFirewallRule -InputObject $ID + +FirewallRuleName StartIPAddress EndIPAddress +----------------- --------------- --------------- +firewallrule-test 12.12.12.12 23.23.23.23 +``` + +This cmdlet gets firewall rules by identity. + +### Example 3: Lists all the firewall rules in the specified PostgreSql server +```powershell +PS C:\> Get-AzPostgreSqlFlexibleServerFirewallRule -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test + +FirewallRuleName StartIPAddress EndIPAddress +----------------- --------------- --------------- +firewallrule-test 12.12.12.12 23.23.23.23 +firewallrule-test2 12.12.12.15 23.23.23.25 +``` + +This cmdlet lists all the firewall rule in specified PostgreSql server. \ No newline at end of file diff --git a/src/PostgreSql/examples/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.md b/src/PostgreSql/examples/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.md new file mode 100644 index 000000000000..f3b3b530095a --- /dev/null +++ b/src/PostgreSql/examples/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.md @@ -0,0 +1,24 @@ +### Example 1: Get location capabilities by location name +```powershell +PS C:\> Get-AzPostgreSqlFlexibleServerLocationBasedCapability -Location eastus + +SKU Tier Memory vCore +--- ---- ------ ----- +Standard_B1ms Burstable 2048 1 +Standard_B2s Burstable 2048 2 +Standard_D2s_v3 GeneralPurpose 4096 2 +Standard_D4s_v3 GeneralPurpose 4096 4 +Standard_D8s_v3 GeneralPurpose 4096 8 +Standard_D16s_v3 GeneralPurpose 4096 16 +Standard_D32s_v3 GeneralPurpose 4096 32 +Standard_D48s_v3 GeneralPurpose 4096 48 +Standard_D64s_v3 GeneralPurpose 4096 64 +Standard_E2s_v3 MemoryOptimized 8192 2 +Standard_E4s_v3 MemoryOptimized 8192 4 +Standard_E8s_v3 MemoryOptimized 8192 8 +Standard_E16s_v3 MemoryOptimized 8192 16 +Standard_E32s_v3 MemoryOptimized 8192 32 +Standard_E48s_v3 MemoryOptimized 8192 48 +Standard_E64s_v3 MemoryOptimized 6912 64 +``` +This cmdlet shows basic sku information of the provided location. \ No newline at end of file diff --git a/src/PostgreSql/examples/New-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/examples/New-AzPostgreSqlFlexibleServer.md new file mode 100644 index 000000000000..9f263fed862a --- /dev/null +++ b/src/PostgreSql/examples/New-AzPostgreSqlFlexibleServer.md @@ -0,0 +1,110 @@ +### Example 1: Create a new PostgreSql flexible server with arguments +```powershell +PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName PowershellPostgreSqlTest \ +-Location eastus -AdministratorUserName postgresqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -Version 12 -StorageInMb 10240 -PublicAccess none + +Checking the existence of the resource group PowershellPostgreSqlTest ... +Resource group PowershellPostgreSqlTest exists ? : True +Creating MySQL server postgresql-test in group PostgreSqlTest... +Your server postgresql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +postgresql-test eastus postgresqltest 12 10240 Standard_B1ms Burstable + +``` + + +### Example 2: Create a new PostgreSql flexible server with default setting +```powershell +PS C:\> New-AzPostgreSqlFlexibleServer + +Creating resource group group00000000... +Creating new vnet VNETserver00000000 in resource group group00000000 +Creating new subnet Subnetserver00000000 in resource group group00000000 and delegating it to Microsoft.DBforMySQL/flexibleServers +Creating MySQL server server00000000 in group group00000000... +Your server postgresql-test is using sku Standard_D2s_v3 (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +postgresql-test eastus postgresqltest 12 131072 Standard_D2s_v3 GeneralPurpose +``` +This cmdlet creates PostgreSql flexible server with default parameter values and provision the server inside a new virtual network and have a subnet delegated to the server. The default values of location is West US 2, Sku is Standard_D2s_v3, Sku tier is GeneralPurpose, and storage size is 128GiB. + +If you want to find the auto-generated password for your server, use ConvertFrom-SecureString to convert 'SecuredPassword' property to plain text. (E.g., $server.SecuredPassword | ConvertFrom-SecureString -AsPlainText) + +### Example 3: Create a new PostgreSql flexible server with virtual network +```powershell +PS C:\> $Vnet = 'vnetname' +PS C:\> New-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -Vnet $Vnet + +or + +PS C:\> $Vnet = '/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.Network/virtualNetworks/vnetname' +PS C:\> New-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -Vnet $Vnet + +Resource group PowershellPostgreSqlTest exists ? : True +You have supplied a vnet Id/name. Verifying its existence... +Creating new vnet vnetname in resource group PowershellPostgreSqlTest +Creating new subnet Subnetserver00000000 in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforMySQL/flexibleServers +Creating MySQL server server00000000 in group PowershellPostgreSqlTest... +Your server server00000000 is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details +Creating database flexibleserverdb... + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +postgresql-test eastus postgresqltest 12 131072 Standard_D2s_v3 GeneralPurpose + +``` +This cmdlet creates PostgreSql flexible server with vnet id or vnet name provided by a user. If the virtual network doesn't exist, the cmdlet creates one. + +### Example 4: Create a new PostgreSql flexible server with virtual network and subnet name +```powershell +PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName PowershellPostgreSqlTest -Vnet postgresql-vnet -Subnet postgresql-subnet -VnetPrefix 10.0.0.0/16 -SubnetPrefix 10.0.0.0/24 + +Resource group PowershellPostgreSqlTest exists ? : True +Creating new vnet postgresql-vnet in resource group PowershellPostgreSqlTest +Creating new subnet postgresql-subnet in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforMySQL/flexibleServers +Creating MySQL server postgresql-test in group PowershellPostgreSqlTest... +Your server postgresql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details +Creating database flexibleserverdb... + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +postgresql-test eastus postgresqltest 12 131072 Standard_D2s_v3 GeneralPurpose + +``` +This cmdlet creates PostgreSql flexible server with vnet name, subnet name, vnet prefix, and subnet prefix. If the virtual network and subnet don't exist, the cmdlet creates one. + +### Example 7: Create a new PostgreSql flexible server with public access to all IPs +```powershell +PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName PowershellPostgreSqlTest -PublicAccess All + +Resource group PowershellPostgreSqlTest exists ? : True +Creating MySQL server postgresql-test in group PowershellPostgreSqlTest... +Your server postgresql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details +Creating database flexibleserverdb... +Configuring server firewall rule to accept connections from 0.0.0.0 to 255.255.255.255 + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +postgresql-test eastus postgresqltest 12 131072 Standard_D2s_v3 GeneralPurpose +``` +This cmdlet creates PostgreSql flexible server open to all IP addresses. + +### Example 8: Create a new PostgreSql flexible server with firewall +```powershell +PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName PowershellPostgreSqlTest -PublicAccess 10.10.10.10-10.10.10.12 + +Resource group PowershellPostgreSqlTest exists ? : True +Creating MySQL server postgresql-test in group PowershellPostgreSqlTest... +Your server postgresql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details +Creating database flexibleserverdb... +Configuring server firewall rule to accept connections from 10.10.10.10 to 10.10.10.12 + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +postgresql-test eastus postgresqltest 12 131072 Standard_D2s_v3 GeneralPurpose + +``` +This cmdlet creates PostgreSql flexible server open to specified IP addresses. diff --git a/src/PostgreSql/examples/New-AzPostgreSqlFlexibleServerFirewallRule.md b/src/PostgreSql/examples/New-AzPostgreSqlFlexibleServerFirewallRule.md new file mode 100644 index 000000000000..1d545d9f9a49 --- /dev/null +++ b/src/PostgreSql/examples/New-AzPostgreSqlFlexibleServerFirewallRule.md @@ -0,0 +1,33 @@ +### Example 1: Create a new PostgreSql server Firewall Rule +```powershell +PS C:\> New-AzPostgreSqlFlexibleServerFirewallRule -Name firewallrule-test -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 + +Name StartIPAddress EndIPAddress +----------------- -------------- ------------ +firewallrule-test 0.0.0.0 0.0.0.1 +``` + +This cmdlets create a PostgreSql server Firewall Rule. + + +### Example 2: Create a new PostgreSql Firewall Rule using -ClientIPAddress. +```powershell +PS C:\> New-AzPostgreSqlFlexibleServerFirewallRule -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test -ClientIPAddress 0.0.0.1 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +ClientIPAddress_2020-08-11_18-19-27 0.0.0.1 0.0.0.1 +``` + +This cmdlets create a PostgreSql Firewall Rule using -ClientIPAddress. + +### Example 3: Create a new PostgreSql Firewall Rule to allow all IPs +```powershell +PS C:\> New-AzPostgreSqlFlexibleServerFirewallRule -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-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 PostgreSql Firewall Rule to allow all IPs. \ No newline at end of file diff --git a/src/PostgreSql/examples/Remove-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/examples/Remove-AzPostgreSqlFlexibleServer.md new file mode 100644 index 000000000000..23bdd0977c95 --- /dev/null +++ b/src/PostgreSql/examples/Remove-AzPostgreSqlFlexibleServer.md @@ -0,0 +1,16 @@ +### Example 1: Remove PostgreSql server by resourceGroup and server name +```powershell +PS C:\> Remove-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test + +``` + +This cmdlet removes PostgreSql server by resourceGroup and server name. + +### Example 2: Remove PostgreSql server by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test" +PS C:\> Remove-AzPostgreSqlFlexibleServer -InputObject $ID + +``` + +These cmdlets remove PostgreSql server by identity. \ No newline at end of file diff --git a/src/PostgreSql/examples/Remove-AzPostgreSqlFlexibleServerFirewallRule.md b/src/PostgreSql/examples/Remove-AzPostgreSqlFlexibleServerFirewallRule.md new file mode 100644 index 000000000000..674198427a43 --- /dev/null +++ b/src/PostgreSql/examples/Remove-AzPostgreSqlFlexibleServerFirewallRule.md @@ -0,0 +1,16 @@ +### Example 1: Remove PostgreSql Firewall Rule by name +```powershell +PS C:\> Remove-AzPostgreSqlFlexibleServerFirewallRule -Name firewall-rule-test -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test + +``` + +This cmdlet removes PostgreSql Firewall Rule by name. + +### Example 2: Remove PostgreSql Firewall Rule by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test/firewallRules/firewall-rule-test" +PS C:\> Remove-AzPostgreSqlFlexibleServerFirewallRule -InputObject $ID + +``` + +These cmdlets remove PostgreSql Firewall Rule by identity. diff --git a/src/PostgreSql/examples/Restart-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/examples/Restart-AzPostgreSqlFlexibleServer.md new file mode 100644 index 000000000000..49735b12ee92 --- /dev/null +++ b/src/PostgreSql/examples/Restart-AzPostgreSqlFlexibleServer.md @@ -0,0 +1,14 @@ +### Example 1: Restart the server by resource name +```powershell +PS C:\> Restart-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test +``` + +Restart the server by name + +### Example 2: Restart the server by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test/restart" +PS C:\> Restart-AzPostgreSqlFlexibleServer -InputObject $ID +``` + +Restart the server by identity diff --git a/src/PostgreSql/examples/Restore-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/examples/Restore-AzPostgreSqlFlexibleServer.md new file mode 100644 index 000000000000..17fcfe0a8ce2 --- /dev/null +++ b/src/PostgreSql/examples/Restore-AzPostgreSqlFlexibleServer.md @@ -0,0 +1,11 @@ +### Example 1: Restore PostgreSql server using PointInTime Restore +```powershell +PS C:\> $restorePointInTime = (Get-Date).AddMinutes(-10) +PS C:\> Restore-AzPostgreSqlFlexibleServer -Name pg-restore -ResourceGroupName PowershellPostgreSqlTest -SourceServerName postgresql-test -Location eastus -RestorePointInTime $restorePointInTime + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +pg-restore eastus postgresql_test 12 131072 Standard_D2s_v3 GeneralPurpose +``` + +These cmdlets restore PostgreSql server using PointInTime Restore. diff --git a/src/PostgreSql/examples/Start-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/examples/Start-AzPostgreSqlFlexibleServer.md new file mode 100644 index 000000000000..aa41c5ace255 --- /dev/null +++ b/src/PostgreSql/examples/Start-AzPostgreSqlFlexibleServer.md @@ -0,0 +1,14 @@ +### Example 1: Start the server by resource name +```powershell +PS C:\> Start-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test +``` + +Start the server by name + +### Example 2: Start the server by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test/start" +PS C:\> Start-AzPostgreSqlFlexibleServer -InputObject $ID +``` + +Start the server by identity diff --git a/src/PostgreSql/examples/Stop-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/examples/Stop-AzPostgreSqlFlexibleServer.md new file mode 100644 index 000000000000..c37f8644f465 --- /dev/null +++ b/src/PostgreSql/examples/Stop-AzPostgreSqlFlexibleServer.md @@ -0,0 +1,15 @@ + +### Example 1: Stop the server by resource name +```powershell +PS C:\> Stop-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test +``` + +Stop the server by name + +### Example 2: Stop the server by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test/stop" +PS C:\> Stop-AzPostgreSqlFlexibleServer -InputObject $ID +``` + +Stop the server by identity diff --git a/src/PostgreSql/examples/Update-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/examples/Update-AzPostgreSqlFlexibleServer.md new file mode 100644 index 000000000000..60ec497d009a --- /dev/null +++ b/src/PostgreSql/examples/Update-AzPostgreSqlFlexibleServer.md @@ -0,0 +1,21 @@ +### Example 1: Update PostgreSql server by resource group and server name +```powershell +PS C:\> Update-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test -Sku Standard_D4s_v3 + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +postgresql-test eastus postgresql_test 12 131072 Standard_D4s_v3 GeneralPurpose +``` + +This cmdlet updates PostgreSql server by resource group and server name. + +### Example 2: Update PostgreSql server by identity. +```powershell +PS C:\> Get-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test | Update-AzPostgreSqlFlexibleServer -BackupRetentionDay 23 -StorageMb 10240 + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +postgresql-test eastus postgresql_test 12 131072 Standard_D2s_v3 GeneralPurpose +``` + +This cmdlet updates PostgreSql server by identity. diff --git a/src/PostgreSql/examples/Update-AzPostgreSqlFlexibleServerConfiguration.md b/src/PostgreSql/examples/Update-AzPostgreSqlFlexibleServerConfiguration.md new file mode 100644 index 000000000000..5e4e96388284 --- /dev/null +++ b/src/PostgreSql/examples/Update-AzPostgreSqlFlexibleServerConfiguration.md @@ -0,0 +1,22 @@ +### Example 1: Updatae specified PostgreSql configuration by name +```powershell +PS C:\> Update-AzPostgreSqlFlexibleServerConfiguration -Name work_mem -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test -Value 8192 + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +work_mem 8192 4096 system-default 4096-2097151 Integer +``` + +This cmdlet updates specified PostgreSql configuration by name. + +### Example 1: Updatae specified PostgreSql configuration by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test/configurations/work_mem" +PS C:\> Get-AzPostgreSqlFlexibleServerConfiguration -Name work_mem -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test -Value 8192 + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +work_mem 8192 4096 system-default 4096-2097151 Integer +``` + +This cmdlet updates specified PostgreSql configuration by identity. \ No newline at end of file diff --git a/src/PostgreSql/examples/Update-AzPostgreSqlFlexibleServerFirewallRule.md b/src/PostgreSql/examples/Update-AzPostgreSqlFlexibleServerFirewallRule.md new file mode 100644 index 000000000000..d4eb3dcf2fa0 --- /dev/null +++ b/src/PostgreSql/examples/Update-AzPostgreSqlFlexibleServerFirewallRule.md @@ -0,0 +1,22 @@ +### Example 1: Update PostgreSql Firewall Rule by name +```powershell +PS C:\> Update-AzPostgreSqlFlexibleServerFirewallRule -Name rule -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.2 0.0.0.3 +``` + +This cmdlet updates PostgreSql Firewall Rule by name. + +### Example 2: Update PostgreSql Firewall Rule by identity. +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test/firewallRules/rule" +PS C:\> Update-AzPostgreSqlFlexibleServerFirewallRule -InputObject $ID -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.2 0.0.0.3 +``` + +These cmdlets update PostgreSql Firewall Rule by identity. diff --git a/src/PostgreSql/readme.md b/src/PostgreSql/readme.md index 828a2c243319..c9f118522cf7 100644 --- a/src/PostgreSql/readme.md +++ b/src/PostgreSql/readme.md @@ -47,35 +47,69 @@ In this directory, run AutoRest: > see https://aka.ms/autorest ``` yaml -branch: ae862b1c090b4c2c951ea46bf97ddbafd6f76d82 +branch: 82831834a7ce4b999d6fec363c0391da80ac2674 require: - $(this-folder)/../readme.azure.noprofile.md input-file: - $(repo)/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2017-12-01/postgresql.json - $(repo)/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2017-12-01/ServerSecurityAlertPolicies.json + - $(repo)/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2020-02-14-preview/postgresql.json module-version: 0.1.0 title: PostgreSQL subject-prefix: 'PostgreSQL' directive: - - from: postgresql.json + - from: swagger-document + where: $.paths..operationId + transform: return $.replace(/^CheckNameAvailability_Execute$/g, "NameAvailability_Test") + - from: swagger-document + where: $.paths..operationId + transform: return $.replace(/^LocationBasedCapabilities_Execute$/g, "LocationBasedCapabilities_Get") + - from: Microsoft.DBforPostgreSQL/stable/2017-12-01/postgresql.json where: $.definitions.VirtualNetworkRule transform: $['required'] = ['properties'] + - from: Microsoft.DBforPostgreSQL/preview/2020-02-14-preview/postgresql.json + where: $.paths..operationId + transform: return $.replace(/^(Servers|ServerKeys)_/g, "flexible$1_") + - from: Microsoft.DBforPostgreSQL/preview/2020-02-14-preview/postgresql.json + where: $.paths..operationId + transform: return $.replace(/^(FirewallRules|Configurations|NameAvailabilities|LocationBasedCapabilities)_/g, "flexibleServer$1_") + - from: Microsoft.DBforPostgreSQL/preview/2020-02-14-preview/postgresql.json + where: $.paths..operationId + transform: return $.replace(/^VirtualNetworkSubnetUsage_Execute$/g,"flexibleServerVirtualNetworkSubnetUsage_Get") + - from: Microsoft.DBforMySQL/preview/2020-07-01-preview/mysql.json + where: + verb: Restore$ + subject: ^FlexibleServer$ + hide: true + - where: + verb: Get$ + subject: ^FlexibleServerVirtualNetworkSubnetUsage$|^FlexibleServerLocationBasedCapability$ + hide: true + - where: + verb: Test$ + subject: ^FlexibleServerNameAvailability$ + hide: true - where: verb: Set - subject: Configuration$|FirewallRule$|VirtualNetworkRule$ + subject: Configuration$|FirewallRule$|VirtualNetworkRule$|^flexibleServerFirewallRule$ set: verb: Update - where: - subject: Database$|SecurityAlertPolicy$|Administrator$|LocationBasedPerformanceTier$|LogFile$|ExecuteCheckNameAvailability$ + subject: ^Database$|^ServerSecurityAlertPolicy$|^ServerAdministrator$|^LocationBasedPerformanceTier$|^LogFile$|^NameAvailability$|^FlexibleServerKey$|^FlexibleServerVirtualNetworkSubnetUsage$ hide: true - where: verb: New$|Update$ - subject: Server$|Configuration$|FirewallRule$ + subject: ^Server$|^Configuration$|^FirewallRule$|^FlexibleServer$|^FlexibleServerFirewallRule$ + hide: true + - where: + verb: New$ + variant: ^Create$|^CreateViaIdentity + subject: ^Server$|^Configuration$|^FirewallRule$|^Database$|^LocationBasedPerformanceTier$|^LogFile$|^SecurityAlertPolicy$|^Administrator$|^NameAvailability$|^VirtualNetworkRule$ hide: true - where: - verb: New$ - variant: ^Create$|^CreateViaIdentity + verb: Update$ + subject: ^FlexibleServerConfiguration$ hide: true - where: verb: New$|Update$ @@ -88,32 +122,90 @@ directive: parameter-name: SubnetId - where: model-name: Server + set: + format-table: + properties: + - Name + - Location + - AdministratorLogin + - Version + - StorageProfileStorageMb + - SkuName + - SkuTier + - SslEnforcement + - where: + model-name: ServerAutoGenerated set: format-table: properties: - Name - Location + - SkuName + - SkuTier - AdministratorLogin - Version - StorageProfileStorageMb - - SkuName - - SkuTier - - SslEnforcement - where: model-name: Configuration set: format-table: properties: - - Name - - Value + - Name + - Value + - AllowedValue + - Source + - DefaultValue + - where: + model-name: ConfigurationAutoGenerated + set: + format-table: + properties: + - Name + - Value + - AllowedValue + - Source + - DefaultValue - where: model-name: FirewallRule + set: + format-table: + properties: + - Name + - StartIPAddress + - EndIPAddress + - where: + model-name: Database set: format-table: properties: - Name - - StartIPAddress - - EndIPAddress + - Charset + - Collation + - Id + - where: + subject: ^FlexibleServer$ + parameter-name: ServerName + set: + parameter-name: Name + alias: ServerName + - where: + subject: ^FlexibleServerFirewallRule$ + parameter-name: FirewallRuleName + set: + parameter-name: Name + alias: FirewallRuleName + - where: + subject: ^FlexibleServerDatabase$ + parameter-name: DatabaseName + set: + parameter-name: Name + alias: DatabaseName + - where: + subject: ^FlexibleServerConfiguration$ + parameter-name: ConfigurationName + set: + parameter-name: Name + alias: ConfigurationName - where: parameter-name: StorageProfileBackupRetentionDay subject: Server @@ -128,3 +220,4 @@ directive: - from: source-file-csharp where: $ transform: $ = $.replace('public int StorageProfileBackupRetentionDay', '[System.Management.Automation.ValidateRangeAttribute(7,35)]\n public int StorageProfileBackupRetentionDay'); +``` diff --git a/src/PostgreSql/test/Get-AzPostgreSqlConfiguration.Recording.json b/src/PostgreSql/test/Get-AzPostgreSqlConfiguration.Recording.json index d1f457c53b44..1455ff225888 100644 --- a/src/PostgreSql/test/Get-AzPostgreSqlConfiguration.Recording.json +++ b/src/PostgreSql/test/Get-AzPostgreSqlConfiguration.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzPostgreSqlConfiguration+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations?api-version=2017-12-01+1": { + "Get-AzPostgreSqlConfiguration+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "10" ], @@ -35,13 +35,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"value\":\"on\",\"description\":\"Enable input of NULL elements in arrays.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/array_nulls\",\"name\":\"array_nulls\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"safe_encoding\",\"description\":\"Sets whether \\\"\\\\\u0027\\\" is allowed in string literals.\",\"defaultValue\":\"safe_encoding\",\"dataType\":\"Enumeration\",\"allowedValues\":\"safe_encoding,on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/backslash_quote\",\"name\":\"backslash_quote\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"hex\",\"description\":\"Sets the output format for bytea.\",\"defaultValue\":\"hex\",\"dataType\":\"Enumeration\",\"allowedValues\":\"escape,hex\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/bytea_output\",\"name\":\"bytea_output\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Check function bodies during CREATE FUNCTION.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/check_function_bodies\",\"name\":\"check_function_bodies\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"sql_ascii\",\"description\":\"Sets the client\u0027s character set encoding.\",\"defaultValue\":\"sql_ascii\",\"dataType\":\"Enumeration\",\"allowedValues\":\"BIG5,EUC_CN,EUC_JP,EUC_JIS_2004,EUC_KR,EUC_TW,GB18030,GBK,ISO_8859_5,ISO_8859_6,ISO_8859_7,ISO_8859_8,JOHAB,KOI8R,KOI8U,LATIN1,LATIN2,LATIN3,LATIN4,LATIN5,LATIN6,LATIN7,LATIN8,LATIN9,LATIN10,MULE_INTERNAL,SJIS,SHIFT_JIS_2004,SQL_ASCII,UHC,UTF8,WIN866,WIN874,WIN1250,WIN1251,WIN1252,WIN1253,WIN1254,WIN1255,WIN1256,WIN1257,WIN1258\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/client_encoding\",\"name\":\"client_encoding\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"notice\",\"description\":\"Sets the message levels that are sent to the client.\",\"defaultValue\":\"notice\",\"dataType\":\"Enumeration\",\"allowedValues\":\"debug5,debug4,debug3,debug2,debug1,log,notice,warning,error\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/client_min_messages\",\"name\":\"client_min_messages\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"partition\",\"description\":\"Enables the planner to use constraints to optimize queries.\",\"defaultValue\":\"partition\",\"dataType\":\"Enumeration\",\"allowedValues\":\"partition,on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/constraint_exclusion\",\"name\":\"constraint_exclusion\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0.005\",\"description\":\"Sets the planner\u0027s estimate of the cost of processing each index entry during an index scan.\",\"defaultValue\":\"0.005\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1.79769e+308\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/cpu_index_tuple_cost\",\"name\":\"cpu_index_tuple_cost\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0.0025\",\"description\":\"Sets the planner\u0027s estimate of the cost of processing each operator or function call.\",\"defaultValue\":\"0.0025\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1.79769e+308\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/cpu_operator_cost\",\"name\":\"cpu_operator_cost\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0.01\",\"description\":\"Sets the planner\u0027s estimate of the cost of processing each tuple (row).\",\"defaultValue\":\"0.01\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1.79769e+308\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/cpu_tuple_cost\",\"name\":\"cpu_tuple_cost\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0.1\",\"description\":\"Sets the planner\u0027s estimate of the fraction of a cursor\u0027s rows that will be retrieved.\",\"defaultValue\":\"0.1\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/cursor_tuple_fraction\",\"name\":\"cursor_tuple_fraction\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"iso, mdy\",\"description\":\"Sets the display format for date and time values.\",\"defaultValue\":\"iso, mdy\",\"dataType\":\"String\",\"allowedValues\":\"(iso|postgres|sql|german)\\\\,\\\\s(dmy|mdy|ymd)\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/datestyle\",\"name\":\"datestyle\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"1000\",\"description\":\"Sets the amount of time, in milliseconds, to wait on a lock before checking for deadlock.\",\"defaultValue\":\"1000\",\"dataType\":\"Integer\",\"allowedValues\":\"1-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/deadlock_timeout\",\"name\":\"deadlock_timeout\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Logs each query\u0027s execution plan.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/debug_print_plan\",\"name\":\"debug_print_plan\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Logs each query\u0027s rewritten parse tree.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/debug_print_rewritten\",\"name\":\"debug_print_rewritten\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"100\",\"description\":\"Sets the default statistics target.\",\"defaultValue\":\"100\",\"dataType\":\"Integer\",\"allowedValues\":\"1-10000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/default_statistics_target\",\"name\":\"default_statistics_target\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"pg_catalog.english\",\"description\":\"Sets default text search configuration.\",\"defaultValue\":\"pg_catalog.english\",\"dataType\":\"String\",\"allowedValues\":\"[A-Za-z\\\\._]+\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/default_text_search_config\",\"name\":\"default_text_search_config\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Sets the default deferrable status of new transactions.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/default_transaction_deferrable\",\"name\":\"default_transaction_deferrable\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"read committed\",\"description\":\"Sets the transaction isolation level of each new transaction.\",\"defaultValue\":\"read committed\",\"dataType\":\"Enumeration\",\"allowedValues\":\"serializable,repeatable read,read committed,read uncommitted\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/default_transaction_isolation\",\"name\":\"default_transaction_isolation\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Sets the default read-only status of new transactions.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/default_transaction_read_only\",\"name\":\"default_transaction_read_only\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Create new tables with OIDs by default.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/default_with_oids\",\"name\":\"default_with_oids\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of bitmap-scan plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/enable_bitmapscan\",\"name\":\"enable_bitmapscan\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of hashed aggregation plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/enable_hashagg\",\"name\":\"enable_hashagg\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of hash join plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/enable_hashjoin\",\"name\":\"enable_hashjoin\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of index-only-scan plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/enable_indexonlyscan\",\"name\":\"enable_indexonlyscan\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of index-scan plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/enable_indexscan\",\"name\":\"enable_indexscan\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of materialization.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/enable_material\",\"name\":\"enable_material\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of merge join plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/enable_mergejoin\",\"name\":\"enable_mergejoin\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of nested-loop join plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/enable_nestloop\",\"name\":\"enable_nestloop\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of sequential-scan plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/enable_seqscan\",\"name\":\"enable_seqscan\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of explicit sort steps.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/enable_sort\",\"name\":\"enable_sort\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of TID scan plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/enable_tidscan\",\"name\":\"enable_tidscan\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Warn about backslash escapes in ordinary string literals.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/escape_string_warning\",\"name\":\"escape_string_warning\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Terminate session on any error.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/exit_on_error\",\"name\":\"exit_on_error\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Sets the number of digits displayed for floating-point values.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"-15-3\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/extra_float_digits\",\"name\":\"extra_float_digits\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"8\",\"description\":\"Sets the FROM-list size beyond which subqueries are not collapsed.\",\"defaultValue\":\"8\",\"dataType\":\"Integer\",\"allowedValues\":\"1-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/from_collapse_limit\",\"name\":\"from_collapse_limit\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables genetic query optimization.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/geqo\",\"name\":\"geqo\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"5\",\"description\":\"GEQO: effort is used to set the default for other GEQO parameters.\",\"defaultValue\":\"5\",\"dataType\":\"Integer\",\"allowedValues\":\"1-10\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/geqo_effort\",\"name\":\"geqo_effort\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"GEQO: number of iterations of the algorithm.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/geqo_generations\",\"name\":\"geqo_generations\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"GEQO: number of individuals in the population.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/geqo_pool_size\",\"name\":\"geqo_pool_size\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0.0\",\"description\":\"GEQO: seed for random path selection.\",\"defaultValue\":\"0.0\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/geqo_seed\",\"name\":\"geqo_seed\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"2.0\",\"description\":\"GEQO: selective pressure within the population.\",\"defaultValue\":\"2.0\",\"dataType\":\"Numeric\",\"allowedValues\":\"1.5-2\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/geqo_selection_bias\",\"name\":\"geqo_selection_bias\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"12\",\"description\":\"Sets the threshold of FROM items beyond which GEQO is used.\",\"defaultValue\":\"12\",\"dataType\":\"Integer\",\"allowedValues\":\"2-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/geqo_threshold\",\"name\":\"geqo_threshold\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Sets the maximum allowed result for exact search by GIN.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/gin_fuzzy_search_limit\",\"name\":\"gin_fuzzy_search_limit\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"postgres\",\"description\":\"Sets the display format for interval values.\",\"defaultValue\":\"postgres\",\"dataType\":\"Enumeration\",\"allowedValues\":\"postgres,postgres_verbose,sql_standard,iso_8601\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/intervalstyle\",\"name\":\"intervalstyle\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"8\",\"description\":\"Sets the FROM-list size beyond which JOIN constructs are not flattened.\",\"defaultValue\":\"8\",\"dataType\":\"Integer\",\"allowedValues\":\"1-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/join_collapse_limit\",\"name\":\"join_collapse_limit\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Sets the maximum allowed duration (in milliseconds) of any wait for a lock. 0 turns this off.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/lock_timeout\",\"name\":\"lock_timeout\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Logs each checkpoint.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/log_checkpoints\",\"name\":\"log_checkpoints\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Logs each successful connection.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/log_connections\",\"name\":\"log_connections\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Logs end of a session, including duration.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/log_disconnections\",\"name\":\"log_disconnections\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Logs the duration of each completed SQL statement.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/log_duration\",\"name\":\"log_duration\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"default\",\"description\":\"Sets the verbosity of logged messages.\",\"defaultValue\":\"default\",\"dataType\":\"Enumeration\",\"allowedValues\":\"terse,default,verbose\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/log_error_verbosity\",\"name\":\"log_error_verbosity\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"%t-%c-\",\"description\":\"Sets the printf-style string that is output at the beginning of each log line.\",\"defaultValue\":\"%t-%c-\",\"dataType\":\"String\",\"allowedValues\":\".*\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/log_line_prefix\",\"name\":\"log_line_prefix\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Logs long lock waits.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/log_lock_waits\",\"name\":\"log_lock_waits\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"-1\",\"description\":\"Sets the minimum execution time (in milliseconds) above which statements will be logged. -1 disables logging statement durations.\",\"defaultValue\":\"-1\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/log_min_duration_statement\",\"name\":\"log_min_duration_statement\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"error\",\"description\":\"Causes all statements generating error at or above this level to be logged.\",\"defaultValue\":\"error\",\"dataType\":\"Enumeration\",\"allowedValues\":\"debug5,debug4,debug3,debug2,debug1,info,notice,warning,error,log,fatal,panic\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/log_min_error_statement\",\"name\":\"log_min_error_statement\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"warning\",\"description\":\"Sets the message levels that are logged.\",\"defaultValue\":\"warning\",\"dataType\":\"Enumeration\",\"allowedValues\":\"debug5,debug4,debug3,debug2,debug1,info,notice,warning,error,log,fatal,panic\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/log_min_messages\",\"name\":\"log_min_messages\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"none\",\"description\":\"Sets the type of statements logged.\",\"defaultValue\":\"none\",\"dataType\":\"Enumeration\",\"allowedValues\":\"none,ddl,mod,all\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/log_statement\",\"name\":\"log_statement\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"For each query, writes cumulative performance statistics to the server log.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/log_statement_stats\",\"name\":\"log_statement_stats\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"64\",\"description\":\"Sets the maximum number of locks per transaction. Any change requires restarting the server to take effect. When running a replica server, you must set this parameter to the same or higher value than on the master server.\",\"defaultValue\":\"64\",\"dataType\":\"Integer\",\"allowedValues\":\"10-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/max_locks_per_transaction\",\"name\":\"max_locks_per_transaction\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Sets the maximum number of simultaneously prepared transactions. Any change requires restarting the server to take effect. When running a replica server, you must set this parameter to the same or higher value than on the master server.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-8388607\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/max_prepared_transactions\",\"name\":\"max_prepared_transactions\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"When generating SQL fragments, quote all identifiers.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/quote_all_identifiers\",\"name\":\"quote_all_identifiers\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"4.0\",\"description\":\"Sets the planner\u0027s estimate of the cost of a nonsequentially fetched disk page.\",\"defaultValue\":\"4.0\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1.79769e+308\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/random_page_cost\",\"name\":\"random_page_cost\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"\\\"$user\\\", public\",\"description\":\"Sets the schema search order for names that are not schema-qualified.\",\"defaultValue\":\"\\\"$user\\\", public\",\"dataType\":\"String\",\"allowedValues\":\"[A-Za-z.\\\"$, ]+\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/search_path\",\"name\":\"search_path\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"1.0\",\"description\":\"Sets the planner\u0027s estimate of the cost of a sequentially fetched disk page.\",\"defaultValue\":\"1.0\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1.79769e+308\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/seq_page_cost\",\"name\":\"seq_page_cost\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Causes subtables to be included by default in various commands.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/sql_inheritance\",\"name\":\"sql_inheritance\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Sets the maximum allowed duration (in milliseconds) of any statement. 0 turns this off.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/statement_timeout\",\"name\":\"statement_timeout\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enable synchronized sequential scans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/synchronize_seqscans\",\"name\":\"synchronize_seqscans\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Sets the current transaction\u0027s synchronization level.\",\"defaultValue\":\"on\",\"dataType\":\"Enumeration\",\"allowedValues\":\"local,remote_write,on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/synchronous_commit\",\"name\":\"synchronous_commit\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Treats \\\"expr=NULL\\\" as \\\"expr IS NULL\\\".\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/transform_null_equals\",\"name\":\"transform_null_equals\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"base64\",\"description\":\"Sets how binary values are to be encoded in XML.\",\"defaultValue\":\"base64\",\"dataType\":\"Enumeration\",\"allowedValues\":\"base64,hex\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/xmlbinary\",\"name\":\"xmlbinary\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"content\",\"description\":\"Sets whether XML data in implicit parsing and serialization operations is to be considered as documents or content fragments.\",\"defaultValue\":\"content\",\"dataType\":\"Enumeration\",\"allowedValues\":\"content,document\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/xmloption\",\"name\":\"xmloption\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Forces use of parallel query facilities.\",\"defaultValue\":\"off\",\"dataType\":\"Enumeration\",\"allowedValues\":\"off,on,regress\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/force_parallel_mode\",\"name\":\"force_parallel_mode\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Sets the maximum allowed duration of any idling transaction. Unit is ms.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/idle_in_transaction_session_timeout\",\"name\":\"idle_in_transaction_session_timeout\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Sets the maximum number of parallel processes per executor node.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1024\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/max_parallel_workers_per_gather\",\"name\":\"max_parallel_workers_per_gather\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"8388608\",\"description\":\"Sets the minimum size of relations to be considered for parallel scan. Unit is 8kb.\",\"defaultValue\":\"8388608\",\"dataType\":\"Integer\",\"allowedValues\":\"0-715827882\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/min_parallel_relation_size\",\"name\":\"min_parallel_relation_size\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"1000\",\"description\":\"Sets the planner\u0027s estimate of the cost of starting up worker processes for parallel query.\",\"defaultValue\":\"1000\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1.79769e+308\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/parallel_setup_cost\",\"name\":\"parallel_setup_cost\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0.1\",\"description\":\"Sets the planner\u0027s estimate of the cost of passing each tuple (row) from worker to master backend.\",\"defaultValue\":\"0.1\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1.79769e+308\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/parallel_tuple_cost\",\"name\":\"parallel_tuple_cost\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"4096\",\"description\":\"Sets the amount of memory to be used by internal sort operations and hash tables before writing to temporary disk files. Unit is kb.\",\"defaultValue\":\"4096\",\"dataType\":\"Integer\",\"allowedValues\":\"4096-2097151\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/work_mem\",\"name\":\"work_mem\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"8192\",\"description\":\"Sets the maximum number of temporary buffers used by each database session. Unit is 8kb.\",\"defaultValue\":\"8192\",\"dataType\":\"Integer\",\"allowedValues\":\"8192-16384\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/temp_buffers\",\"name\":\"temp_buffers\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables temporary connection throttling per IP for too many invalid password login failures.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/connection_throttling\",\"name\":\"connection_throttling\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"3\",\"description\":\"Sets how many days a log file is saved for.\",\"defaultValue\":\"3\",\"dataType\":\"Integer\",\"allowedValues\":\"1-7\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/log_retention_days\",\"name\":\"log_retention_days\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"6000\",\"description\":\"Sets the maximum query text length that will be saved; longer queries will be truncated.\",\"defaultValue\":\"6000\",\"dataType\":\"Integer\",\"allowedValues\":\"100-10000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/pg_qs.max_query_text_length\",\"name\":\"pg_qs.max_query_text_length\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"none\",\"description\":\"Selects which statements are tracked by pg_qs.\",\"defaultValue\":\"none\",\"dataType\":\"Enumeration\",\"allowedValues\":\"all,top,none\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/pg_qs.query_capture_mode\",\"name\":\"pg_qs.query_capture_mode\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"7\",\"description\":\"Sets the retention period window in days for pg_qs - after this time data will be deleted.\",\"defaultValue\":\"7\",\"dataType\":\"Integer\",\"allowedValues\":\"1-30\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/pg_qs.retention_period_in_days\",\"name\":\"pg_qs.retention_period_in_days\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Selects whether parameter placeholders are replaced in parameterized queries.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/pg_qs.replace_parameter_placeholders\",\"name\":\"pg_qs.replace_parameter_placeholders\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Selects whether utility commands are tracked by pg_qs.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/pg_qs.track_utility\",\"name\":\"pg_qs.track_utility\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"top\",\"description\":\"Controls which statements are counted by pg_stat_statements.\",\"defaultValue\":\"top\",\"dataType\":\"Enumeration\",\"allowedValues\":\"top,all,none\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/pg_stat_statements.track\",\"name\":\"pg_stat_statements.track\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"none\",\"description\":\"Selects which statements are tracked by the pgms_wait_sampling extension.\",\"defaultValue\":\"none\",\"dataType\":\"Enumeration\",\"allowedValues\":\"all,none\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/pgms_wait_sampling.query_capture_mode\",\"name\":\"pgms_wait_sampling.query_capture_mode\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"100\",\"description\":\"Set the frequency, in milliseconds, at which wait events are sampled.\",\"defaultValue\":\"100\",\"dataType\":\"Integer\",\"allowedValues\":\"1-600000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/pgms_wait_sampling.history_period\",\"name\":\"pgms_wait_sampling.history_period\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"DISABLE_ALL\",\"description\":\"Controls postgis GDAL enabled driver settings.\",\"defaultValue\":\"DISABLE_ALL\",\"dataType\":\"Enumeration\",\"allowedValues\":\"DISABLE_ALL,ENABLE_ALL\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/postgis.gdal_enabled_drivers\",\"name\":\"postgis.gdal_enabled_drivers\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Starts the autovacuum subprocess.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/autovacuum\",\"name\":\"autovacuum\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0.05\",\"description\":\"Number of tuple inserts, updates, or deletes prior to analyze as a fraction of reltuples.\",\"defaultValue\":\"0.05\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-100\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/autovacuum_analyze_scale_factor\",\"name\":\"autovacuum_analyze_scale_factor\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"50\",\"description\":\"Minimum number of tuple inserts, updates, or deletes prior to analyze.\",\"defaultValue\":\"50\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/autovacuum_analyze_threshold\",\"name\":\"autovacuum_analyze_threshold\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"200000000\",\"description\":\"Age at which to autovacuum a table to prevent transaction ID wraparound. Any change requires restarting the server to take effect..\",\"defaultValue\":\"200000000\",\"dataType\":\"Integer\",\"allowedValues\":\"100000-2000000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/autovacuum_freeze_max_age\",\"name\":\"autovacuum_freeze_max_age\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"400000000\",\"description\":\"Multixact age at which to autovacuum a table to prevent multixact wraparound. Any change requires restarting the server to take effect.\",\"defaultValue\":\"400000000\",\"dataType\":\"Integer\",\"allowedValues\":\"10000-2000000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/autovacuum_multixact_freeze_max_age\",\"name\":\"autovacuum_multixact_freeze_max_age\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"15\",\"description\":\"Time to sleep between autovacuum runs. Unit is s.\",\"defaultValue\":\"15\",\"dataType\":\"Integer\",\"allowedValues\":\"1-2147483\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/autovacuum_naptime\",\"name\":\"autovacuum_naptime\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"20\",\"description\":\"Vacuum cost delay in milliseconds, for autovacuum.\",\"defaultValue\":\"20\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-100\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/autovacuum_vacuum_cost_delay\",\"name\":\"autovacuum_vacuum_cost_delay\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"-1\",\"description\":\"Vacuum cost amount available before napping, for autovacuum.\",\"defaultValue\":\"-1\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-10000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/autovacuum_vacuum_cost_limit\",\"name\":\"autovacuum_vacuum_cost_limit\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0.05\",\"description\":\"Number of tuple updates or deletes prior to vacuum as a fraction of reltuples.\",\"defaultValue\":\"0.05\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-100\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/autovacuum_vacuum_scale_factor\",\"name\":\"autovacuum_vacuum_scale_factor\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"50\",\"description\":\"Minimum number of tuple updates or deletes prior to vacuum.\",\"defaultValue\":\"50\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/autovacuum_vacuum_threshold\",\"name\":\"autovacuum_vacuum_threshold\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"-1\",\"description\":\"Sets the maximum memory to be used by each autovacuum worker process. Unit is kb.\",\"defaultValue\":\"-1\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-2097151\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/autovacuum_work_mem\",\"name\":\"autovacuum_work_mem\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"3\",\"description\":\"Sets the maximum number of simultaneously running autovacuum worker processes. Any change requires restarting the server to take effect.\",\"defaultValue\":\"3\",\"dataType\":\"Integer\",\"allowedValues\":\"1-262143\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/autovacuum_max_workers\",\"name\":\"autovacuum_max_workers\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Number of pages after which previously performed writes are flushed to disk. Unit is 8kb.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-256\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/backend_flush_after\",\"name\":\"backend_flush_after\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"200\",\"description\":\"Background writer sleep time between rounds. Unit is ms.\",\"defaultValue\":\"200\",\"dataType\":\"Integer\",\"allowedValues\":\"10-10000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/bgwriter_delay\",\"name\":\"bgwriter_delay\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"64\",\"description\":\"Number of pages after which previously performed writes are flushed to disk. Unit is 8kb.\",\"defaultValue\":\"64\",\"dataType\":\"Integer\",\"allowedValues\":\"0-256\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/bgwriter_flush_after\",\"name\":\"bgwriter_flush_after\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"100\",\"description\":\"Background writer maximum number of LRU pages to flush per round.\",\"defaultValue\":\"100\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1073741823\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/bgwriter_lru_maxpages\",\"name\":\"bgwriter_lru_maxpages\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"2\",\"description\":\"Multiple of the average buffer usage to free per round.\",\"defaultValue\":\"2\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-10\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/bgwriter_lru_multiplier\",\"name\":\"bgwriter_lru_multiplier\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"30\",\"description\":\"Enables warnings if checkpoint segments are filled more frequently than this. Unit is s.\",\"defaultValue\":\"30\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/checkpoint_warning\",\"name\":\"checkpoint_warning\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Sets the delay in microseconds between transaction commit and flushing WAL to disk.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-100000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/commit_delay\",\"name\":\"commit_delay\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"5\",\"description\":\"Sets the minimum concurrent open transactions before performing commit_delay.\",\"defaultValue\":\"5\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/commit_siblings\",\"name\":\"commit_siblings\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"1310720\",\"description\":\"Sets the planner\u0027s assumption about the size of the disk cache. Unit is 8kb.\",\"defaultValue\":\"917504\",\"dataType\":\"Integer\",\"allowedValues\":\"1-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/effective_cache_size\",\"name\":\"effective_cache_size\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"4096\",\"description\":\"Sets the maximum size of the pending list for GIN index. Unit is kb.\",\"defaultValue\":\"4096\",\"dataType\":\"Integer\",\"allowedValues\":\"64-2097151\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/gin_pending_list_limit\",\"name\":\"gin_pending_list_limit\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"English_United States.1252\",\"description\":\"Sets the locale for formatting monetary amounts.\",\"defaultValue\":\"English_United States.1252\",\"dataType\":\"String\",\"allowedValues\":\"[A-Za-z0-9\\\\._\\\\s]+\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/lc_monetary\",\"name\":\"lc_monetary\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"English_United States.1252\",\"description\":\"Sets the locale for formatting numbers.\",\"defaultValue\":\"English_United States.1252\",\"dataType\":\"String\",\"allowedValues\":\"[A-Za-z0-9\\\\._\\\\s]+\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/lc_numeric\",\"name\":\"lc_numeric\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Enables backward compatibility mode for privilege checks on large objects.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/lo_compat_privileges\",\"name\":\"lo_compat_privileges\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"-1\",\"description\":\"Sets the minimum execution time above which autovacuum actions will be logged. Unit is ms.\",\"defaultValue\":\"-1\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/log_autovacuum_min_duration\",\"name\":\"log_autovacuum_min_duration\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Logs each replication command.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/log_replication_commands\",\"name\":\"log_replication_commands\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"-1\",\"description\":\"Log the use of temporary files larger than this number of kilobytes.\",\"defaultValue\":\"-1\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/log_temp_files\",\"name\":\"log_temp_files\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"30000\",\"description\":\"Sets the maximum delay before canceling queries when a hot standby server is processing archived WAL data. Unit is ms.\",\"defaultValue\":\"30000\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/max_standby_archive_delay\",\"name\":\"max_standby_archive_delay\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"30000\",\"description\":\"Sets the maximum delay before canceling queries when a hot standby server is processing streamed WAL data. Unit is ms.\",\"defaultValue\":\"30000\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/max_standby_streaming_delay\",\"name\":\"max_standby_streaming_delay\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"Sets the WAL size that triggers a checkpoint. Unit is 16MB.\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"2-2097151\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/max_wal_size\",\"name\":\"max_wal_size\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"256\",\"description\":\"Sets the minimum size to shrink the WAL to. Unit is 16MB.\",\"defaultValue\":\"512\",\"dataType\":\"Integer\",\"allowedValues\":\"2-2097151\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/min_wal_size\",\"name\":\"min_wal_size\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"-1\",\"description\":\"Time before a snapshot is too old to read pages changed after the snapshot was taken. Any change requires restarting the server to take effect. Unit is min.\",\"defaultValue\":\"-1\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-86400\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/old_snapshot_threshold\",\"name\":\"old_snapshot_threshold\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Emit a warning for constructs that changed meaning since PostgreSQL 9.4.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/operator_precedence_warning\",\"name\":\"operator_precedence_warning\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"5000\",\"description\":\"Sets the maximum number of statements tracked by pg_stat_statements. Any change requires restarting the server to take effect.\",\"defaultValue\":\"5000\",\"dataType\":\"Integer\",\"allowedValues\":\"100-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/pg_stat_statements.max\",\"name\":\"pg_stat_statements.max\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Save pg_stat_statements statistics across server shutdowns.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/pg_stat_statements.save\",\"name\":\"pg_stat_statements.save\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Selects whether utility commands are tracked by pg_stat_statements.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/pg_stat_statements.track_utility\",\"name\":\"pg_stat_statements.track_utility\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"150000\",\"description\":\"Sets the maximum number of tuples to be sorted using replacement selection.\",\"defaultValue\":\"150000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/replacement_sort_tuples\",\"name\":\"replacement_sort_tuples\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enable row security.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/row_security\",\"name\":\"row_security\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"origin\",\"description\":\"Sets the session\u0027s behavior for triggers and rewrite rules.\",\"defaultValue\":\"origin\",\"dataType\":\"Enumeration\",\"allowedValues\":\"origin,replica,local\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/session_replication_role\",\"name\":\"session_replication_role\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Maximum number of TCP keepalive retransmits.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/tcp_keepalives_count\",\"name\":\"tcp_keepalives_count\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Time between issuing TCP keepalives. Unit is s.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/tcp_keepalives_idle\",\"name\":\"tcp_keepalives_idle\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Time between TCP keepalive retransmits. Unit is s.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/tcp_keepalives_interval\",\"name\":\"tcp_keepalives_interval\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Collects information about executing commands.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/track_activities\",\"name\":\"track_activities\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"Sets the size reserved for pg_stat_activity.query, in bytes. Any change requires restarting the server to take effect.\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"100-102400\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/track_activity_query_size\",\"name\":\"track_activity_query_size\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Collects transaction commit time. Any change requires restarting the server to take effect.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/track_commit_timestamp\",\"name\":\"track_commit_timestamp\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Collects statistics on database activity.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/track_counts\",\"name\":\"track_counts\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"none\",\"description\":\"Collects function-level statistics on database activity.\",\"defaultValue\":\"none\",\"dataType\":\"Enumeration\",\"allowedValues\":\"none,pl,all\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/track_functions\",\"name\":\"track_functions\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Collects timing statistics for database I/O activity.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/track_io_timing\",\"name\":\"track_io_timing\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"UTC\",\"description\":\"Sets the time zone for displaying and interpreting time stamps\",\"defaultValue\":\"UTC\",\"dataType\":\"String\",\"allowedValues\":\"[A-Za-z0-9/+-_]+\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/timezone\",\"name\":\"timezone\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"\",\"description\":\"Sets which shared libraries are preloaded at server start. Any change requires a restart to take effect.\",\"defaultValue\":\"\",\"dataType\":\"Set\",\"allowedValues\":\",pgaudit,timescaledb\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/shared_preload_libraries\",\"name\":\"shared_preload_libraries\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Vacuum cost delay in milliseconds.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-100\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/vacuum_cost_delay\",\"name\":\"vacuum_cost_delay\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"200\",\"description\":\"Vacuum cost amount available before napping.\",\"defaultValue\":\"200\",\"dataType\":\"Integer\",\"allowedValues\":\"1-10000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/vacuum_cost_limit\",\"name\":\"vacuum_cost_limit\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"20\",\"description\":\"Vacuum cost for a page dirtied by vacuum.\",\"defaultValue\":\"20\",\"dataType\":\"Integer\",\"allowedValues\":\"0-10000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/vacuum_cost_page_dirty\",\"name\":\"vacuum_cost_page_dirty\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"Vacuum cost for a page found in the buffer cache.\",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"0-10000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/vacuum_cost_page_hit\",\"name\":\"vacuum_cost_page_hit\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"Vacuum cost for a page not found in the buffer cache.\",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"0-10000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/vacuum_cost_page_miss\",\"name\":\"vacuum_cost_page_miss\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Number of transactions by which VACUUM and HOT cleanup should be deferred, if any.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/vacuum_defer_cleanup_age\",\"name\":\"vacuum_defer_cleanup_age\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"50000000\",\"description\":\"Minimum age at which VACUUM should freeze a table row.\",\"defaultValue\":\"50000000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/vacuum_freeze_min_age\",\"name\":\"vacuum_freeze_min_age\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"150000000\",\"description\":\"Age at which VACUUM should scan whole table to freeze tuples.\",\"defaultValue\":\"150000000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2000000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/vacuum_freeze_table_age\",\"name\":\"vacuum_freeze_table_age\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"5000000\",\"description\":\"Minimum age at which VACUUM should freeze a MultiXactId in a table row.\",\"defaultValue\":\"5000000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/vacuum_multixact_freeze_min_age\",\"name\":\"vacuum_multixact_freeze_min_age\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"150000000\",\"description\":\"Multixact age at which VACUUM should scan whole table to freeze tuples.\",\"defaultValue\":\"150000000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2000000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/vacuum_multixact_freeze_table_age\",\"name\":\"vacuum_multixact_freeze_table_age\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"8192\",\"description\":\"Sets the number of disk-page buffers in shared memory for WAL. Any change requires restarting the server to take effect. Unit is 8kb.\",\"defaultValue\":\"8192\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-262143\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/wal_buffers\",\"name\":\"wal_buffers\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"Sets the maximum interval between WAL receiver status reports to the primary. Unit is s.\",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/wal_receiver_status_interval\",\"name\":\"wal_receiver_status_interval\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"200\",\"description\":\"Time between WAL flushes performed in the WAL writer. Unit is ms.\",\"defaultValue\":\"200\",\"dataType\":\"Integer\",\"allowedValues\":\"1-10000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/wal_writer_delay\",\"name\":\"wal_writer_delay\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"128\",\"description\":\"Amount of WAL written out by WAL writer that triggers a flush. Unit is 8kb.\",\"defaultValue\":\"128\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/wal_writer_flush_after\",\"name\":\"wal_writer_flush_after\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"262144\",\"description\":\"Sets the maximum memory to be used for maintenance operations. Unit is kb.\",\"defaultValue\":\"131072\",\"dataType\":\"Integer\",\"allowedValues\":\"1024-2097151\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/maintenance_work_mem\",\"name\":\"maintenance_work_mem\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"REPLICA\",\"description\":\"Sets the level of replication support (Read Replicas). Any change requires restarting the server to take effect.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"OFF,REPLICA,LOGICAL\",\"source\":\"user-override\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/azure.replication_support\",\"name\":\"azure.replication_support\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"Specifies the maximum number of concurrent connections from standby servers or streaming base backup clients (i.e., the maximum number of simultaneously running WAL sender processes).\",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"10-80\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/max_wal_senders\",\"name\":\"max_wal_senders\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"Specifies the maximum number of replication slots that the server can support.\",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"10-80\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/max_replication_slots\",\"name\":\"max_replication_slots\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Allows feedback from a hot standby to the primary that will avoid query conflicts.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/hot_standby_feedback\",\"name\":\"hot_standby_feedback\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enable .log files. Setting is independent of Azure Monitor logging options. Any change requires restarting the server to take effect.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/logging_collector\",\"name\":\"logging_collector\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"}]}" + "Content": "{\"value\":[{\"properties\":{\"value\":\"on\",\"description\":\"Enable input of NULL elements in arrays.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/array_nulls\",\"name\":\"array_nulls\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"safe_encoding\",\"description\":\"Sets whether \\\"\\\\\u0027\\\" is allowed in string literals.\",\"defaultValue\":\"safe_encoding\",\"dataType\":\"Enumeration\",\"allowedValues\":\"safe_encoding,on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/backslash_quote\",\"name\":\"backslash_quote\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"hex\",\"description\":\"Sets the output format for bytea.\",\"defaultValue\":\"hex\",\"dataType\":\"Enumeration\",\"allowedValues\":\"escape,hex\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/bytea_output\",\"name\":\"bytea_output\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Check function bodies during CREATE FUNCTION.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/check_function_bodies\",\"name\":\"check_function_bodies\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"sql_ascii\",\"description\":\"Sets the client\u0027s character set encoding.\",\"defaultValue\":\"sql_ascii\",\"dataType\":\"Enumeration\",\"allowedValues\":\"BIG5,EUC_CN,EUC_JP,EUC_JIS_2004,EUC_KR,EUC_TW,GB18030,GBK,ISO_8859_5,ISO_8859_6,ISO_8859_7,ISO_8859_8,JOHAB,KOI8R,KOI8U,LATIN1,LATIN2,LATIN3,LATIN4,LATIN5,LATIN6,LATIN7,LATIN8,LATIN9,LATIN10,MULE_INTERNAL,SJIS,SHIFT_JIS_2004,SQL_ASCII,UHC,UTF8,WIN866,WIN874,WIN1250,WIN1251,WIN1252,WIN1253,WIN1254,WIN1255,WIN1256,WIN1257,WIN1258\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/client_encoding\",\"name\":\"client_encoding\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"notice\",\"description\":\"Sets the message levels that are sent to the client.\",\"defaultValue\":\"notice\",\"dataType\":\"Enumeration\",\"allowedValues\":\"debug5,debug4,debug3,debug2,debug1,log,notice,warning,error\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/client_min_messages\",\"name\":\"client_min_messages\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"partition\",\"description\":\"Enables the planner to use constraints to optimize queries.\",\"defaultValue\":\"partition\",\"dataType\":\"Enumeration\",\"allowedValues\":\"partition,on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/constraint_exclusion\",\"name\":\"constraint_exclusion\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0.005\",\"description\":\"Sets the planner\u0027s estimate of the cost of processing each index entry during an index scan.\",\"defaultValue\":\"0.005\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1.79769e+308\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/cpu_index_tuple_cost\",\"name\":\"cpu_index_tuple_cost\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0.0025\",\"description\":\"Sets the planner\u0027s estimate of the cost of processing each operator or function call.\",\"defaultValue\":\"0.0025\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1.79769e+308\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/cpu_operator_cost\",\"name\":\"cpu_operator_cost\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0.01\",\"description\":\"Sets the planner\u0027s estimate of the cost of processing each tuple (row).\",\"defaultValue\":\"0.01\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1.79769e+308\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/cpu_tuple_cost\",\"name\":\"cpu_tuple_cost\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0.1\",\"description\":\"Sets the planner\u0027s estimate of the fraction of a cursor\u0027s rows that will be retrieved.\",\"defaultValue\":\"0.1\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/cursor_tuple_fraction\",\"name\":\"cursor_tuple_fraction\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"iso, mdy\",\"description\":\"Sets the display format for date and time values.\",\"defaultValue\":\"iso, mdy\",\"dataType\":\"String\",\"allowedValues\":\"(iso|postgres|sql|german)\\\\,\\\\s(dmy|mdy|ymd)\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/datestyle\",\"name\":\"datestyle\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"1000\",\"description\":\"Sets the amount of time, in milliseconds, to wait on a lock before checking for deadlock.\",\"defaultValue\":\"1000\",\"dataType\":\"Integer\",\"allowedValues\":\"1-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/deadlock_timeout\",\"name\":\"deadlock_timeout\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Logs each query\u0027s execution plan.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/debug_print_plan\",\"name\":\"debug_print_plan\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Logs each query\u0027s rewritten parse tree.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/debug_print_rewritten\",\"name\":\"debug_print_rewritten\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"100\",\"description\":\"Sets the default statistics target.\",\"defaultValue\":\"100\",\"dataType\":\"Integer\",\"allowedValues\":\"1-10000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/default_statistics_target\",\"name\":\"default_statistics_target\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"pg_catalog.english\",\"description\":\"Sets default text search configuration.\",\"defaultValue\":\"pg_catalog.english\",\"dataType\":\"String\",\"allowedValues\":\"[A-Za-z\\\\._]+\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/default_text_search_config\",\"name\":\"default_text_search_config\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Sets the default deferrable status of new transactions.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/default_transaction_deferrable\",\"name\":\"default_transaction_deferrable\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"read committed\",\"description\":\"Sets the transaction isolation level of each new transaction.\",\"defaultValue\":\"read committed\",\"dataType\":\"Enumeration\",\"allowedValues\":\"serializable,repeatable read,read committed,read uncommitted\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/default_transaction_isolation\",\"name\":\"default_transaction_isolation\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Sets the default read-only status of new transactions.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/default_transaction_read_only\",\"name\":\"default_transaction_read_only\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Create new tables with OIDs by default.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/default_with_oids\",\"name\":\"default_with_oids\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of bitmap-scan plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/enable_bitmapscan\",\"name\":\"enable_bitmapscan\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of hashed aggregation plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/enable_hashagg\",\"name\":\"enable_hashagg\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of hash join plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/enable_hashjoin\",\"name\":\"enable_hashjoin\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of index-only-scan plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/enable_indexonlyscan\",\"name\":\"enable_indexonlyscan\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of index-scan plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/enable_indexscan\",\"name\":\"enable_indexscan\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of materialization.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/enable_material\",\"name\":\"enable_material\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of merge join plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/enable_mergejoin\",\"name\":\"enable_mergejoin\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of nested-loop join plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/enable_nestloop\",\"name\":\"enable_nestloop\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of sequential-scan plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/enable_seqscan\",\"name\":\"enable_seqscan\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of explicit sort steps.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/enable_sort\",\"name\":\"enable_sort\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of TID scan plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/enable_tidscan\",\"name\":\"enable_tidscan\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Warn about backslash escapes in ordinary string literals.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/escape_string_warning\",\"name\":\"escape_string_warning\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Terminate session on any error.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/exit_on_error\",\"name\":\"exit_on_error\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Sets the number of digits displayed for floating-point values.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"-15-3\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/extra_float_digits\",\"name\":\"extra_float_digits\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"8\",\"description\":\"Sets the FROM-list size beyond which subqueries are not collapsed.\",\"defaultValue\":\"8\",\"dataType\":\"Integer\",\"allowedValues\":\"1-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/from_collapse_limit\",\"name\":\"from_collapse_limit\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables genetic query optimization.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/geqo\",\"name\":\"geqo\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"5\",\"description\":\"GEQO: effort is used to set the default for other GEQO parameters.\",\"defaultValue\":\"5\",\"dataType\":\"Integer\",\"allowedValues\":\"1-10\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/geqo_effort\",\"name\":\"geqo_effort\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"GEQO: number of iterations of the algorithm.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/geqo_generations\",\"name\":\"geqo_generations\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"GEQO: number of individuals in the population.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/geqo_pool_size\",\"name\":\"geqo_pool_size\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0.0\",\"description\":\"GEQO: seed for random path selection.\",\"defaultValue\":\"0.0\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/geqo_seed\",\"name\":\"geqo_seed\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"2.0\",\"description\":\"GEQO: selective pressure within the population.\",\"defaultValue\":\"2.0\",\"dataType\":\"Numeric\",\"allowedValues\":\"1.5-2\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/geqo_selection_bias\",\"name\":\"geqo_selection_bias\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"12\",\"description\":\"Sets the threshold of FROM items beyond which GEQO is used.\",\"defaultValue\":\"12\",\"dataType\":\"Integer\",\"allowedValues\":\"2-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/geqo_threshold\",\"name\":\"geqo_threshold\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Sets the maximum allowed result for exact search by GIN.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/gin_fuzzy_search_limit\",\"name\":\"gin_fuzzy_search_limit\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"postgres\",\"description\":\"Sets the display format for interval values.\",\"defaultValue\":\"postgres\",\"dataType\":\"Enumeration\",\"allowedValues\":\"postgres,postgres_verbose,sql_standard,iso_8601\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/intervalstyle\",\"name\":\"intervalstyle\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"8\",\"description\":\"Sets the FROM-list size beyond which JOIN constructs are not flattened.\",\"defaultValue\":\"8\",\"dataType\":\"Integer\",\"allowedValues\":\"1-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/join_collapse_limit\",\"name\":\"join_collapse_limit\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Sets the maximum allowed duration (in milliseconds) of any wait for a lock. 0 turns this off.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/lock_timeout\",\"name\":\"lock_timeout\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Logs each checkpoint.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/log_checkpoints\",\"name\":\"log_checkpoints\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Logs each successful connection.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/log_connections\",\"name\":\"log_connections\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Logs end of a session, including duration.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/log_disconnections\",\"name\":\"log_disconnections\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Logs the duration of each completed SQL statement.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/log_duration\",\"name\":\"log_duration\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"default\",\"description\":\"Sets the verbosity of logged messages.\",\"defaultValue\":\"default\",\"dataType\":\"Enumeration\",\"allowedValues\":\"terse,default,verbose\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/log_error_verbosity\",\"name\":\"log_error_verbosity\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"%t-%c-\",\"description\":\"Sets the printf-style string that is output at the beginning of each log line.\",\"defaultValue\":\"%t-%c-\",\"dataType\":\"String\",\"allowedValues\":\".*\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/log_line_prefix\",\"name\":\"log_line_prefix\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Logs long lock waits.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/log_lock_waits\",\"name\":\"log_lock_waits\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"-1\",\"description\":\"Sets the minimum execution time (in milliseconds) above which statements will be logged. -1 disables logging statement durations.\",\"defaultValue\":\"-1\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/log_min_duration_statement\",\"name\":\"log_min_duration_statement\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"error\",\"description\":\"Causes all statements generating error at or above this level to be logged.\",\"defaultValue\":\"error\",\"dataType\":\"Enumeration\",\"allowedValues\":\"debug5,debug4,debug3,debug2,debug1,info,notice,warning,error,log,fatal,panic\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/log_min_error_statement\",\"name\":\"log_min_error_statement\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"warning\",\"description\":\"Sets the message levels that are logged.\",\"defaultValue\":\"warning\",\"dataType\":\"Enumeration\",\"allowedValues\":\"debug5,debug4,debug3,debug2,debug1,info,notice,warning,error,log,fatal,panic\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/log_min_messages\",\"name\":\"log_min_messages\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"none\",\"description\":\"Sets the type of statements logged.\",\"defaultValue\":\"none\",\"dataType\":\"Enumeration\",\"allowedValues\":\"none,ddl,mod,all\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/log_statement\",\"name\":\"log_statement\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"For each query, writes cumulative performance statistics to the server log.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/log_statement_stats\",\"name\":\"log_statement_stats\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"64\",\"description\":\"Sets the maximum number of locks per transaction. Any change requires restarting the server to take effect. When running a replica server, you must set this parameter to the same or higher value than on the master server.\",\"defaultValue\":\"64\",\"dataType\":\"Integer\",\"allowedValues\":\"10-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/max_locks_per_transaction\",\"name\":\"max_locks_per_transaction\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Sets the maximum number of simultaneously prepared transactions. Any change requires restarting the server to take effect. When running a replica server, you must set this parameter to the same or higher value than on the master server.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-8388607\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/max_prepared_transactions\",\"name\":\"max_prepared_transactions\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"When generating SQL fragments, quote all identifiers.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/quote_all_identifiers\",\"name\":\"quote_all_identifiers\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"4.0\",\"description\":\"Sets the planner\u0027s estimate of the cost of a nonsequentially fetched disk page.\",\"defaultValue\":\"4.0\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1.79769e+308\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/random_page_cost\",\"name\":\"random_page_cost\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"\\\"$user\\\", public\",\"description\":\"Sets the schema search order for names that are not schema-qualified.\",\"defaultValue\":\"\\\"$user\\\", public\",\"dataType\":\"String\",\"allowedValues\":\"[A-Za-z.\\\"$, ]+\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/search_path\",\"name\":\"search_path\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"1.0\",\"description\":\"Sets the planner\u0027s estimate of the cost of a sequentially fetched disk page.\",\"defaultValue\":\"1.0\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1.79769e+308\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/seq_page_cost\",\"name\":\"seq_page_cost\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Causes subtables to be included by default in various commands.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/sql_inheritance\",\"name\":\"sql_inheritance\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Sets the maximum allowed duration (in milliseconds) of any statement. 0 turns this off.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/statement_timeout\",\"name\":\"statement_timeout\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enable synchronized sequential scans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/synchronize_seqscans\",\"name\":\"synchronize_seqscans\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Sets the current transaction\u0027s synchronization level.\",\"defaultValue\":\"on\",\"dataType\":\"Enumeration\",\"allowedValues\":\"local,remote_write,on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/synchronous_commit\",\"name\":\"synchronous_commit\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Treats \\\"expr=NULL\\\" as \\\"expr IS NULL\\\".\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/transform_null_equals\",\"name\":\"transform_null_equals\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"base64\",\"description\":\"Sets how binary values are to be encoded in XML.\",\"defaultValue\":\"base64\",\"dataType\":\"Enumeration\",\"allowedValues\":\"base64,hex\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/xmlbinary\",\"name\":\"xmlbinary\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"content\",\"description\":\"Sets whether XML data in implicit parsing and serialization operations is to be considered as documents or content fragments.\",\"defaultValue\":\"content\",\"dataType\":\"Enumeration\",\"allowedValues\":\"content,document\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/xmloption\",\"name\":\"xmloption\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Forces use of parallel query facilities.\",\"defaultValue\":\"off\",\"dataType\":\"Enumeration\",\"allowedValues\":\"off,on,regress\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/force_parallel_mode\",\"name\":\"force_parallel_mode\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Sets the maximum allowed duration of any idling transaction. Unit is ms.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/idle_in_transaction_session_timeout\",\"name\":\"idle_in_transaction_session_timeout\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Sets the maximum number of parallel processes per executor node.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1024\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/max_parallel_workers_per_gather\",\"name\":\"max_parallel_workers_per_gather\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"8388608\",\"description\":\"Sets the minimum size of relations to be considered for parallel scan. Unit is 8kb.\",\"defaultValue\":\"8388608\",\"dataType\":\"Integer\",\"allowedValues\":\"0-715827882\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/min_parallel_relation_size\",\"name\":\"min_parallel_relation_size\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"1000\",\"description\":\"Sets the planner\u0027s estimate of the cost of starting up worker processes for parallel query.\",\"defaultValue\":\"1000\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1.79769e+308\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/parallel_setup_cost\",\"name\":\"parallel_setup_cost\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0.1\",\"description\":\"Sets the planner\u0027s estimate of the cost of passing each tuple (row) from worker to master backend.\",\"defaultValue\":\"0.1\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1.79769e+308\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/parallel_tuple_cost\",\"name\":\"parallel_tuple_cost\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"4096\",\"description\":\"Sets the amount of memory to be used by internal sort operations and hash tables before writing to temporary disk files. Unit is kb.\",\"defaultValue\":\"4096\",\"dataType\":\"Integer\",\"allowedValues\":\"4096-2097151\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/work_mem\",\"name\":\"work_mem\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"8192\",\"description\":\"Sets the maximum number of temporary buffers used by each database session. Unit is 8kb.\",\"defaultValue\":\"8192\",\"dataType\":\"Integer\",\"allowedValues\":\"8192-16384\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/temp_buffers\",\"name\":\"temp_buffers\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables temporary connection throttling per IP for too many invalid password login failures.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/connection_throttling\",\"name\":\"connection_throttling\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"3\",\"description\":\"Sets how many days a log file is saved for.\",\"defaultValue\":\"3\",\"dataType\":\"Integer\",\"allowedValues\":\"1-7\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/log_retention_days\",\"name\":\"log_retention_days\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"6000\",\"description\":\"Sets the maximum query text length that will be saved; longer queries will be truncated.\",\"defaultValue\":\"6000\",\"dataType\":\"Integer\",\"allowedValues\":\"100-10000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/pg_qs.max_query_text_length\",\"name\":\"pg_qs.max_query_text_length\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"none\",\"description\":\"Selects which statements are tracked by pg_qs.\",\"defaultValue\":\"none\",\"dataType\":\"Enumeration\",\"allowedValues\":\"all,top,none\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/pg_qs.query_capture_mode\",\"name\":\"pg_qs.query_capture_mode\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"7\",\"description\":\"Sets the retention period window in days for pg_qs - after this time data will be deleted.\",\"defaultValue\":\"7\",\"dataType\":\"Integer\",\"allowedValues\":\"1-30\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/pg_qs.retention_period_in_days\",\"name\":\"pg_qs.retention_period_in_days\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Selects whether parameter placeholders are replaced in parameterized queries.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/pg_qs.replace_parameter_placeholders\",\"name\":\"pg_qs.replace_parameter_placeholders\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Selects whether utility commands are tracked by pg_qs.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/pg_qs.track_utility\",\"name\":\"pg_qs.track_utility\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"top\",\"description\":\"Controls which statements are counted by pg_stat_statements.\",\"defaultValue\":\"top\",\"dataType\":\"Enumeration\",\"allowedValues\":\"top,all,none\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/pg_stat_statements.track\",\"name\":\"pg_stat_statements.track\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"none\",\"description\":\"Selects which statements are tracked by the pgms_wait_sampling extension.\",\"defaultValue\":\"none\",\"dataType\":\"Enumeration\",\"allowedValues\":\"all,none\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/pgms_wait_sampling.query_capture_mode\",\"name\":\"pgms_wait_sampling.query_capture_mode\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"100\",\"description\":\"Set the frequency, in milliseconds, at which wait events are sampled.\",\"defaultValue\":\"100\",\"dataType\":\"Integer\",\"allowedValues\":\"1-600000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/pgms_wait_sampling.history_period\",\"name\":\"pgms_wait_sampling.history_period\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"DISABLE_ALL\",\"description\":\"Controls postgis GDAL enabled driver settings.\",\"defaultValue\":\"DISABLE_ALL\",\"dataType\":\"Enumeration\",\"allowedValues\":\"DISABLE_ALL,ENABLE_ALL\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/postgis.gdal_enabled_drivers\",\"name\":\"postgis.gdal_enabled_drivers\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Starts the autovacuum subprocess.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/autovacuum\",\"name\":\"autovacuum\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0.05\",\"description\":\"Number of tuple inserts, updates, or deletes prior to analyze as a fraction of reltuples.\",\"defaultValue\":\"0.05\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-100\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/autovacuum_analyze_scale_factor\",\"name\":\"autovacuum_analyze_scale_factor\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"50\",\"description\":\"Minimum number of tuple inserts, updates, or deletes prior to analyze.\",\"defaultValue\":\"50\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/autovacuum_analyze_threshold\",\"name\":\"autovacuum_analyze_threshold\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"200000000\",\"description\":\"Age at which to autovacuum a table to prevent transaction ID wraparound. Any change requires restarting the server to take effect..\",\"defaultValue\":\"200000000\",\"dataType\":\"Integer\",\"allowedValues\":\"100000-2000000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/autovacuum_freeze_max_age\",\"name\":\"autovacuum_freeze_max_age\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"400000000\",\"description\":\"Multixact age at which to autovacuum a table to prevent multixact wraparound. Any change requires restarting the server to take effect.\",\"defaultValue\":\"400000000\",\"dataType\":\"Integer\",\"allowedValues\":\"10000-2000000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/autovacuum_multixact_freeze_max_age\",\"name\":\"autovacuum_multixact_freeze_max_age\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"15\",\"description\":\"Time to sleep between autovacuum runs. Unit is s.\",\"defaultValue\":\"15\",\"dataType\":\"Integer\",\"allowedValues\":\"1-2147483\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/autovacuum_naptime\",\"name\":\"autovacuum_naptime\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"20\",\"description\":\"Vacuum cost delay in milliseconds, for autovacuum.\",\"defaultValue\":\"20\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-100\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/autovacuum_vacuum_cost_delay\",\"name\":\"autovacuum_vacuum_cost_delay\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"-1\",\"description\":\"Vacuum cost amount available before napping, for autovacuum.\",\"defaultValue\":\"-1\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-10000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/autovacuum_vacuum_cost_limit\",\"name\":\"autovacuum_vacuum_cost_limit\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0.05\",\"description\":\"Number of tuple updates or deletes prior to vacuum as a fraction of reltuples.\",\"defaultValue\":\"0.05\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-100\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/autovacuum_vacuum_scale_factor\",\"name\":\"autovacuum_vacuum_scale_factor\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"50\",\"description\":\"Minimum number of tuple updates or deletes prior to vacuum.\",\"defaultValue\":\"50\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/autovacuum_vacuum_threshold\",\"name\":\"autovacuum_vacuum_threshold\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"-1\",\"description\":\"Sets the maximum memory to be used by each autovacuum worker process. Unit is kb.\",\"defaultValue\":\"-1\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-2097151\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/autovacuum_work_mem\",\"name\":\"autovacuum_work_mem\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"3\",\"description\":\"Sets the maximum number of simultaneously running autovacuum worker processes. Any change requires restarting the server to take effect.\",\"defaultValue\":\"3\",\"dataType\":\"Integer\",\"allowedValues\":\"1-262143\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/autovacuum_max_workers\",\"name\":\"autovacuum_max_workers\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Number of pages after which previously performed writes are flushed to disk. Unit is 8kb.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-256\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/backend_flush_after\",\"name\":\"backend_flush_after\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"200\",\"description\":\"Background writer sleep time between rounds. Unit is ms.\",\"defaultValue\":\"200\",\"dataType\":\"Integer\",\"allowedValues\":\"10-10000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/bgwriter_delay\",\"name\":\"bgwriter_delay\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"64\",\"description\":\"Number of pages after which previously performed writes are flushed to disk. Unit is 8kb.\",\"defaultValue\":\"64\",\"dataType\":\"Integer\",\"allowedValues\":\"0-256\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/bgwriter_flush_after\",\"name\":\"bgwriter_flush_after\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"100\",\"description\":\"Background writer maximum number of LRU pages to flush per round.\",\"defaultValue\":\"100\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1073741823\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/bgwriter_lru_maxpages\",\"name\":\"bgwriter_lru_maxpages\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"2\",\"description\":\"Multiple of the average buffer usage to free per round.\",\"defaultValue\":\"2\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-10\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/bgwriter_lru_multiplier\",\"name\":\"bgwriter_lru_multiplier\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"30\",\"description\":\"Enables warnings if checkpoint segments are filled more frequently than this. Unit is s.\",\"defaultValue\":\"30\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/checkpoint_warning\",\"name\":\"checkpoint_warning\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Sets the delay in microseconds between transaction commit and flushing WAL to disk.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-100000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/commit_delay\",\"name\":\"commit_delay\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"5\",\"description\":\"Sets the minimum concurrent open transactions before performing commit_delay.\",\"defaultValue\":\"5\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/commit_siblings\",\"name\":\"commit_siblings\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"1310720\",\"description\":\"Sets the planner\u0027s assumption about the size of the disk cache. Unit is 8kb.\",\"defaultValue\":\"917504\",\"dataType\":\"Integer\",\"allowedValues\":\"1-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/effective_cache_size\",\"name\":\"effective_cache_size\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"4096\",\"description\":\"Sets the maximum size of the pending list for GIN index. Unit is kb.\",\"defaultValue\":\"4096\",\"dataType\":\"Integer\",\"allowedValues\":\"64-2097151\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/gin_pending_list_limit\",\"name\":\"gin_pending_list_limit\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"English_United States.1252\",\"description\":\"Sets the locale for formatting monetary amounts.\",\"defaultValue\":\"English_United States.1252\",\"dataType\":\"String\",\"allowedValues\":\"[A-Za-z0-9\\\\._\\\\s]+\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/lc_monetary\",\"name\":\"lc_monetary\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"English_United States.1252\",\"description\":\"Sets the locale for formatting numbers.\",\"defaultValue\":\"English_United States.1252\",\"dataType\":\"String\",\"allowedValues\":\"[A-Za-z0-9\\\\._\\\\s]+\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/lc_numeric\",\"name\":\"lc_numeric\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Enables backward compatibility mode for privilege checks on large objects.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/lo_compat_privileges\",\"name\":\"lo_compat_privileges\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"-1\",\"description\":\"Sets the minimum execution time above which autovacuum actions will be logged. Unit is ms.\",\"defaultValue\":\"-1\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/log_autovacuum_min_duration\",\"name\":\"log_autovacuum_min_duration\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Logs each replication command.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/log_replication_commands\",\"name\":\"log_replication_commands\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"-1\",\"description\":\"Log the use of temporary files larger than this number of kilobytes.\",\"defaultValue\":\"-1\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/log_temp_files\",\"name\":\"log_temp_files\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"30000\",\"description\":\"Sets the maximum delay before canceling queries when a hot standby server is processing archived WAL data. Unit is ms.\",\"defaultValue\":\"30000\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/max_standby_archive_delay\",\"name\":\"max_standby_archive_delay\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"30000\",\"description\":\"Sets the maximum delay before canceling queries when a hot standby server is processing streamed WAL data. Unit is ms.\",\"defaultValue\":\"30000\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/max_standby_streaming_delay\",\"name\":\"max_standby_streaming_delay\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"Sets the WAL size that triggers a checkpoint. Unit is 16MB.\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"2-2097151\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/max_wal_size\",\"name\":\"max_wal_size\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"256\",\"description\":\"Sets the minimum size to shrink the WAL to. Unit is 16MB.\",\"defaultValue\":\"512\",\"dataType\":\"Integer\",\"allowedValues\":\"2-2097151\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/min_wal_size\",\"name\":\"min_wal_size\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"-1\",\"description\":\"Time before a snapshot is too old to read pages changed after the snapshot was taken. Any change requires restarting the server to take effect. Unit is min.\",\"defaultValue\":\"-1\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-86400\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/old_snapshot_threshold\",\"name\":\"old_snapshot_threshold\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Emit a warning for constructs that changed meaning since PostgreSQL 9.4.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/operator_precedence_warning\",\"name\":\"operator_precedence_warning\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"5000\",\"description\":\"Sets the maximum number of statements tracked by pg_stat_statements. Any change requires restarting the server to take effect.\",\"defaultValue\":\"5000\",\"dataType\":\"Integer\",\"allowedValues\":\"100-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/pg_stat_statements.max\",\"name\":\"pg_stat_statements.max\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Save pg_stat_statements statistics across server shutdowns.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/pg_stat_statements.save\",\"name\":\"pg_stat_statements.save\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Selects whether utility commands are tracked by pg_stat_statements.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/pg_stat_statements.track_utility\",\"name\":\"pg_stat_statements.track_utility\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"150000\",\"description\":\"Sets the maximum number of tuples to be sorted using replacement selection.\",\"defaultValue\":\"150000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/replacement_sort_tuples\",\"name\":\"replacement_sort_tuples\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enable row security.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/row_security\",\"name\":\"row_security\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"origin\",\"description\":\"Sets the session\u0027s behavior for triggers and rewrite rules.\",\"defaultValue\":\"origin\",\"dataType\":\"Enumeration\",\"allowedValues\":\"origin,replica,local\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/session_replication_role\",\"name\":\"session_replication_role\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Maximum number of TCP keepalive retransmits.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/tcp_keepalives_count\",\"name\":\"tcp_keepalives_count\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Time between issuing TCP keepalives. Unit is s.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/tcp_keepalives_idle\",\"name\":\"tcp_keepalives_idle\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Time between TCP keepalive retransmits. Unit is s.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/tcp_keepalives_interval\",\"name\":\"tcp_keepalives_interval\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Collects information about executing commands.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/track_activities\",\"name\":\"track_activities\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"Sets the size reserved for pg_stat_activity.query, in bytes. Any change requires restarting the server to take effect.\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"100-102400\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/track_activity_query_size\",\"name\":\"track_activity_query_size\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Collects transaction commit time. Any change requires restarting the server to take effect.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/track_commit_timestamp\",\"name\":\"track_commit_timestamp\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Collects statistics on database activity.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/track_counts\",\"name\":\"track_counts\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"none\",\"description\":\"Collects function-level statistics on database activity.\",\"defaultValue\":\"none\",\"dataType\":\"Enumeration\",\"allowedValues\":\"none,pl,all\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/track_functions\",\"name\":\"track_functions\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Collects timing statistics for database I/O activity.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/track_io_timing\",\"name\":\"track_io_timing\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"UTC\",\"description\":\"Sets the time zone for displaying and interpreting time stamps\",\"defaultValue\":\"UTC\",\"dataType\":\"String\",\"allowedValues\":\"[A-Za-z0-9/+-_]+\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/timezone\",\"name\":\"timezone\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"\",\"description\":\"Sets which shared libraries are preloaded at server start. Any change requires a restart to take effect.\",\"defaultValue\":\"\",\"dataType\":\"Set\",\"allowedValues\":\",pgaudit,timescaledb\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/shared_preload_libraries\",\"name\":\"shared_preload_libraries\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Vacuum cost delay in milliseconds.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-100\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/vacuum_cost_delay\",\"name\":\"vacuum_cost_delay\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"200\",\"description\":\"Vacuum cost amount available before napping.\",\"defaultValue\":\"200\",\"dataType\":\"Integer\",\"allowedValues\":\"1-10000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/vacuum_cost_limit\",\"name\":\"vacuum_cost_limit\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"20\",\"description\":\"Vacuum cost for a page dirtied by vacuum.\",\"defaultValue\":\"20\",\"dataType\":\"Integer\",\"allowedValues\":\"0-10000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/vacuum_cost_page_dirty\",\"name\":\"vacuum_cost_page_dirty\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"Vacuum cost for a page found in the buffer cache.\",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"0-10000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/vacuum_cost_page_hit\",\"name\":\"vacuum_cost_page_hit\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"Vacuum cost for a page not found in the buffer cache.\",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"0-10000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/vacuum_cost_page_miss\",\"name\":\"vacuum_cost_page_miss\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Number of transactions by which VACUUM and HOT cleanup should be deferred, if any.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/vacuum_defer_cleanup_age\",\"name\":\"vacuum_defer_cleanup_age\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"50000000\",\"description\":\"Minimum age at which VACUUM should freeze a table row.\",\"defaultValue\":\"50000000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/vacuum_freeze_min_age\",\"name\":\"vacuum_freeze_min_age\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"150000000\",\"description\":\"Age at which VACUUM should scan whole table to freeze tuples.\",\"defaultValue\":\"150000000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2000000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/vacuum_freeze_table_age\",\"name\":\"vacuum_freeze_table_age\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"5000000\",\"description\":\"Minimum age at which VACUUM should freeze a MultiXactId in a table row.\",\"defaultValue\":\"5000000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/vacuum_multixact_freeze_min_age\",\"name\":\"vacuum_multixact_freeze_min_age\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"150000000\",\"description\":\"Multixact age at which VACUUM should scan whole table to freeze tuples.\",\"defaultValue\":\"150000000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2000000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/vacuum_multixact_freeze_table_age\",\"name\":\"vacuum_multixact_freeze_table_age\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"8192\",\"description\":\"Sets the number of disk-page buffers in shared memory for WAL. Any change requires restarting the server to take effect. Unit is 8kb.\",\"defaultValue\":\"8192\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-262143\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/wal_buffers\",\"name\":\"wal_buffers\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"Sets the maximum interval between WAL receiver status reports to the primary. Unit is s.\",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/wal_receiver_status_interval\",\"name\":\"wal_receiver_status_interval\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"200\",\"description\":\"Time between WAL flushes performed in the WAL writer. Unit is ms.\",\"defaultValue\":\"200\",\"dataType\":\"Integer\",\"allowedValues\":\"1-10000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/wal_writer_delay\",\"name\":\"wal_writer_delay\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"128\",\"description\":\"Amount of WAL written out by WAL writer that triggers a flush. Unit is 8kb.\",\"defaultValue\":\"128\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/wal_writer_flush_after\",\"name\":\"wal_writer_flush_after\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"262144\",\"description\":\"Sets the maximum memory to be used for maintenance operations. Unit is kb.\",\"defaultValue\":\"131072\",\"dataType\":\"Integer\",\"allowedValues\":\"1024-2097151\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/maintenance_work_mem\",\"name\":\"maintenance_work_mem\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"REPLICA\",\"description\":\"Sets the level of replication support (Read Replicas). Any change requires restarting the server to take effect.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"OFF,REPLICA,LOGICAL\",\"source\":\"user-override\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/azure.replication_support\",\"name\":\"azure.replication_support\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"Specifies the maximum number of concurrent connections from standby servers or streaming base backup clients (i.e., the maximum number of simultaneously running WAL sender processes).\",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"10-80\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/max_wal_senders\",\"name\":\"max_wal_senders\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"Specifies the maximum number of replication slots that the server can support.\",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"10-80\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/max_replication_slots\",\"name\":\"max_replication_slots\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Allows feedback from a hot standby to the primary that will avoid query conflicts.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/hot_standby_feedback\",\"name\":\"hot_standby_feedback\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enable .log files. Setting is independent of Azure Monitor logging options. Any change requires restarting the server to take effect.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/logging_collector\",\"name\":\"logging_collector\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"}]}" } }, - "Get-AzPostgreSqlConfiguration+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/timezone?api-version=2017-12-01+1": { + "Get-AzPostgreSqlConfiguration+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/timezone?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/timezone?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/timezone?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "11" ], @@ -74,13 +74,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"value\":\"UTC\",\"description\":\"Sets the time zone for displaying and interpreting time stamps\",\"defaultValue\":\"UTC\",\"dataType\":\"String\",\"allowedValues\":\"[A-Za-z0-9/+-_]+\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/timezone\",\"name\":\"timezone\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"}" + "Content": "{\"properties\":{\"value\":\"UTC\",\"description\":\"Sets the time zone for displaying and interpreting time stamps\",\"defaultValue\":\"UTC\",\"dataType\":\"String\",\"allowedValues\":\"[A-Za-z0-9/+-_]+\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/timezone\",\"name\":\"timezone\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"}" } }, - "Get-AzPostgreSqlConfiguration+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/datestyle?api-version=2017-12-01+1": { + "Get-AzPostgreSqlConfiguration+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/datestyle?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/datestyle?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/datestyle?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "12" ], @@ -113,7 +113,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"value\":\"iso, mdy\",\"description\":\"Sets the display format for date and time values.\",\"defaultValue\":\"iso, mdy\",\"dataType\":\"String\",\"allowedValues\":\"(iso|postgres|sql|german)\\\\,\\\\s(dmy|mdy|ymd)\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/datestyle\",\"name\":\"datestyle\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"}" + "Content": "{\"properties\":{\"value\":\"iso, mdy\",\"description\":\"Sets the display format for date and time values.\",\"defaultValue\":\"iso, mdy\",\"dataType\":\"String\",\"allowedValues\":\"(iso|postgres|sql|german)\\\\,\\\\s(dmy|mdy|ymd)\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/datestyle\",\"name\":\"datestyle\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"}" } } } \ No newline at end of file diff --git a/src/PostgreSql/test/Get-AzPostgreSqlConfiguration.Tests.ps1 b/src/PostgreSql/test/Get-AzPostgreSqlConfiguration.Tests.ps1 index 1ddbf27b27fd..ca4e2f2ba301 100644 --- a/src/PostgreSql/test/Get-AzPostgreSqlConfiguration.Tests.ps1 +++ b/src/PostgreSql/test/Get-AzPostgreSqlConfiguration.Tests.ps1 @@ -22,7 +22,7 @@ Describe 'Get-AzPostgreSqlConfiguration' { $config.Name | Should -Be timezone } - It 'GetViaIdentity' { + It 'GetViaIdentity' -Skip { $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBforPostgreSQL/servers/$($env.serverName)/configurations/datestyle" $config = Get-AzPostgreSqlConfiguration -InputObject $ID $config.Name | Should -Be datestyle diff --git a/src/PostgreSql/test/Get-AzPostgreSqlConnectionString.Recording.json b/src/PostgreSql/test/Get-AzPostgreSqlConnectionString.Recording.json index 9219b6591e4c..fa73670cad59 100644 --- a/src/PostgreSql/test/Get-AzPostgreSqlConnectionString.Recording.json +++ b/src/PostgreSql/test/Get-AzPostgreSqlConnectionString.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzPostgreSqlConnectionString+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+1": { + "Get-AzPostgreSqlConnectionString+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "13" ], @@ -35,13 +35,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "Get-AzPostgreSqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+1": { + "Get-AzPostgreSqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "14" ], @@ -74,13 +74,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "Get-AzPostgreSqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+2": { + "Get-AzPostgreSqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "15" ], @@ -113,13 +113,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "Get-AzPostgreSqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+3": { + "Get-AzPostgreSqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "16" ], @@ -152,13 +152,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "Get-AzPostgreSqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+4": { + "Get-AzPostgreSqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "17" ], @@ -191,13 +191,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "Get-AzPostgreSqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+5": { + "Get-AzPostgreSqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "18" ], @@ -230,13 +230,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "Get-AzPostgreSqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+6": { + "Get-AzPostgreSqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "19" ], @@ -269,13 +269,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "Get-AzPostgreSqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+7": { + "Get-AzPostgreSqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "20" ], @@ -308,13 +308,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "Get-AzPostgreSqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+8": { + "Get-AzPostgreSqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "21" ], @@ -347,13 +347,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "Get-AzPostgreSqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+9": { + "Get-AzPostgreSqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "22" ], @@ -386,7 +386,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } } } \ No newline at end of file diff --git a/src/PostgreSql/test/Get-AzPostgreSqlFirewallRule.Recording.json b/src/PostgreSql/test/Get-AzPostgreSqlFirewallRule.Recording.json index fc091ab185c4..9e21cede00fe 100644 --- a/src/PostgreSql/test/Get-AzPostgreSqlFirewallRule.Recording.json +++ b/src/PostgreSql/test/Get-AzPostgreSqlFirewallRule.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzPostgreSqlFirewallRule+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+1": { + "Get-AzPostgreSqlFirewallRule+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"0.0.0.1\"\r\n }\r\n}", "Headers": { }, @@ -16,9 +16,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/22171d36-1cc1-4752-9c43-a828b1e8ba6e?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/22171d36-1cc1-4752-9c43-a828b1e8ba6e?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/22171d36-1cc1-4752-9c43-a828b1e8ba6e?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/22171d36-1cc1-4752-9c43-a828b1e8ba6e?api-version=2017-12-01" ], "x-ms-request-id": [ "22171d36-1cc1-4752-9c43-a828b1e8ba6e" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], @@ -36,10 +36,10 @@ "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-09-25T11:01:18.51Z\"}" } }, - "Get-AzPostgreSqlFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/22171d36-1cc1-4752-9c43-a828b1e8ba6e?api-version=2017-12-01+2": { + "Get-AzPostgreSqlFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/22171d36-1cc1-4752-9c43-a828b1e8ba6e?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/22171d36-1cc1-4752-9c43-a828b1e8ba6e?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/22171d36-1cc1-4752-9c43-a828b1e8ba6e?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "23", "24" ], @@ -76,10 +76,10 @@ "Content": "{\"name\":\"22171d36-1cc1-4752-9c43-a828b1e8ba6e\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:01:18.51Z\"}" } }, - "Get-AzPostgreSqlFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+3": { + "Get-AzPostgreSqlFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "23", "24", "25" ], @@ -112,13 +112,13 @@ "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/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBForPostgreSQL/servers/firewallRules\"}" } }, - "Get-AzPostgreSqlFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules?api-version=2017-12-01+4": { + "Get-AzPostgreSqlFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26" ], @@ -151,13 +151,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/servers/firewallRules\"}]}" + "Content": "{\"value\":[{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBForPostgreSQL/servers/firewallRules\"}]}" } }, - "Get-AzPostgreSqlFirewallRule+[NoContext]+List+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+5": { + "Get-AzPostgreSqlFirewallRule+[NoContext]+List+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "27" ], @@ -176,9 +176,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/9878a831-b877-4905-962a-868d0f84bb74?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/9878a831-b877-4905-962a-868d0f84bb74?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/9878a831-b877-4905-962a-868d0f84bb74?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/9878a831-b877-4905-962a-868d0f84bb74?api-version=2017-12-01" ], "x-ms-request-id": [ "9878a831-b877-4905-962a-868d0f84bb74" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], @@ -196,10 +196,10 @@ "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-09-25T11:01:36.557Z\"}" } }, - "Get-AzPostgreSqlFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/9878a831-b877-4905-962a-868d0f84bb74?api-version=2017-12-01+6": { + "Get-AzPostgreSqlFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/9878a831-b877-4905-962a-868d0f84bb74?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/9878a831-b877-4905-962a-868d0f84bb74?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/9878a831-b877-4905-962a-868d0f84bb74?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "27", "28" ], @@ -236,10 +236,10 @@ "Content": "{\"name\":\"9878a831-b877-4905-962a-868d0f84bb74\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:01:36.557Z\"}" } }, - "Get-AzPostgreSqlFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/9878a831-b877-4905-962a-868d0f84bb74?api-version=2017-12-01+7": { + "Get-AzPostgreSqlFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/9878a831-b877-4905-962a-868d0f84bb74?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/9878a831-b877-4905-962a-868d0f84bb74?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/9878a831-b877-4905-962a-868d0f84bb74?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "27", "28", "29" ], @@ -274,10 +274,10 @@ "Content": null } }, - "Get-AzPostgreSqlFirewallRule+[NoContext]+Get+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+1": { + "Get-AzPostgreSqlFirewallRule+[NoContext]+Get+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"0.0.0.1\"\r\n }\r\n}", "Headers": { }, @@ -291,9 +291,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/f1bf892f-485f-464b-8c83-09c81ea4ed2b?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/f1bf892f-485f-464b-8c83-09c81ea4ed2b?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/f1bf892f-485f-464b-8c83-09c81ea4ed2b?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/f1bf892f-485f-464b-8c83-09c81ea4ed2b?api-version=2017-12-01" ], "x-ms-request-id": [ "f1bf892f-485f-464b-8c83-09c81ea4ed2b" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], @@ -311,10 +311,10 @@ "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-09-25T11:01:53.947Z\"}" } }, - "Get-AzPostgreSqlFirewallRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/f1bf892f-485f-464b-8c83-09c81ea4ed2b?api-version=2017-12-01+2": { + "Get-AzPostgreSqlFirewallRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/f1bf892f-485f-464b-8c83-09c81ea4ed2b?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/f1bf892f-485f-464b-8c83-09c81ea4ed2b?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/f1bf892f-485f-464b-8c83-09c81ea4ed2b?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "30", "31" ], @@ -351,10 +351,10 @@ "Content": "{\"name\":\"f1bf892f-485f-464b-8c83-09c81ea4ed2b\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:01:53.947Z\"}" } }, - "Get-AzPostgreSqlFirewallRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+3": { + "Get-AzPostgreSqlFirewallRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "30", "31", "32" ], @@ -387,13 +387,13 @@ "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/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBForPostgreSQL/servers/firewallRules\"}" } }, - "Get-AzPostgreSqlFirewallRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+4": { + "Get-AzPostgreSqlFirewallRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "33" ], @@ -426,13 +426,13 @@ "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/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBForPostgreSQL/servers/firewallRules\"}" } }, - "Get-AzPostgreSqlFirewallRule+[NoContext]+Get+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+5": { + "Get-AzPostgreSqlFirewallRule+[NoContext]+Get+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "34" ], @@ -451,9 +451,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/c7ee4fd9-05a1-486e-8ca1-ecdbb6fac9b0?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/c7ee4fd9-05a1-486e-8ca1-ecdbb6fac9b0?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c7ee4fd9-05a1-486e-8ca1-ecdbb6fac9b0?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c7ee4fd9-05a1-486e-8ca1-ecdbb6fac9b0?api-version=2017-12-01" ], "x-ms-request-id": [ "c7ee4fd9-05a1-486e-8ca1-ecdbb6fac9b0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], @@ -471,10 +471,10 @@ "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-09-25T11:02:11.76Z\"}" } }, - "Get-AzPostgreSqlFirewallRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c7ee4fd9-05a1-486e-8ca1-ecdbb6fac9b0?api-version=2017-12-01+6": { + "Get-AzPostgreSqlFirewallRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c7ee4fd9-05a1-486e-8ca1-ecdbb6fac9b0?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c7ee4fd9-05a1-486e-8ca1-ecdbb6fac9b0?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c7ee4fd9-05a1-486e-8ca1-ecdbb6fac9b0?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "34", "35" ], @@ -511,10 +511,10 @@ "Content": "{\"name\":\"c7ee4fd9-05a1-486e-8ca1-ecdbb6fac9b0\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:02:11.76Z\"}" } }, - "Get-AzPostgreSqlFirewallRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/c7ee4fd9-05a1-486e-8ca1-ecdbb6fac9b0?api-version=2017-12-01+7": { + "Get-AzPostgreSqlFirewallRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/c7ee4fd9-05a1-486e-8ca1-ecdbb6fac9b0?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/c7ee4fd9-05a1-486e-8ca1-ecdbb6fac9b0?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/c7ee4fd9-05a1-486e-8ca1-ecdbb6fac9b0?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "34", "35", "36" ], @@ -549,10 +549,10 @@ "Content": null } }, - "Get-AzPostgreSqlFirewallRule+[NoContext]+GetViaIdentity+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+1": { + "Get-AzPostgreSqlFirewallRule+[NoContext]+GetViaIdentity+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"0.0.0.1\"\r\n }\r\n}", "Headers": { }, @@ -566,9 +566,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/a188ec6d-f2ee-44c7-978f-4767bb7b695b?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/a188ec6d-f2ee-44c7-978f-4767bb7b695b?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/a188ec6d-f2ee-44c7-978f-4767bb7b695b?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/a188ec6d-f2ee-44c7-978f-4767bb7b695b?api-version=2017-12-01" ], "x-ms-request-id": [ "a188ec6d-f2ee-44c7-978f-4767bb7b695b" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], @@ -586,10 +586,10 @@ "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-09-25T11:02:29.227Z\"}" } }, - "Get-AzPostgreSqlFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/a188ec6d-f2ee-44c7-978f-4767bb7b695b?api-version=2017-12-01+2": { + "Get-AzPostgreSqlFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/a188ec6d-f2ee-44c7-978f-4767bb7b695b?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/a188ec6d-f2ee-44c7-978f-4767bb7b695b?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/a188ec6d-f2ee-44c7-978f-4767bb7b695b?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "37", "38" ], @@ -626,10 +626,10 @@ "Content": "{\"name\":\"a188ec6d-f2ee-44c7-978f-4767bb7b695b\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:02:29.227Z\"}" } }, - "Get-AzPostgreSqlFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+3": { + "Get-AzPostgreSqlFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "37", "38", "39" ], @@ -662,13 +662,13 @@ "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/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBForPostgreSQL/servers/firewallRules\"}" } }, - "Get-AzPostgreSqlFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+4": { + "Get-AzPostgreSqlFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "40" ], @@ -701,13 +701,13 @@ "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/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBForPostgreSQL/servers/firewallRules\"}" } }, - "Get-AzPostgreSqlFirewallRule+[NoContext]+GetViaIdentity+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+5": { + "Get-AzPostgreSqlFirewallRule+[NoContext]+GetViaIdentity+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "41" ], @@ -726,9 +726,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/f62f351e-3685-475e-8d98-9f7c68fb3c83?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/f62f351e-3685-475e-8d98-9f7c68fb3c83?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/f62f351e-3685-475e-8d98-9f7c68fb3c83?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/f62f351e-3685-475e-8d98-9f7c68fb3c83?api-version=2017-12-01" ], "x-ms-request-id": [ "f62f351e-3685-475e-8d98-9f7c68fb3c83" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14997" ], @@ -746,10 +746,10 @@ "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-09-25T11:02:48.087Z\"}" } }, - "Get-AzPostgreSqlFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/f62f351e-3685-475e-8d98-9f7c68fb3c83?api-version=2017-12-01+6": { + "Get-AzPostgreSqlFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/f62f351e-3685-475e-8d98-9f7c68fb3c83?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/f62f351e-3685-475e-8d98-9f7c68fb3c83?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/f62f351e-3685-475e-8d98-9f7c68fb3c83?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "41", "42" ], @@ -786,10 +786,10 @@ "Content": "{\"name\":\"f62f351e-3685-475e-8d98-9f7c68fb3c83\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:02:48.087Z\"}" } }, - "Get-AzPostgreSqlFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/f62f351e-3685-475e-8d98-9f7c68fb3c83?api-version=2017-12-01+7": { + "Get-AzPostgreSqlFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/f62f351e-3685-475e-8d98-9f7c68fb3c83?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/f62f351e-3685-475e-8d98-9f7c68fb3c83?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/f62f351e-3685-475e-8d98-9f7c68fb3c83?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "41", "42", "43" ], diff --git a/src/PostgreSql/test/Get-AzPostgreSqlFirewallRule.Tests.ps1 b/src/PostgreSql/test/Get-AzPostgreSqlFirewallRule.Tests.ps1 index 8fcafdd4149c..55673c929774 100644 --- a/src/PostgreSql/test/Get-AzPostgreSqlFirewallRule.Tests.ps1 +++ b/src/PostgreSql/test/Get-AzPostgreSqlFirewallRule.Tests.ps1 @@ -27,7 +27,7 @@ Describe 'Get-AzPostgreSqlFirewallRule' { Remove-AzPostgreSqlFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName } - It 'GetViaIdentity' { + It 'GetViaIdentity' -Skip { New-AzPostgreSqlFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBforPostgreSQL/servers/$($env.serverName)/firewallRules/$($env.firewallRuleName)" $rule = Get-AzPostgreSqlFirewallRule -InputObject $ID diff --git a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServer.Recording.json b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServer.Recording.json new file mode 100644 index 000000000000..94aea83cef93 --- /dev/null +++ b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServer.Recording.json @@ -0,0 +1,158 @@ +{ + "Get-AzPostgreSqlFlexibleServer+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSql/flexibleServers?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSql/flexibleServers?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "1845abef-64f5-4284-aadf-011562d4d5b7" ], + "CommandName": [ "Get-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Get-AzPostgreSqlFlexibleServer_List1" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-original-request-ids": [ "8d66d2bc-4f67-4425-bead-291bc6980a86", "ffb68950-04f4-4618-80e7-1b8bafb02c7c", "9130284a-138b-48fb-80f6-49b162cc70d2", "23c03be4-d6e6-4bcf-aa62-470d9832a021", "b0311350-d485-4b4b-80c6-ad295043321c" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-request-id": [ "6418c2e5-b4e7-45e1-baca-0e1e0d8401d4" ], + "x-ms-correlation-request-id": [ "6418c2e5-b4e7-45e1-baca-0e1e0d8401d4" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T205830Z:6418c2e5-b4e7-45e1-baca-0e1e0d8401d4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 11 Nov 2020 20:58:29 GMT" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ], + "Content-Length": [ "46770" ] + }, + "Content": "{\"value\":[{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"chelian-prod-t0003-u03.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"cloudsa\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":65536,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-06T14:39:22.905245+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/chelian-prod-t0003/providers/Microsoft.DBforPostgreSQL/flexibleServers/chelian-prod-t0003-u03\",\"name\":\"chelian-prod-t0003-u03\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"chelian-prod-t0003-u04.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"cloudsa\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"2\",\"storageProfile\":{\"storageMB\":524288,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-06T15:00:57.2564366+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group0064522515/providers/Microsoft.DBforPostgreSQL/flexibleServers/chelian-prod-t0003-u04\",\"name\":\"chelian-prod-t0003-u04\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"chelian-prod-t0003-u05.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"cloudsa\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":524288,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-06T14:50:34.3693353+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/chelian-prod-t0003/providers/Microsoft.DBforPostgreSQL/flexibleServers/chelian-prod-t0003-u05\",\"name\":\"chelian-prod-t0003-u05\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_E2s_v3\",\"tier\":\"MemoryOptimized\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"chelian-prod-t0004-u03.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"cloudsa\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"2\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-07T04:19:57.3684699+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/chelian-prod-t0004/providers/Microsoft.DBforPostgreSQL/flexibleServers/chelian-prod-t0004-u03-ouji\",\"name\":\"chelian-prod-t0004-u03\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_E2s_v3\",\"tier\":\"MemoryOptimized\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"cloudsa\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"2\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-07T14:05:38.7071496+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/chelian-prod-t0004/providers/Microsoft.DBforPostgreSQL/flexibleServers/chelian-prod-t0004-u03-pitr\",\"name\":\"chelian-prod-t0004-u03-pitr\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_E2s_v3\",\"tier\":\"MemoryOptimized\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"chelian-prod-t0004-u04.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"cloudsa\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":1048576,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-06T15:07:08.8962707+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/chelian-prod-t0004/providers/Microsoft.DBforPostgreSQL/flexibleServers/chelian-prod-t0004-u04\",\"name\":\"chelian-prod-t0004-u04\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_E2s_v3\",\"tier\":\"MemoryOptimized\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"chelian-prod-t0004-u05.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"cloudsa\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":1048576,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-07T04:26:49.8990926+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/chelian-prod-t0004/providers/Microsoft.DBforPostgreSQL/flexibleServers/chelian-prod-t0004-u05-uwip\",\"name\":\"chelian-prod-t0004-u05\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D4s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":4},\"properties\":{\"fullyQualifiedDomainName\":\"huihvnetjae09212033fspg.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"postgres\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/huihvnetjae09212033/providers/Microsoft.Network/virtualNetworks/huihvnetjae09212033-vnet/subnets/huihvnetjae09212033-vnet-subnet\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"storageProfile\":{\"storageMB\":2097152,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:29.8721055+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/huihvnetjae09212033/providers/Microsoft.DBforPostgreSQL/flexibleServers/huihvnetjae09212033fspg\",\"name\":\"huihvnetjae09212033fspg\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"pg-test233.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"cloudsa\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:29.8721055+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/zhjtest/providers/Microsoft.DBforPostgreSQL/flexibleServers/pg-test233\",\"name\":\"pg-test233\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"createtest.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"adminuser\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"2\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-11T20:19:27.7999027+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/daeun-powershell-postgresql/providers/Microsoft.DBforPostgreSQL/flexibleServers/createtest\",\"name\":\"createtest\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"daeun-powershell-pgserver.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"daeunyim\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"\",\"state\":\"Stopped\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":13},\"earliestRestoreDate\":\"2020-11-07T22:29:47.8237558+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/daeun-powershell-postgresql/providers/Microsoft.DBforPostgreSQL/flexibleServers/daeun-powershell-pgserver\",\"name\":\"daeun-powershell-pgserver\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_B2s\",\"tier\":\"Burstable\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"kalyans-flex1.postgres.database.azure.com\",\"version\":\"11\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"pguser\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"2\",\"storageProfile\":{\"storageMB\":32768,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.2582548+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/KalyanSRG/providers/Microsoft.DBforPostgreSQL/flexibleServers/kalyans-flex1\",\"name\":\"kalyans-flex1\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"mjtest-cli.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"lovingGnat8\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-05T19:25:08.0949758+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/moljain-flexserver/providers/Microsoft.DBforPostgreSQL/flexibleServers/mjtest-cli\",\"name\":\"mjtest-cli\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"nik1110-flex001.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"azureuser\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/akamath/providers/Microsoft.Network/virtualNetworks/eastusflexvnet/subnets/eastusflexsubnet\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-11T06:17:17.4434069+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/nik1110-flex001/providers/Microsoft.DBforPostgreSQL/flexibleServers/nik1110-flex001\",\"name\":\"nik1110-flex001\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D8s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":8},\"properties\":{\"fullyQualifiedDomainName\":\"pgbouncerdemo.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"postgres\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.2582548+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/akamath/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgbouncerdemo\",\"name\":\"pgbouncerdemo\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"pg-test-restore.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"daeunyim\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"2\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-07T23:03:43.0105302+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/daeun-powershell-postgresql/providers/Microsoft.DBforPostgreSQL/flexibleServers/pg-test-restore\",\"name\":\"pg-test-restore\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-flexible-test-100.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"adminuser\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"\",\"state\":\"Stopped\",\"availabilityZone\":\"2\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-11T20:47:55.6257742+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-flexible-test-100\",\"name\":\"postgresql-flexible-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-flexible-test-100.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"postgresql_test\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-11T18:30:21.1770084+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-flexible-test-100\",\"name\":\"postgresql-flexible-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"server682508346.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"pensiveMacaw8\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group4297177205/providers/Microsoft.Network/virtualNetworks/VNET682508346/subnets/Subnet682508346\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T21:33:27.7387151+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group4297177205/providers/Microsoft.DBforPostgreSQL/flexibleServers/server682508346\",\"name\":\"server682508346\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"tzsynapsetest.postgres.database.azure.com\",\"version\":\"11\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"tezhang\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.2582548+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/tzsynapsetestrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/tzsynapsetest\",\"name\":\"tzsynapsetest\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"tzsynapsetest1.postgres.database.azure.com\",\"version\":\"11\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"tezhang\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"2\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.2582548+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/tzsynapsetestrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/tzsynapsetest1\",\"name\":\"tzsynapsetest1\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"chelianeus22.postgres.database.azure.com\",\"version\":\"11\",\"standbyCount\":1,\"haEnabled\":\"Enabled\",\"administratorLogin\":\"chelian\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"Healthy\",\"state\":\"Ready\",\"availabilityZone\":\"2\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.1186501+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/chelian/providers/Microsoft.DBforPostgreSQL/flexibleServers/chelianeus22\",\"name\":\"chelianeus22\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"chelianeus22a.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"chelianeus22\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/chelian-eus22-u0377-u01/providers/Microsoft.Network/virtualNetworks/chelian-eus22-u0377-u01-vnet/subnets/chelian-eus22-u0377-u01-vnet-sub0\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-06T02:30:32.5755568+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/chelian/providers/Microsoft.DBforPostgreSQL/flexibleServers/chelianeus22a\",\"name\":\"chelianeus22a\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"chelianeus22vnet.postgres.database.azure.com\",\"version\":\"11\",\"standbyCount\":1,\"haEnabled\":\"Enabled\",\"administratorLogin\":\"chelian\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/chelian-eus22-u0377-u01/providers/Microsoft.Network/virtualNetworks/chelian-eus22-u0377-u01-vnet/subnets/chelian-eus22-u0377-u01-vnet-sub0\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"Healthy\",\"state\":\"Ready\",\"availabilityZone\":\"2\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.1186501+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/chelian/providers/Microsoft.DBforPostgreSQL/flexibleServers/chelianeus22vnet\",\"name\":\"chelianeus22vnet\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"flextestpeering.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"postgres\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/akamath/providers/Microsoft.Network/virtualNetworks/flexvnetorig/subnets/default\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.1186501+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/akamath/providers/Microsoft.DBforPostgreSQL/flexibleServers/flextestpeering\",\"name\":\"flextestpeering\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"teja-test-12-single.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"cloudsa\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-07T00:32:41.4051848+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/teja-test-meru/providers/Microsoft.DBforPostgreSQL/flexibleServers/teja-test-12-single\",\"name\":\"teja-test-12-single\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"xizo-test-public-ip.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"xizo\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"2\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.1186501+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/xizo-u0052/providers/Microsoft.DBforPostgreSQL/flexibleServers/xizo-test-public-ip\",\"name\":\"xizo-test-public-ip\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"vikranthtest01.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"vikranth\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.2895944+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"West Europe\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/vikranthtest01/providers/Microsoft.DBforPostgreSQL/flexibleServers/vikranthtest01\",\"name\":\"vikranthtest01\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"ambrahma-pgfs-vnet-4.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"ambrahma\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/ambrahma-rg/providers/Microsoft.Network/virtualNetworks/vnet-ambrahma-pgfs-vnet-4/subnets/subnet-postgresql-flexibleservers\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":32768,\"backupRetentionDays\":8},\"earliestRestoreDate\":\"2020-11-04T20:17:08.8259711+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/ambrahma-rg/providers/Microsoft.DBforPostgreSQL/flexibleServers/ambrahma-pgfs-vnet-4\",\"name\":\"ambrahma-pgfs-vnet-4\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"ambrahma-pgfs-vnet-6.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"ambrahma\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/ambrahma-rg/providers/Microsoft.Network/virtualNetworks/vnet-ambrahma-pgfs-vnet-6/subnets/subnet-postgresql-flexibleservers\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":32768,\"backupRetentionDays\":8},\"earliestRestoreDate\":\"2020-11-04T20:34:26.3449676+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/ambrahma-rg/providers/Microsoft.DBforPostgreSQL/flexibleServers/ambrahma-pgfs-vnet-6\",\"name\":\"ambrahma-pgfs-vnet-6\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"ambrahma-pgfs-vnet-7.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"ambrahma\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/ambrahma-rg/providers/Microsoft.Network/virtualNetworks/vnet-ambrahma-pgfs-vnet-6/subnets/subnet-postgresql-flexibleservers\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":32768,\"backupRetentionDays\":8},\"earliestRestoreDate\":\"2020-11-04T21:38:58.7097105+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/ambrahma-rg/providers/Microsoft.DBforPostgreSQL/flexibleServers/ambrahma-pgfs-vnet-7\",\"name\":\"ambrahma-pgfs-vnet-7\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"ambrahma-pgfs-vnet-8.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"ambrahma\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/ambrahma-rg/providers/Microsoft.Network/virtualNetworks/vnet-ambrahma-pgfs-vnet-6/subnets/default\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":32768,\"backupRetentionDays\":8},\"earliestRestoreDate\":\"2020-11-04T21:58:12.067413+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/ambrahma-rg/providers/Microsoft.DBforPostgreSQL/flexibleServers/ambrahma-pgfs-vnet-8\",\"name\":\"ambrahma-pgfs-vnet-8\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"ambrahma-pgfs-vnet-9.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"ambrahma\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":32768,\"backupRetentionDays\":8},\"earliestRestoreDate\":\"2020-11-04T22:25:30.0433317+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/ambrahma-rg/providers/Microsoft.DBforPostgreSQL/flexibleServers/ambrahma-pgfs-vnet-9\",\"name\":\"ambrahma-pgfs-vnet-9\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"identity\":{\"principalId\":\"ac7286b4-1177-4734-b7e4-d3fc4fcb87b7\",\"type\":\"SystemAssigned\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"fullyQualifiedDomainName\":\"byok-pgfs-1.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"shinim\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.2698497+00:00\",\"byokEnforcement\":\"Enabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/meruacr/providers/Microsoft.DBforPostgreSQL/flexibleServers/byok-pgfs-1\",\"name\":\"byok-pgfs-1\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"flexhavnet.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":1,\"haEnabled\":\"Enabled\",\"administratorLogin\":\"postgres\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/akamath/providers/Microsoft.Network/virtualNetworks/canaryvnetflex/subnets/canaryflexsubnet\"},\"logBackupStorageSku\":\"\",\"haState\":\"Healthy\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":524288,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.2698497+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/akamath/providers/Microsoft.DBforPostgreSQL/flexibleServers/flexhavnet-pvsc\",\"name\":\"flexhavnet\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_B2s\",\"tier\":\"Burstable\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"flexserverpg-canary-perf-b2s-2core.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"meruperf\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":524288,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.2698497+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{\"DONOTDELETE\":\"DONOTDELETE\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MeruPerf/providers/Microsoft.DBforPostgreSQL/flexibleServers/flexserverpg-canary-perf-b2s-2core\",\"name\":\"flexserverpg-canary-perf-b2s-2core\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D16s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":16},\"properties\":{\"fullyQualifiedDomainName\":\"flexserverpg-canary-perf-gp-16core.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"meruperf\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":8388608,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.2698497+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{\"DONOTDELETE\":\"DONOTDELETE\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MeruPerf/providers/Microsoft.DBforPostgreSQL/flexibleServers/flexserverpg-canary-perf-gp-16core\",\"name\":\"flexserverpg-canary-perf-gp-16core\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"flexserverpg-canary-perf-gp-2core.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"meruperf\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":524288,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.2698497+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{\"DONOTDELETE\":\"DONOTDELETE\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MeruPerf/providers/Microsoft.DBforPostgreSQL/flexibleServers/flexserverpg-canary-perf-gp-2core\",\"name\":\"flexserverpg-canary-perf-gp-2core\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"flexserverpg-canary-perf-gp-2core-2.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"meruperf\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.2698497+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{\"DONOTDELETE\":\"DONOTDELETE\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MeruPerf/providers/Microsoft.DBforPostgreSQL/flexibleServers/flexserverpg-canary-perf-gp-2core-2\",\"name\":\"flexserverpg-canary-perf-gp-2core-2\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"flexserverpg-canary-perf-gp-2core-3.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"meruperf\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.2698497+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{\"DONOTDELETE\":\"DONOTDELETE\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MeruPerf/providers/Microsoft.DBforPostgreSQL/flexibleServers/flexserverpg-canary-perf-gp-2core-3\",\"name\":\"flexserverpg-canary-perf-gp-2core-3\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D4s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":4},\"properties\":{\"fullyQualifiedDomainName\":\"flexserverpg-canary-perf-gp-4core.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"meruperf\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":2097152,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.2698497+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{\"DONOTDELETE\":\"DONOTDELETE\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MeruPerf/providers/Microsoft.DBforPostgreSQL/flexibleServers/flexserverpg-canary-perf-gp-4core\",\"name\":\"flexserverpg-canary-perf-gp-4core\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D8s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":8},\"properties\":{\"fullyQualifiedDomainName\":\"flexserverpg-canary-perf-gp-8core.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"meruperf\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":2097152,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.2698497+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{\"DONOTDELETE\":\"DONOTDELETE\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MeruPerf/providers/Microsoft.DBforPostgreSQL/flexibleServers/flexserverpg-canary-perf-gp-8core\",\"name\":\"flexserverpg-canary-perf-gp-8core\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D8s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":8},\"properties\":{\"fullyQualifiedDomainName\":\"flexserverpg-canary-perf-gp-8core-ha2.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":1,\"haEnabled\":\"Enabled\",\"administratorLogin\":\"meruperf\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"Healthy\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":2097152,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.2698497+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{\"DONOTDELETE\":\"DONOTDELETE\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MeruPerf/providers/Microsoft.DBforPostgreSQL/flexibleServers/flexserverpg-canary-perf-gp-8core-ha2\",\"name\":\"flexserverpg-canary-perf-gp-8core-ha2\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D8s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":8},\"properties\":{\"fullyQualifiedDomainName\":\"flexserverpg-canary-perf-gp-8core-pg11.postgres.database.azure.com\",\"version\":\"11\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"meruperf\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":2097152,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.2698497+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{\"DONOTDELETE\":\"DONOTDELETE\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MeruPerf/providers/Microsoft.DBforPostgreSQL/flexibleServers/flexserverpg-canary-perf-gp-8core-pg11\",\"name\":\"flexserverpg-canary-perf-gp-8core-pg11\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D8s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":8},\"properties\":{\"fullyQualifiedDomainName\":\"flexserverpg-canary-perf-gp-8core-vnet.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"meruperf\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MeruPerf/providers/Microsoft.Network/virtualNetworks/flexserverpg-canary-vnet/subnets/default\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":2097152,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.2698497+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{\"DONOTDELETE\":\"DONOTDELETE\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MeruPerf/providers/Microsoft.DBforPostgreSQL/flexibleServers/flexserverpg-canary-perf-gp-8core-vnet\",\"name\":\"flexserverpg-canary-perf-gp-8core-vnet\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_E8s_v3\",\"tier\":\"MemoryOptimized\",\"capacity\":8},\"properties\":{\"fullyQualifiedDomainName\":\"flexserverpg-canary-perf-mo-8core.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"meruperf\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":2097152,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.2698497+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{\"DONOTDELETE\":\"DONOTDELETE\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MeruPerf/providers/Microsoft.DBforPostgreSQL/flexibleServers/flexserverpg-canary-perf-mo-8core\",\"name\":\"flexserverpg-canary-perf-mo-8core\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"flexvnetm4new.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":1,\"haEnabled\":\"Enabled\",\"administratorLogin\":\"postgres\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/akamath/providers/Microsoft.Network/virtualNetworks/canaryvnetflex/subnets/canaryflexsubnet\"},\"logBackupStorageSku\":\"\",\"haState\":\"Healthy\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":524288,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.2698497+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/akamath/providers/Microsoft.DBforPostgreSQL/flexibleServers/flexvnetm4new-yumj\",\"name\":\"flexvnetm4new\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D4s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":4},\"properties\":{\"fullyQualifiedDomainName\":\"senkupfspg1.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":1,\"haEnabled\":\"Enabled\",\"administratorLogin\":\"senkupadmin\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"\",\"haState\":\"RecreatingStandby\",\"state\":\"Updating\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":524288,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.2698497+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/senkuprg/providers/Microsoft.DBforPostgreSQL/flexibleServers/senkupfspg1-zbom\",\"name\":\"senkupfspg1\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"taocanaryvnet1.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"postgres\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/vnetcanarytestrg/providers/Microsoft.Network/virtualNetworks/customer-vnet2/subnets/fspg-subnet\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.2698497+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/vnettestcustomerrg9/providers/Microsoft.DBforPostgreSQL/flexibleServers/taocanaryvnet1\",\"name\":\"taocanaryvnet1\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D4s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":4},\"properties\":{\"fullyQualifiedDomainName\":\"taotestvnetfspg1.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"postgres\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/vnetcanarytestrg/providers/Microsoft.Network/virtualNetworks/eus2euapfspgtestvnet1/subnets/fspg-subnet\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.2698497+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/vnetcanarytestrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/taotestvnetfspg1\",\"name\":\"taotestvnetfspg1\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D4s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":4},\"properties\":{\"fullyQualifiedDomainName\":\"taotestvnetfspg2.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"postgres\",\"publicNetworkAccess\":\"Disabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"\",\"state\":\"Provisioning\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":32768,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-11T20:58:30.2698497+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/vnetcanarytestrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/taotestvnetfspg2\",\"name\":\"taotestvnetfspg2\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D4s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":4},\"properties\":{\"fullyQualifiedDomainName\":\"testvnetwithserviceendpoint.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"postgres\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/vnetcanarytestrg/providers/Microsoft.Network/virtualNetworks/testvnetwithserviceendpoint/subnets/fspg-subnet\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.2698497+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/vnetcanarytestrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testvnetwithserviceendpoint\",\"name\":\"testvnetwithserviceendpoint\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D16s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":16},\"properties\":{\"fullyQualifiedDomainName\":\"vikranthtest2.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":1,\"haEnabled\":\"Enabled\",\"administratorLogin\":\"vikranth\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"\",\"state\":\"Starting\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-04T20:58:30.2698497+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2 EUAP\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/vikranthtest02/providers/Microsoft.DBforPostgreSQL/flexibleServers/vikranthtest2\",\"name\":\"vikranthtest2\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}]}" + } + }, + "Get-AzPostgreSqlFlexibleServer+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "84ff7ff5-3933-4804-977f-85694f6fb8c2" ], + "CommandName": [ "Get-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Get-AzPostgreSqlFlexibleServer_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e4cb5a0a-f2b4-4539-b65e-f5666ae2b6a7" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "41475abd-b110-469d-a1c3-da0e860dec70" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T205830Z:41475abd-b110-469d-a1c3-da0e860dec70" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:58:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "871" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-flexible-test-100.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"adminuser\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"\",\"state\":\"Stopped\",\"availabilityZone\":\"2\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-11T20:47:55.6257742+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-flexible-test-100\",\"name\":\"postgresql-flexible-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "Get-AzPostgreSqlFlexibleServer+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "20a5d47c-c233-455b-b569-18d0921fa1c0" ], + "CommandName": [ "Get-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Get-AzPostgreSqlFlexibleServer_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "77c23183-41bc-4ae0-8655-8dba9ce3844f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "80756e92-89b1-49eb-ae0b-12d36aadf61d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T205831Z:80756e92-89b1-49eb-ae0b-12d36aadf61d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:58:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1591" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-flexible-test-100.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"adminuser\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"\",\"state\":\"Stopped\",\"availabilityZone\":\"2\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-11T20:47:55.6257742+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-flexible-test-100\",\"name\":\"postgresql-flexible-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-flexible-test-100.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"postgresql_test\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-11T18:30:21.1770084+00:00\",\"byokEnforcement\":\"Disabled\"},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-flexible-test-100\",\"name\":\"postgresql-flexible-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}]}" + } + }, + "Get-AzPostgreSqlFlexibleServer+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "32599cb1-1871-4fb0-840d-767a5ef49c0a" ], + "CommandName": [ "Get-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Get-AzPostgreSqlFlexibleServer_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "29fadd71-65b1-496e-aa85-a280b4eafc73" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "299774a4-7148-48ed-8a53-d5c019a7ab34" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T205831Z:299774a4-7148-48ed-8a53-d5c019a7ab34" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:58:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "871" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-flexible-test-100.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"adminuser\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"\",\"state\":\"Stopped\",\"availabilityZone\":\"2\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-11T20:47:55.6257742+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-flexible-test-100\",\"name\":\"postgresql-flexible-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + } +} \ No newline at end of file diff --git a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServer.Tests.ps1 b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServer.Tests.ps1 new file mode 100644 index 000000000000..f506bb908a4a --- /dev/null +++ b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServer.Tests.ps1 @@ -0,0 +1,43 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzPostgreSqlFlexibleServer.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzPostgreSqlFlexibleServer' { + It 'List1' { + { + $servers = Get-AzPostgreSqlFlexibleServer + $servers.Count | Should -BeGreaterOrEqual 1 + } | Should -Not -Throw + } + + It 'Get' { + { + $servers = Get-AzPostgreSqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.flexibleServerName + $servers.Name | Should -Be $env.flexibleServerName + } | Should -Not -Throw + } + + It 'List' { + { + $servers = Get-AzPostgreSqlFlexibleServer -ResourceGroupName $env.resourceGroup + $servers.Count | Should -BeGreaterOrEqual 1 + } | Should -Not -Throw + } + + It 'GetViaIdentity' { + { + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForPostgreSql/flexibleServers/$($env.flexibleServerName)" + $servers = Get-AzPostgreSqlFlexibleServer -InputObject $ID + $servers.Name | Should -Be $env.flexibleServerName + } | Should -Not -Throw + } +} diff --git a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConfiguration.Recording.json b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConfiguration.Recording.json new file mode 100644 index 000000000000..ebc379bb9cf6 --- /dev/null +++ b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConfiguration.Recording.json @@ -0,0 +1,119 @@ +{ + "Get-AzPostgreSqlFlexibleServerConfiguration+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/configurations?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/configurations?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "aa0cfbe0-61c7-4216-ae36-e078841e35a9" ], + "CommandName": [ "Get-AzPostgreSqlFlexibleServerConfiguration" ], + "FullCommandName": [ "Get-AzPostgreSqlFlexibleServerConfiguration_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6b8b8910-5991-4cbd-81f9-ae9d7c646e6a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "397eed2f-0614-4627-b1b1-8d12834f6120" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064239Z:397eed2f-0614-4627-b1b1-8d12834f6120" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:42:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "93653" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"value\":\"\",\"description\":\"Sets the application name to be reported in statistics and logs.\",\"defaultValue\":\"\",\"dataType\":\"String\",\"allowedValues\":\"[A-Za-z0-9._-]*\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/application_name\",\"name\":\"application_name\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1800\",\"description\":\"Forces a switch to the next WAL file if a new file has not been started within N seconds.\",\"defaultValue\":\"1800\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1073741823\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/archive_timeout\",\"name\":\"archive_timeout\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables input of NULL elements in arrays.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/array_nulls\",\"name\":\"array_nulls\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Starts the autovacuum subprocess.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/autovacuum\",\"name\":\"autovacuum\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0.1\",\"description\":\"Number of tuple inserts, updates, or deletes prior to analyze as a fraction of reltuples.\",\"defaultValue\":\"0.1\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-100\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/autovacuum_analyze_scale_factor\",\"name\":\"autovacuum_analyze_scale_factor\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"50\",\"description\":\"Minimum number of tuple inserts, updates, or deletes prior to analyze.\",\"defaultValue\":\"50\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/autovacuum_analyze_threshold\",\"name\":\"autovacuum_analyze_threshold\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"200000000\",\"description\":\"Age at which to autovacuum a table to prevent transaction ID wraparound. Any change requires restarting the server to take effect.\",\"defaultValue\":\"200000000\",\"dataType\":\"Integer\",\"allowedValues\":\"100000-2000000000\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/autovacuum_freeze_max_age\",\"name\":\"autovacuum_freeze_max_age\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"Sets the maximum number of simultaneously running autovacuum worker processes. Any change requires restarting the server to take effect.\",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"1-262143\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/autovacuum_max_workers\",\"name\":\"autovacuum_max_workers\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"400000000\",\"description\":\"Multixact age at which to autovacuum a table to prevent multixact wraparound. Any change requires restarting the server to take effect.\",\"defaultValue\":\"400000000\",\"dataType\":\"Integer\",\"allowedValues\":\"10000-2000000000\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/autovacuum_multixact_freeze_max_age\",\"name\":\"autovacuum_multixact_freeze_max_age\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"60\",\"description\":\"Time to sleep between autovacuum runs.\",\"defaultValue\":\"60\",\"dataType\":\"Integer\",\"allowedValues\":\"1-2147483\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/autovacuum_naptime\",\"name\":\"autovacuum_naptime\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"2\",\"description\":\"Vacuum cost delay in milliseconds, for autovacuum.\",\"defaultValue\":\"2\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-100\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/autovacuum_vacuum_cost_delay\",\"name\":\"autovacuum_vacuum_cost_delay\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"-1\",\"description\":\"Vacuum cost amount available before napping, for autovacuum.\",\"defaultValue\":\"-1\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-10000\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/autovacuum_vacuum_cost_limit\",\"name\":\"autovacuum_vacuum_cost_limit\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0.2\",\"description\":\"Number of tuple updates or deletes prior to vacuum as a fraction of reltuples.\",\"defaultValue\":\"0.2\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-100\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/autovacuum_vacuum_scale_factor\",\"name\":\"autovacuum_vacuum_scale_factor\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"50\",\"description\":\"Minimum number of tuple updates or deletes prior to vacuum.\",\"defaultValue\":\"50\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/autovacuum_vacuum_threshold\",\"name\":\"autovacuum_vacuum_threshold\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"-1\",\"description\":\"Sets the maximum memory to be used by each autovacuum worker process.\",\"defaultValue\":\"-1\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-2097151\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/autovacuum_work_mem\",\"name\":\"autovacuum_work_mem\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Number of pages after which previously performed writes are flushed to disk.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-256\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/backend_flush_after\",\"name\":\"backend_flush_after\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"safe_encoding\",\"description\":\"Sets whether \\\"\\\\\u0027\\\" is allowed in string literals.\",\"defaultValue\":\"safe_encoding\",\"dataType\":\"Enumeration\",\"allowedValues\":\"safe_encoding,on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/backslash_quote\",\"name\":\"backslash_quote\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"200\",\"description\":\"Background writer sleep time between rounds.\",\"defaultValue\":\"200\",\"dataType\":\"Integer\",\"allowedValues\":\"10-10000\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/bgwriter_delay\",\"name\":\"bgwriter_delay\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"64\",\"description\":\"Number of pages after which previously performed writes are flushed to disk.\",\"defaultValue\":\"64\",\"dataType\":\"Integer\",\"allowedValues\":\"0-256\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/bgwriter_flush_after\",\"name\":\"bgwriter_flush_after\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"100\",\"description\":\"Background writer maximum number of LRU pages to flush per round.\",\"defaultValue\":\"100\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1073741823\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/bgwriter_lru_maxpages\",\"name\":\"bgwriter_lru_maxpages\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"2\",\"description\":\"Multiple of the average buffer usage to free per round.\",\"defaultValue\":\"2\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-10\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/bgwriter_lru_multiplier\",\"name\":\"bgwriter_lru_multiplier\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"hex\",\"description\":\"Sets the output format for bytea.\",\"defaultValue\":\"hex\",\"dataType\":\"Enumeration\",\"allowedValues\":\"escape,hex\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/bytea_output\",\"name\":\"bytea_output\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Checks function bodies during CREATE FUNCTION.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/check_function_bodies\",\"name\":\"check_function_bodies\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0.5\",\"description\":\"Time spent flushing dirty buffers during checkpoint, as fraction of checkpoint interval.\",\"defaultValue\":\"0.5\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/checkpoint_completion_target\",\"name\":\"checkpoint_completion_target\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"300\",\"description\":\"Sets the maximum time between automatic WAL checkpoints.\",\"defaultValue\":\"300\",\"dataType\":\"Integer\",\"allowedValues\":\"30-86400\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/checkpoint_timeout\",\"name\":\"checkpoint_timeout\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"30\",\"description\":\"Enables warnings if checkpoint segments are filled more frequently than this.\",\"defaultValue\":\"30\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/checkpoint_warning\",\"name\":\"checkpoint_warning\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"sql_ascii\",\"description\":\"Sets the client\u0027s character set encoding.\",\"defaultValue\":\"sql_ascii\",\"dataType\":\"Enumeration\",\"allowedValues\":\"BIG5,EUC_CN,EUC_JP,EUC_JIS_2004,EUC_KR,EUC_TW,GB18030,GBK,ISO_8859_5,ISO_8859_6,ISO_8859_7,ISO_8859_8,JOHAB,KOI8R,KOI8U,LATIN1,LATIN2,LATIN3,LATIN4,LATIN5,LATIN6,LATIN7,LATIN8,LATIN9,LATIN10,MULE_INTERNAL,SJIS,SHIFT_JIS_2004,SQL_ASCII,UHC,UTF8,WIN866,WIN874,WIN1250,WIN1251,WIN1252,WIN1253,WIN1254,WIN1255,WIN1256,WIN1257,WIN1258\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/client_encoding\",\"name\":\"client_encoding\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"notice\",\"description\":\"Sets the message levels that are sent to the client.\",\"defaultValue\":\"notice\",\"dataType\":\"Enumeration\",\"allowedValues\":\"debug5,debug4,debug3,debug2,debug1,log,notice,warning,error\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/client_min_messages\",\"name\":\"client_min_messages\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Sets the delay in microseconds between transaction commit and flushing WAL to disk.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-100000\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/commit_delay\",\"name\":\"commit_delay\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"5\",\"description\":\"Sets the minimum concurrent open transactions before performing commit_delay.\",\"defaultValue\":\"5\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/commit_siblings\",\"name\":\"commit_siblings\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"partition\",\"description\":\"Enables the planner to use constraints to optimize queries.\",\"defaultValue\":\"partition\",\"dataType\":\"Enumeration\",\"allowedValues\":\"partition,on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/constraint_exclusion\",\"name\":\"constraint_exclusion\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0.005\",\"description\":\"Sets the planner\u0027s estimate of the cost of processing each index entry during an index scan.\",\"defaultValue\":\"0.005\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1.79769e+308\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/cpu_index_tuple_cost\",\"name\":\"cpu_index_tuple_cost\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0.0025\",\"description\":\"Sets the planner\u0027s estimate of the cost of processing each operator or function call.\",\"defaultValue\":\"0.0025\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1.79769e+308\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/cpu_operator_cost\",\"name\":\"cpu_operator_cost\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0.01\",\"description\":\"Sets the planner\u0027s estimate of the cost of processing each tuple (row).\",\"defaultValue\":\"0.01\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1.79769e+308\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/cpu_tuple_cost\",\"name\":\"cpu_tuple_cost\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0.1\",\"description\":\"Sets the planner\u0027s estimate of the fraction of a cursor\u0027s rows that will be retrieved.\",\"defaultValue\":\"0.1\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/cursor_tuple_fraction\",\"name\":\"cursor_tuple_fraction\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ISO, MDY\",\"description\":\"Sets the display format for date and time values.\",\"defaultValue\":\"ISO, MDY\",\"dataType\":\"String\",\"allowedValues\":\"(ISO|POSTGRES|SQL|GERMAN)(, (DMY|MDY|YMD))?\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/DateStyle\",\"name\":\"DateStyle\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1000\",\"description\":\"Sets the amount of time, in milliseconds, to wait on a lock before checking for deadlock.\",\"defaultValue\":\"1000\",\"dataType\":\"Integer\",\"allowedValues\":\"1-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/deadlock_timeout\",\"name\":\"deadlock_timeout\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Indents parse and plan tree displays.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/debug_pretty_print\",\"name\":\"debug_pretty_print\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Logs each query\u0027s parse tree.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/debug_print_parse\",\"name\":\"debug_print_parse\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Logs each query\u0027s execution plan.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/debug_print_plan\",\"name\":\"debug_print_plan\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Logs each query\u0027s rewritten parse tree.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/debug_print_rewritten\",\"name\":\"debug_print_rewritten\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"100\",\"description\":\"Sets the default statistics target.\",\"defaultValue\":\"100\",\"dataType\":\"Integer\",\"allowedValues\":\"1-10000\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/default_statistics_target\",\"name\":\"default_statistics_target\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"\",\"description\":\"Sets the default tablespace to create tables and indexes in.\",\"defaultValue\":\"\",\"dataType\":\"String\",\"allowedValues\":\"[A-Za-z._]*\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/default_tablespace\",\"name\":\"default_tablespace\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"pg_catalog.english\",\"description\":\"Sets default text search configuration.\",\"defaultValue\":\"pg_catalog.english\",\"dataType\":\"String\",\"allowedValues\":\"[A-Za-z._]+\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/default_text_search_config\",\"name\":\"default_text_search_config\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Sets the default deferrable status of new transactions.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/default_transaction_deferrable\",\"name\":\"default_transaction_deferrable\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"read committed\",\"description\":\"Sets the transaction isolation level of each new transaction.\",\"defaultValue\":\"read committed\",\"dataType\":\"Enumeration\",\"allowedValues\":\"serializable,repeatable read,read committed,read uncommitted\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/default_transaction_isolation\",\"name\":\"default_transaction_isolation\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Sets the default read-only status of new transactions.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/default_transaction_read_only\",\"name\":\"default_transaction_read_only\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Creates new tables with OIDs by default.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/default_with_oids\",\"name\":\"default_with_oids\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"786432\",\"description\":\"Sets the planner\u0027s assumption about the size of the disk cache.\",\"defaultValue\":\"786432\",\"dataType\":\"Integer\",\"allowedValues\":\"1-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/effective_cache_size\",\"name\":\"effective_cache_size\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"Sets the number of concurrent disk I/O operations that PostgreSQL expects can be executed simultaneously.\",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/effective_io_concurrency\",\"name\":\"effective_io_concurrency\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of bitmap-scan plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/enable_bitmapscan\",\"name\":\"enable_bitmapscan\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of gather merge plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/enable_gathermerge\",\"name\":\"enable_gathermerge\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of hashed aggregation plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/enable_hashagg\",\"name\":\"enable_hashagg\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of hash join plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/enable_hashjoin\",\"name\":\"enable_hashjoin\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of index-only-scan plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/enable_indexonlyscan\",\"name\":\"enable_indexonlyscan\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of index-scan plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/enable_indexscan\",\"name\":\"enable_indexscan\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of materialization.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/enable_material\",\"name\":\"enable_material\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of merge join plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/enable_mergejoin\",\"name\":\"enable_mergejoin\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of nested loop join plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/enable_nestloop\",\"name\":\"enable_nestloop\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Enables or disables the query planner\u0027s use of partitionwise grouping or aggregation, which allows grouping or aggregation on a partitioned tables performed separately for each partition.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/enable_partitionwise_aggregate\",\"name\":\"enable_partitionwise_aggregate\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Enables or disables the query planner\u0027s use of partitionwise join, which allows a join between partitioned tables to be performed by joining the matching partitions.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/enable_partitionwise_join\",\"name\":\"enable_partitionwise_join\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of sequential-scan plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/enable_seqscan\",\"name\":\"enable_seqscan\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of explicit sort steps.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/enable_sort\",\"name\":\"enable_sort\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables the planner\u0027s use of TID scan plans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/enable_tidscan\",\"name\":\"enable_tidscan\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Warns about backslash escapes in ordinary string literals.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/escape_string_warning\",\"name\":\"escape_string_warning\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Terminates session on any error.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/exit_on_error\",\"name\":\"exit_on_error\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"Sets the number of digits displayed for floating-point values.\",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"-15-3\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/extra_float_digits\",\"name\":\"extra_float_digits\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Forces use of parallel query facilities.\",\"defaultValue\":\"off\",\"dataType\":\"Enumeration\",\"allowedValues\":\"off,on,regress\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/force_parallel_mode\",\"name\":\"force_parallel_mode\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"8\",\"description\":\"Sets the FROM-list size beyond which subqueries are not collapsed.\",\"defaultValue\":\"8\",\"dataType\":\"Integer\",\"allowedValues\":\"1-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/from_collapse_limit\",\"name\":\"from_collapse_limit\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables genetic query optimization.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/geqo\",\"name\":\"geqo\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"5\",\"description\":\"GEQO: effort is used to set the default for other GEQO parameters.\",\"defaultValue\":\"5\",\"dataType\":\"Integer\",\"allowedValues\":\"1-10\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/geqo_effort\",\"name\":\"geqo_effort\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"GEQO: number of iterations of the algorithm.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/geqo_generations\",\"name\":\"geqo_generations\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"GEQO: number of individuals in the population.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/geqo_pool_size\",\"name\":\"geqo_pool_size\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"GEQO: seed for random path selection.\",\"defaultValue\":\"0\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/geqo_seed\",\"name\":\"geqo_seed\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"2\",\"description\":\"GEQO: selective pressure within the population.\",\"defaultValue\":\"2\",\"dataType\":\"Numeric\",\"allowedValues\":\"1.5-2\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/geqo_selection_bias\",\"name\":\"geqo_selection_bias\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"12\",\"description\":\"Sets the threshold of FROM items beyond which GEQO is used.\",\"defaultValue\":\"12\",\"dataType\":\"Integer\",\"allowedValues\":\"2-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/geqo_threshold\",\"name\":\"geqo_threshold\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Sets the maximum allowed result for exact search by GIN.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/gin_fuzzy_search_limit\",\"name\":\"gin_fuzzy_search_limit\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"4096\",\"description\":\"Sets the maximum size of the pending list for GIN index.\",\"defaultValue\":\"4096\",\"dataType\":\"Integer\",\"allowedValues\":\"64-2097151\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/gin_pending_list_limit\",\"name\":\"gin_pending_list_limit\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"try\",\"description\":\"Enables/disables the use of huge memory pages. Changing this value requires server restart. This setting is not applicable to servers having less than 4 vCores.\",\"defaultValue\":\"try\",\"dataType\":\"Enumeration\",\"allowedValues\":\"on,off,try\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/huge_pages\",\"name\":\"huge_pages\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Sets the maximum allowed duration of any idling transaction.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/idle_in_transaction_session_timeout\",\"name\":\"idle_in_transaction_session_timeout\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"postgres\",\"description\":\"Sets the display format for interval values.\",\"defaultValue\":\"postgres\",\"dataType\":\"Enumeration\",\"allowedValues\":\"postgres,postgres_verbose,sql_standard,iso_8601\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/IntervalStyle\",\"name\":\"IntervalStyle\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Determines whether JIT compilation may be used by PostgreSQL.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on, off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/jit\",\"name\":\"jit\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"100000\",\"description\":\"Sets the query cost above which JIT compilation is activated, if enabled.\",\"defaultValue\":\"100000\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/jit_above_cost\",\"name\":\"jit_above_cost\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"500000\",\"description\":\"Sets the query cost above which JIT compilation attempts to inline functions and operators.\",\"defaultValue\":\"500000\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/jit_inline_above_cost\",\"name\":\"jit_inline_above_cost\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"500000\",\"description\":\"Sets the query cost above which JIT compilation applies expensive optimizations.\",\"defaultValue\":\"500000\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/jit_optimize_above_cost\",\"name\":\"jit_optimize_above_cost\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"8\",\"description\":\"Sets the FROM-list size beyond which JOIN constructs are not flattened.\",\"defaultValue\":\"8\",\"dataType\":\"Integer\",\"allowedValues\":\"1-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/join_collapse_limit\",\"name\":\"join_collapse_limit\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"en_US.utf-8\",\"description\":\"Sets the locale for formatting monetary amounts.\",\"defaultValue\":\"en_US.utf-8\",\"dataType\":\"String\",\"allowedValues\":\"[A-Za-z0-9._ -]+\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/lc_monetary\",\"name\":\"lc_monetary\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"en_US.utf-8\",\"description\":\"Sets the locale for formatting numbers.\",\"defaultValue\":\"en_US.utf-8\",\"dataType\":\"String\",\"allowedValues\":\"[A-Za-z0-9._ -]+\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/lc_numeric\",\"name\":\"lc_numeric\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Enables backward compatibility mode for privilege checks on large objects.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/lo_compat_privileges\",\"name\":\"lo_compat_privileges\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Sets the maximum allowed duration (in milliseconds) of any wait for a lock. 0 turns this off.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/lock_timeout\",\"name\":\"lock_timeout\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"-1\",\"description\":\"Sets the minimum execution time above which autovacuum actions will be logged.\",\"defaultValue\":\"-1\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/log_autovacuum_min_duration\",\"name\":\"log_autovacuum_min_duration\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Logs each checkpoint.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/log_checkpoints\",\"name\":\"log_checkpoints\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Logs each successful connection.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/log_connections\",\"name\":\"log_connections\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"stderr\",\"description\":\"Sets the destination for server log output.\",\"defaultValue\":\"stderr\",\"dataType\":\"Enumeration\",\"allowedValues\":\"stderr,csvlog\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/log_destination\",\"name\":\"log_destination\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Logs end of a session, including duration.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/log_disconnections\",\"name\":\"log_disconnections\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Logs the duration of each completed SQL statement.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/log_duration\",\"name\":\"log_duration\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"default\",\"description\":\"Sets the verbosity of logged messages.\",\"defaultValue\":\"default\",\"dataType\":\"Enumeration\",\"allowedValues\":\"terse,default,verbose\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/log_error_verbosity\",\"name\":\"log_error_verbosity\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Logs long lock waits.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/log_lock_waits\",\"name\":\"log_lock_waits\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"-1\",\"description\":\"Sets the minimum execution time (in milliseconds) above which statements will be logged. -1 disables logging statement durations.\",\"defaultValue\":\"-1\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/log_min_duration_statement\",\"name\":\"log_min_duration_statement\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"error\",\"description\":\"Causes all statements generating error at or above this level to be logged.\",\"defaultValue\":\"error\",\"dataType\":\"Enumeration\",\"allowedValues\":\"debug5,debug4,debug3,debug2,debug1,info,notice,warning,error,log,fatal,panic\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/log_min_error_statement\",\"name\":\"log_min_error_statement\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"warning\",\"description\":\"Sets the message levels that are logged.\",\"defaultValue\":\"warning\",\"dataType\":\"Enumeration\",\"allowedValues\":\"debug5,debug4,debug3,debug2,debug1,info,notice,warning,error,log,fatal,panic\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/log_min_messages\",\"name\":\"log_min_messages\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Logs each replication command.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/log_replication_commands\",\"name\":\"log_replication_commands\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"none\",\"description\":\"Sets the type of statements logged.\",\"defaultValue\":\"none\",\"dataType\":\"Enumeration\",\"allowedValues\":\"none,ddl,mod,all\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/log_statement\",\"name\":\"log_statement\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"For each query, writes cumulative performance statistics to the server log.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/log_statement_stats\",\"name\":\"log_statement_stats\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"-1\",\"description\":\"Logs the use of temporary files larger than this number of kilobytes.\",\"defaultValue\":\"-1\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/log_temp_files\",\"name\":\"log_temp_files\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"216064\",\"description\":\"Sets the maximum memory to be used for maintenance operations.\",\"defaultValue\":\"216064\",\"dataType\":\"Integer\",\"allowedValues\":\"1024-2097151\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/maintenance_work_mem\",\"name\":\"maintenance_work_mem\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"859\",\"description\":\"Sets the maximum number of concurrent connections. Any change requires restarting the server to take effect.\",\"defaultValue\":\"859\",\"dataType\":\"Integer\",\"allowedValues\":\"25-5000\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/max_connections\",\"name\":\"max_connections\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"64\",\"description\":\"Sets the maximum number of locks per transaction. Any change requires restarting the server to take effect. When running a replica server, you must set this parameter to the same or higher value than on the master server.\",\"defaultValue\":\"64\",\"dataType\":\"Integer\",\"allowedValues\":\"10-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/max_locks_per_transaction\",\"name\":\"max_locks_per_transaction\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"8\",\"description\":\"Sets the maximum number of parallel workers than can be active at one time.\",\"defaultValue\":\"8\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1024\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/max_parallel_workers\",\"name\":\"max_parallel_workers\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"2\",\"description\":\"Sets the maximum number of parallel processes per executor node.\",\"defaultValue\":\"2\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1024\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/max_parallel_workers_per_gather\",\"name\":\"max_parallel_workers_per_gather\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"2\",\"description\":\"Sets the maximum number of predicate-locked tuples per page.\",\"defaultValue\":\"2\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/max_pred_locks_per_page\",\"name\":\"max_pred_locks_per_page\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"-2\",\"description\":\"Sets the maximum number of predicate-locked pages and tuples per relation.\",\"defaultValue\":\"-2\",\"dataType\":\"Integer\",\"allowedValues\":\"-2147483648-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/max_pred_locks_per_relation\",\"name\":\"max_pred_locks_per_relation\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Sets the maximum number of simultaneously prepared transactions. Any change requires restarting the server to take effect. When running a replica server, you must set this parameter to the same or higher value than on the master server.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-262143\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/max_prepared_transactions\",\"name\":\"max_prepared_transactions\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"Sets the maximum number of simultaneously defined replication slots.\",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"0-262143\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/max_replication_slots\",\"name\":\"max_replication_slots\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"30000\",\"description\":\"Sets the maximum delay before canceling queries when a hot standby server is processing archived WAL data.\",\"defaultValue\":\"30000\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/max_standby_archive_delay\",\"name\":\"max_standby_archive_delay\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"30000\",\"description\":\"Sets the maximum delay before canceling queries when a hot standby server is processing streamed WAL data.\",\"defaultValue\":\"30000\",\"dataType\":\"Integer\",\"allowedValues\":\"-1-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/max_standby_streaming_delay\",\"name\":\"max_standby_streaming_delay\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"2\",\"description\":\"Maximum number of table synchronization workers per subscription.\",\"defaultValue\":\"2\",\"dataType\":\"Integer\",\"allowedValues\":\"0-262143\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/max_sync_workers_per_subscription\",\"name\":\"max_sync_workers_per_subscription\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"Sets the maximum number of simultaneously running WAL sender processes.\",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"0-100\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/max_wal_senders\",\"name\":\"max_wal_senders\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"32768\",\"description\":\"Sets the WAL size that triggers a checkpoint.\",\"defaultValue\":\"32768\",\"dataType\":\"Integer\",\"allowedValues\":\"2-65536\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/max_wal_size\",\"name\":\"max_wal_size\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"8\",\"description\":\"Sets the maximum number of background processes that the system can support.\",\"defaultValue\":\"8\",\"dataType\":\"Integer\",\"allowedValues\":\"0-262143\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/max_worker_processes\",\"name\":\"max_worker_processes\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"64\",\"description\":\"Sets the minimum amount of index data for a parallel scan.\",\"defaultValue\":\"64\",\"dataType\":\"Integer\",\"allowedValues\":\"0-715827882\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/min_parallel_index_scan_size\",\"name\":\"min_parallel_index_scan_size\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"Sets the minimum amount of table data for a parallel scan.\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"0-715827882\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/min_parallel_table_scan_size\",\"name\":\"min_parallel_table_scan_size\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"80\",\"description\":\"Sets the minimum size to shrink the WAL to.\",\"defaultValue\":\"80\",\"dataType\":\"Integer\",\"allowedValues\":\"2-2097151\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/min_wal_size\",\"name\":\"min_wal_size\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Emits a warning for constructs that changed meaning since PostgreSQL 9.4.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/operator_precedence_warning\",\"name\":\"operator_precedence_warning\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1000\",\"description\":\"Sets the planner\u0027s estimate of the cost of starting up worker processes for parallel query.\",\"defaultValue\":\"1000\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1.79769e+308\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/parallel_setup_cost\",\"name\":\"parallel_setup_cost\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0.1\",\"description\":\"Sets the planner\u0027s estimate of the cost of passing each tuple (row) from worker to master backend.\",\"defaultValue\":\"0.1\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1.79769e+308\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/parallel_tuple_cost\",\"name\":\"parallel_tuple_cost\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"none\",\"description\":\"Specifies which classes of statements will be logged by session audit logging.\",\"defaultValue\":\"none\",\"dataType\":\"Set\",\"allowedValues\":\"none,read,write,function,role,ddl,misc,all\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/pgaudit.log\",\"name\":\"pgaudit.log\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Specifies that session logging should be enabled in the case where all relations in a statement are in pg_catalog.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/pgaudit.log_catalog\",\"name\":\"pgaudit.log_catalog\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Specifies whether audit messages should be visible to the client.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/pgaudit.log_client\",\"name\":\"pgaudit.log_client\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"log\",\"description\":\"Specifies the log level that will be used for log entries.\",\"defaultValue\":\"log\",\"dataType\":\"Enumeration\",\"allowedValues\":\",debug5,debug4,debug3,debug2,debug1,info,notice,warning,log\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/pgaudit.log_level\",\"name\":\"pgaudit.log_level\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Specifies that audit logging should include the parameters that were passed with the statement.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/pgaudit.log_parameter\",\"name\":\"pgaudit.log_parameter\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Specifies whether session audit logging should create a separate log entry for each relation referenced in a SELECT or DML statement.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/pgaudit.log_relation\",\"name\":\"pgaudit.log_relation\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Specifies whether logging will include the statement text and parameters with the first log entry for a statement/substatement combination or with every entry.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/pgaudit.log_statement_once\",\"name\":\"pgaudit.log_statement_once\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"\",\"description\":\"Specifies the master role to use for object audit logging.\",\"defaultValue\":\"\",\"dataType\":\"String\",\"allowedValues\":\"[A-Za-z\\\\._]*\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/pgaudit.role\",\"name\":\"pgaudit.role\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"5000\",\"description\":\"Sets the maximum number of statements tracked by pg_stat_statements. Any change requires restarting the server to take effect.\",\"defaultValue\":\"5000\",\"dataType\":\"Integer\",\"allowedValues\":\"100-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/pg_stat_statements.max\",\"name\":\"pg_stat_statements.max\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Save pg_stat_statements statistics across server shutdowns.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/pg_stat_statements.save\",\"name\":\"pg_stat_statements.save\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"top\",\"description\":\"Controls which statements are counted by pg_stat_statements.\",\"defaultValue\":\"top\",\"dataType\":\"Enumeration\",\"allowedValues\":\"top,all,none\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/pg_stat_statements.track\",\"name\":\"pg_stat_statements.track\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Selects whether utility commands are tracked by pg_stat_statements.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/pg_stat_statements.track_utility\",\"name\":\"pg_stat_statements.track_utility\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"apply_remote\",\"description\":\"Sets the resolution method for any detected conflicts between local data and incoming changes.\",\"defaultValue\":\"apply_remote\",\"dataType\":\"Enumeration\",\"allowedValues\":\"error,apply_remote,keep_local,last_update_wins,first_update_wins\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/pglogical.conflict_resolution\",\"name\":\"pglogical.conflict_resolution\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"log\",\"description\":\"Sets the log level for reporting detected conflicts when the pglogical.conflict_resolution is set to anything else than error.\",\"defaultValue\":\"log\",\"dataType\":\"Enumeration\",\"allowedValues\":\"debug5,debug4,debug3,debug2,debug1,info,notice,warning,error,log,fatal,panic\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/pglogical.conflict_log_level\",\"name\":\"pglogical.conflict_log_level\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Tells PGLogical to use batch insert mechanism if possible.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/pglogical.batch_inserts\",\"name\":\"pglogical.batch_inserts\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Tells PGLogical to use SPI interface to form actual SQL (INSERT, UPDATE, DELETE) statements to apply incoming changes instead of using internal low level interface.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/pglogical.use_spi\",\"name\":\"pglogical.use_spi\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"DISABLE_ALL\",\"description\":\"Controls postgis GDAL enabled driver settings.\",\"defaultValue\":\"DISABLE_ALL\",\"dataType\":\"Enumeration\",\"allowedValues\":\"DISABLE_ALL,ENABLE_ALL\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/postgis.gdal_enabled_drivers\",\"name\":\"postgis.gdal_enabled_drivers\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"When generating SQL fragments, quotes all identifiers.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/quote_all_identifiers\",\"name\":\"quote_all_identifiers\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"4\",\"description\":\"Sets the planner\u0027s estimate of the cost of a nonsequentially fetched disk page.\",\"defaultValue\":\"4\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1.79769e+308\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/random_page_cost\",\"name\":\"random_page_cost\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables row security.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/row_security\",\"name\":\"row_security\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"\\\"$user\\\", public\",\"description\":\"Sets the schema search order for names that are not schema-qualified.\",\"defaultValue\":\"\\\"$user\\\", public\",\"dataType\":\"String\",\"allowedValues\":\"[A-Za-z.\\\"$, ]+\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/search_path\",\"name\":\"search_path\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"Sets the planner\u0027s estimate of the cost of a sequentially fetched disk page.\",\"defaultValue\":\"1\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-1.79769e+308\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/seq_page_cost\",\"name\":\"seq_page_cost\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"origin\",\"description\":\"Sets the session\u0027s behavior for triggers and rewrite rules.\",\"defaultValue\":\"origin\",\"dataType\":\"Enumeration\",\"allowedValues\":\"origin,replica,local\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/session_replication_role\",\"name\":\"session_replication_role\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"\",\"description\":\"Sets the maximum SSL/TLS protocol version to use.\",\"defaultValue\":\"\",\"dataType\":\"Enumeration\",\"allowedValues\":\",TLSv1.2,TLSv1.3\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/ssl_max_protocol_version\",\"name\":\"ssl_max_protocol_version\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"TLSv1.2\",\"description\":\"Sets the minimum SSL/TLS protocol version to use.\",\"defaultValue\":\"TLSv1.2\",\"dataType\":\"Enumeration\",\"allowedValues\":\"TLSv1.2,TLSv1.3\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/ssl_min_protocol_version\",\"name\":\"ssl_min_protocol_version\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Causes \u0027...\u0027 strings to treat backslashes literally.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/standard_conforming_strings\",\"name\":\"standard_conforming_strings\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Sets the maximum allowed duration (in milliseconds) of any statement. 0 turns this off.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/statement_timeout\",\"name\":\"statement_timeout\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Enables synchronized sequential scans.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/synchronize_seqscans\",\"name\":\"synchronize_seqscans\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Sets the current transaction\u0027s synchronization level.\",\"defaultValue\":\"on\",\"dataType\":\"Enumeration\",\"allowedValues\":\"local,remote_write,on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/synchronous_commit\",\"name\":\"synchronous_commit\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"9\",\"description\":\"Maximum number of TCP keepalive retransmits.\",\"defaultValue\":\"9\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/tcp_keepalives_count\",\"name\":\"tcp_keepalives_count\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"120\",\"description\":\"Time between issuing TCP keepalives.\",\"defaultValue\":\"120\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/tcp_keepalives_idle\",\"name\":\"tcp_keepalives_idle\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"30\",\"description\":\"Time between TCP keepalive retransmits.\",\"defaultValue\":\"30\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/tcp_keepalives_interval\",\"name\":\"tcp_keepalives_interval\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"Sets the maximum number of temporary buffers used by each database session.\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"100-1073741823\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/temp_buffers\",\"name\":\"temp_buffers\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"\",\"description\":\"Sets the tablespace(s) to use for temporary tables and sort files.\",\"defaultValue\":\"\",\"dataType\":\"String\",\"allowedValues\":\"[A-Za-z._]*\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/temp_tablespaces\",\"name\":\"temp_tablespaces\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"UTC\",\"description\":\"Sets the time zone for displaying and interpreting time stamps.\",\"defaultValue\":\"UTC\",\"dataType\":\"String\",\"allowedValues\":\"[A-Za-z0-9/+_-]+\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/TimeZone\",\"name\":\"TimeZone\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Collects information about executing commands.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/track_activities\",\"name\":\"track_activities\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"Sets the size reserved for pg_stat_activity.query, in bytes. Any change requires restarting the server to take effect.\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"100-102400\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/track_activity_query_size\",\"name\":\"track_activity_query_size\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Collects transaction commit time. Any change requires restarting the server to take effect.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/track_commit_timestamp\",\"name\":\"track_commit_timestamp\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"on\",\"description\":\"Collects statistics on database activity.\",\"defaultValue\":\"on\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/track_counts\",\"name\":\"track_counts\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"none\",\"description\":\"Collects function-level statistics on database activity.\",\"defaultValue\":\"none\",\"dataType\":\"Enumeration\",\"allowedValues\":\"none,pl,all\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/track_functions\",\"name\":\"track_functions\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Collects timing statistics for database I/O activity.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/track_io_timing\",\"name\":\"track_io_timing\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Treats \\\"expr=NULL\\\" as \\\"expr IS NULL\\\".\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/transform_null_equals\",\"name\":\"transform_null_equals\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Vacuum cost delay in milliseconds.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-100\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/vacuum_cost_delay\",\"name\":\"vacuum_cost_delay\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"200\",\"description\":\"Vacuum cost amount available before napping.\",\"defaultValue\":\"200\",\"dataType\":\"Integer\",\"allowedValues\":\"1-10000\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/vacuum_cost_limit\",\"name\":\"vacuum_cost_limit\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"20\",\"description\":\"Vacuum cost for a page dirtied by vacuum.\",\"defaultValue\":\"20\",\"dataType\":\"Integer\",\"allowedValues\":\"0-10000\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/vacuum_cost_page_dirty\",\"name\":\"vacuum_cost_page_dirty\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"Vacuum cost for a page found in the buffer cache.\",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"0-10000\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/vacuum_cost_page_hit\",\"name\":\"vacuum_cost_page_hit\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"Vacuum cost for a page not found in the buffer cache.\",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"0-10000\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/vacuum_cost_page_miss\",\"name\":\"vacuum_cost_page_miss\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Number of transactions by which VACUUM and HOT cleanup should be deferred, if any.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000000\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/vacuum_defer_cleanup_age\",\"name\":\"vacuum_defer_cleanup_age\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"50000000\",\"description\":\"Minimum age at which VACUUM should freeze a table row.\",\"defaultValue\":\"50000000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000000000\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/vacuum_freeze_min_age\",\"name\":\"vacuum_freeze_min_age\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"150000000\",\"description\":\"Age at which VACUUM should scan whole table to freeze tuples.\",\"defaultValue\":\"150000000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2000000000\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/vacuum_freeze_table_age\",\"name\":\"vacuum_freeze_table_age\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"5000000\",\"description\":\"Minimum age at which VACUUM should freeze a MultiXactId in a table row.\",\"defaultValue\":\"5000000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000000000\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/vacuum_multixact_freeze_min_age\",\"name\":\"vacuum_multixact_freeze_min_age\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"150000000\",\"description\":\"Multixact age at which VACUUM should scan whole table to freeze tuples.\",\"defaultValue\":\"150000000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2000000000\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/vacuum_multixact_freeze_table_age\",\"name\":\"vacuum_multixact_freeze_table_age\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"off\",\"description\":\"Compresses full-page writes written in WAL file.\",\"defaultValue\":\"off\",\"dataType\":\"Boolean\",\"allowedValues\":\"on,off\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/wal_compression\",\"name\":\"wal_compression\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"replica\",\"description\":\"It determines how much information is written to the WAL.\",\"defaultValue\":\"replica\",\"dataType\":\"Enumeration\",\"allowedValues\":\"replica,logical\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/wal_level\",\"name\":\"wal_level\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"Sets the maximum interval between WAL receiver status reports to the primary.\",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/wal_receiver_status_interval\",\"name\":\"wal_receiver_status_interval\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"200\",\"description\":\"Time between WAL flushes performed in the WAL writer.\",\"defaultValue\":\"200\",\"dataType\":\"Integer\",\"allowedValues\":\"1-10000\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/wal_writer_delay\",\"name\":\"wal_writer_delay\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"128\",\"description\":\"Amount of WAL written out by WAL writer that triggers a flush.\",\"defaultValue\":\"128\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2147483647\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/wal_writer_flush_after\",\"name\":\"wal_writer_flush_after\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"4096\",\"description\":\"Sets the amount of memory to be used by internal sort operations and hash tables before writing to temporary disk files.\",\"defaultValue\":\"4096\",\"dataType\":\"Integer\",\"allowedValues\":\"4096-2097151\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/work_mem\",\"name\":\"work_mem\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"base64\",\"description\":\"Sets how binary values are to be encoded in XML.\",\"defaultValue\":\"base64\",\"dataType\":\"Enumeration\",\"allowedValues\":\"base64,hex\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/xmlbinary\",\"name\":\"xmlbinary\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"content\",\"description\":\"Sets whether XML data in implicit parsing and serialization operations is to be considered as documents or content fragments.\",\"defaultValue\":\"content\",\"dataType\":\"Enumeration\",\"allowedValues\":\"content,document\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/xmloption\",\"name\":\"xmloption\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"}]}" + } + }, + "Get-AzPostgreSqlFlexibleServerConfiguration+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/configurations/TimeZone?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/configurations/TimeZone?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "c8c79d49-b68e-4ff3-b1d2-3fea698ebfa5" ], + "CommandName": [ "Get-AzPostgreSqlFlexibleServerConfiguration" ], + "FullCommandName": [ "Get-AzPostgreSqlFlexibleServerConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "07488494-b772-471f-89d8-f9041fa872af" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "8eacc32f-b3f9-42d5-990d-9e5e4ade5056" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064240Z:8eacc32f-b3f9-42d5-990d-9e5e4ade5056" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:42:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "475" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"value\":\"UTC\",\"description\":\"Sets the time zone for displaying and interpreting time stamps.\",\"defaultValue\":\"UTC\",\"dataType\":\"String\",\"allowedValues\":\"[A-Za-z0-9/+_-]+\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/TimeZone\",\"name\":\"TimeZone\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"}" + } + }, + "Get-AzPostgreSqlFlexibleServerConfiguration+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/configurations/TimeZone?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/configurations/TimeZone?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "c07599f6-3e7f-4f22-b0d0-0b5d81ebd946" ], + "CommandName": [ "Get-AzPostgreSqlFlexibleServerConfiguration" ], + "FullCommandName": [ "Get-AzPostgreSqlFlexibleServerConfiguration_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "16b441b3-42ce-4397-9d63-d7ec610463c8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "ce1f1aec-7b49-4757-bbba-e568b355d1d4" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064240Z:ce1f1aec-7b49-4757-bbba-e568b355d1d4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:42:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "475" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"value\":\"UTC\",\"description\":\"Sets the time zone for displaying and interpreting time stamps.\",\"defaultValue\":\"UTC\",\"dataType\":\"String\",\"allowedValues\":\"[A-Za-z0-9/+_-]+\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/TimeZone\",\"name\":\"TimeZone\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"}" + } + } +} \ No newline at end of file diff --git a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConfiguration.Tests.ps1 b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConfiguration.Tests.ps1 new file mode 100644 index 000000000000..f2b905838d0c --- /dev/null +++ b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConfiguration.Tests.ps1 @@ -0,0 +1,36 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzPostgreSqlFlexibleServerConfiguration.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzPostgreSqlFlexibleServerConfiguration' { + It 'List' { + { + $config = Get-AzPostgreSqlFlexibleServerConfiguration -ResourceGroupName $env.resourceGroup -ServerName $env.flexibleServerName + $config.Count | Should -BeGreaterOrEqual 1 + } | Should -Not -Throw + } + + It 'Get' { + { + $config = Get-AzPostgreSqlFlexibleServerConfiguration -Name TimeZone -ResourceGroupName $env.resourceGroup -ServerName $env.flexibleServerName + $config.Name | Should -Be TimeZone + } | Should -Not -Throw + } + + It 'GetViaIdentity' { + { + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForPostgreSql/flexibleServers/$($env.flexibleServerName)/configurations/TimeZone" + $config = Get-AzPostgreSqlFlexibleServerConfiguration -InputObject $ID + $config.Name | Should -Be TimeZone + } | Should -Not -Throw + } +} diff --git a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConnectionString.Recording.json b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConnectionString.Recording.json new file mode 100644 index 000000000000..e83b3d1d53c2 --- /dev/null +++ b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConnectionString.Recording.json @@ -0,0 +1,314 @@ +{ + "Get-AzPostgreSqlFlexibleServerConnectionString+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "eb0b9d42-0777-4a43-9a26-9031942fcd7b" ], + "CommandName": [ "Az.PostgreSql\\Get-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Get-AzPostgreSqlFlexibleServer_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f7efa828-993f-4799-b8ac-ed758460f16b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "a7addf52-fcd7-496c-9f12-7e030051eb83" ], + "x-ms-routing-request-id": [ "WESTUS2:20201211T061210Z:a7addf52-fcd7-496c-9f12-7e030051eb83" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Fri, 11 Dec 2020 06:12:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1123" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-flexible-test-100.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"adminuser\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/VNETpostgresql-flexible-test-100/subnets/Subnetpostgresql-flexible-test-100\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-12-11T00:18:05.2560441+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-flexible-test-100\",\"name\":\"postgresql-flexible-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "Get-AzPostgreSqlFlexibleServerConnectionString+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "a28bbb20-764f-426c-a463-cdc2a4fa52e5" ], + "CommandName": [ "Az.PostgreSql\\Get-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Get-AzPostgreSqlFlexibleServer_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f308fb47-0ee9-4489-97a5-2b806605472d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "a5992477-8bf3-4be5-8f44-85dd3376b586" ], + "x-ms-routing-request-id": [ "WESTUS2:20201211T061211Z:a5992477-8bf3-4be5-8f44-85dd3376b586" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Fri, 11 Dec 2020 06:12:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1123" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-flexible-test-100.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"adminuser\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/VNETpostgresql-flexible-test-100/subnets/Subnetpostgresql-flexible-test-100\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-12-11T00:18:05.2560441+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-flexible-test-100\",\"name\":\"postgresql-flexible-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "Get-AzPostgreSqlFlexibleServerConnectionString+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "2a1f7b6a-b10a-46aa-848d-7a548fbe0b1d" ], + "CommandName": [ "Az.PostgreSql\\Get-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Get-AzPostgreSqlFlexibleServer_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0cbedf8b-39a0-4a1f-91de-32084dd90808" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "6027a8d8-a998-45b0-8d68-26d184bdf93b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201211T061211Z:6027a8d8-a998-45b0-8d68-26d184bdf93b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Fri, 11 Dec 2020 06:12:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1123" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-flexible-test-100.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"adminuser\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/VNETpostgresql-flexible-test-100/subnets/Subnetpostgresql-flexible-test-100\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-12-11T00:18:05.2560441+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-flexible-test-100\",\"name\":\"postgresql-flexible-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "Get-AzPostgreSqlFlexibleServerConnectionString+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "d9538c16-2d95-4d95-b23d-30ccf54887c1" ], + "CommandName": [ "Az.PostgreSql\\Get-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Get-AzPostgreSqlFlexibleServer_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "bd37be8f-5a3d-4149-bc1b-b5907ea4a043" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "7ee9fef9-b9de-4c4c-862c-48376663c027" ], + "x-ms-routing-request-id": [ "WESTUS2:20201211T061211Z:7ee9fef9-b9de-4c4c-862c-48376663c027" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Fri, 11 Dec 2020 06:12:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1123" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-flexible-test-100.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"adminuser\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/VNETpostgresql-flexible-test-100/subnets/Subnetpostgresql-flexible-test-100\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-12-11T00:18:05.2560441+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-flexible-test-100\",\"name\":\"postgresql-flexible-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "Get-AzPostgreSqlFlexibleServerConnectionString+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "105ecfca-cd2f-48dc-8b3e-fadafafca7e7" ], + "CommandName": [ "Az.PostgreSql\\Get-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Get-AzPostgreSqlFlexibleServer_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "aa4ba4cc-923f-457a-a848-8b928abf0899" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "48ac76b4-be2f-4f5b-b3ae-c3e77ab3b307" ], + "x-ms-routing-request-id": [ "WESTUS2:20201211T061212Z:48ac76b4-be2f-4f5b-b3ae-c3e77ab3b307" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Fri, 11 Dec 2020 06:12:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1123" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-flexible-test-100.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"adminuser\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/VNETpostgresql-flexible-test-100/subnets/Subnetpostgresql-flexible-test-100\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-12-11T00:18:05.2560441+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-flexible-test-100\",\"name\":\"postgresql-flexible-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "Get-AzPostgreSqlFlexibleServerConnectionString+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "04891cbb-ad53-4a6c-8cbc-dfd2ade65462" ], + "CommandName": [ "Az.PostgreSql\\Get-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Get-AzPostgreSqlFlexibleServer_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "98102487-90cb-4438-b40b-cd52f66c57c8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "ef210309-663a-4f25-8f2f-f0e963aef3fa" ], + "x-ms-routing-request-id": [ "WESTUS2:20201211T061212Z:ef210309-663a-4f25-8f2f-f0e963aef3fa" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Fri, 11 Dec 2020 06:12:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1123" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-flexible-test-100.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"adminuser\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/VNETpostgresql-flexible-test-100/subnets/Subnetpostgresql-flexible-test-100\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-12-11T00:18:05.2560441+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-flexible-test-100\",\"name\":\"postgresql-flexible-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "Get-AzPostgreSqlFlexibleServerConnectionString+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "c3cd4037-2138-46e5-9e2e-92d5b782b825" ], + "CommandName": [ "Az.PostgreSql\\Get-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Get-AzPostgreSqlFlexibleServer_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2dcfa180-7788-44e3-8c97-e8d54e97b052" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "706d19f8-3acd-41c8-a1bd-72b951749ee8" ], + "x-ms-routing-request-id": [ "WESTUS2:20201211T061212Z:706d19f8-3acd-41c8-a1bd-72b951749ee8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Fri, 11 Dec 2020 06:12:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1123" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-flexible-test-100.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"adminuser\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/VNETpostgresql-flexible-test-100/subnets/Subnetpostgresql-flexible-test-100\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-12-11T00:18:05.2560441+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-flexible-test-100\",\"name\":\"postgresql-flexible-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "Get-AzPostgreSqlFlexibleServerConnectionString+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "bde67278-48de-41e4-8abb-68702303438c" ], + "CommandName": [ "Az.PostgreSql\\Get-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Get-AzPostgreSqlFlexibleServer_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2929867e-c95e-44e5-8427-9a97f91d52ca" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "1c5fc348-cf9f-40fe-9042-f534e604bce3" ], + "x-ms-routing-request-id": [ "WESTUS2:20201211T061213Z:1c5fc348-cf9f-40fe-9042-f534e604bce3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Fri, 11 Dec 2020 06:12:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1123" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-flexible-test-100.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"adminuser\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/VNETpostgresql-flexible-test-100/subnets/Subnetpostgresql-flexible-test-100\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-12-11T00:18:05.2560441+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-flexible-test-100\",\"name\":\"postgresql-flexible-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + } +} \ No newline at end of file diff --git a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConnectionString.Tests.ps1 b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConnectionString.Tests.ps1 new file mode 100644 index 000000000000..e87fd7772370 --- /dev/null +++ b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConnectionString.Tests.ps1 @@ -0,0 +1,47 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzPostgreSqlFlexibleServerConnectionString.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzPostgreSqlFlexibleServerConnectionString' { + It 'Get' { + $connectionString = Get-AzPostgreSqlFlexibleServerConnectionString -Client ADO.NET -Name $env.flexibleServerName -ResourceGroupName $env.resourceGroup + $connectionString | Should -Be "Server=$($env.flexibleServerName).postgres.database.azure.com;Database={your_database};Port=5432;User Id=adminuser;Password={your_password};" + + $PHPConnectionString = Get-AzPostgreSqlFlexibleServerConnectionString -Client PHP -Name $env.flexibleServerName -ResourceGroupName $env.resourceGroup + $PHPExpect = "host=$($env.flexibleServerName).postgres.database.azure.com port=5432 dbname={your_database} user=adminuser password={your_password}" + $PHPConnectionString | Should -Be $PHPExpect + + $JDBCConnectionString = Get-AzPostgreSqlFlexibleServerConnectionString -Client JDBC -Name $env.flexibleServerName -ResourceGroupName $env.resourceGroup + $JDBCExpect = "jdbc:postgresql://$($env.flexibleServerName).postgres.database.azure.com:5432/{your_database}?user=adminuser&password={your_password}&" + $JDBCConnectionString | Should -Be $JDBCExpect + + $NodeConnectionString = Get-AzPostgreSqlFlexibleServerConnectionString -Client Node.js -Name $env.flexibleServerName -ResourceGroupName $env.resourceGroup + $NodeExpect = "host=$($env.flexibleServerName).postgres.database.azure.com port=5432 dbname={your_database} user=adminuser password={your_password}" + $NodeConnectionString | Should -Be $NodeExpect + + $PythonConnectionString = Get-AzPostgreSqlFlexibleServerConnectionString -Client Python -Name $env.flexibleServerName -ResourceGroupName $env.resourceGroup + $PythonExpect = "dbname='{your_database}' user='adminuser' host='$($env.flexibleServerName).postgres.database.azure.com' password='{your_password}' port='5432'" + $PythonConnectionString | Should -Be $PythonExpect + + $RubyConnectionString = Get-AzPostgreSqlFlexibleServerConnectionString -Client Ruby -Name $env.flexibleServerName -ResourceGroupName $env.resourceGroup + $RubyExpect = "host=$($env.flexibleServerName).postgres.database.azure.com; dbname={your_database} user=adminuser password={your_password} port=5432" + $RubyConnectionString | Should -Be $RubyExpect + + $WebConnectionString = Get-AzPostgreSqlFlexibleServerConnectionString -Client C++ -Name $env.flexibleServerName -ResourceGroupName $env.resourceGroup + $WebExpect = "host=$($env.flexibleServerName).postgres.database.azure.com port=5432 dbname={your_database} user=adminuser password={your_password}" + $WebConnectionString | Should -Be $WebExpect + + $WebConnectionString = Get-AzPostgreSqlFlexibleServerConnectionString -Client psql -Name $env.flexibleServerName -ResourceGroupName $env.resourceGroup + $WebExpect = "psql ""host=$($env.flexibleServerName).postgres.database.azure.com port=5432 dbname={your_database} user=adminuser password={your_password}""" + $WebConnectionString | Should -Be $WebExpect + } +} diff --git a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerFirewallRule.Recording.json b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerFirewallRule.Recording.json new file mode 100644 index 000000000000..b8e018a7130f --- /dev/null +++ b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerFirewallRule.Recording.json @@ -0,0 +1,355 @@ +{ + "Get-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"0.0.0.1\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "93" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/ae61af99-11f5-425e-9496-adae59a1730b?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/ae61af99-11f5-425e-9496-adae59a1730b?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ae61af99-11f5-425e-9496-adae59a1730b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "38fbbb8e-f636-456e-bdc1-aab841756326" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064242Z:38fbbb8e-f636-456e-bdc1-aab841756326" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:42:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "98" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-11T06:42:42.25Z\"}" + } + }, + "Get-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/ae61af99-11f5-425e-9496-adae59a1730b?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/ae61af99-11f5-425e-9496-adae59a1730b?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "226d9315-9e69-49de-8a01-63faea83eec9" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6682f181-1993-47c0-9960-74e23e0186b1" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "baaf7dd2-86c3-41bc-885e-9a5d6f25f8d2" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064342Z:baaf7dd2-86c3-41bc-885e-9a5d6f25f8d2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:43:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ae61af99-11f5-425e-9496-adae59a1730b\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T06:42:42.25Z\"}" + } + }, + "Get-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "226d9315-9e69-49de-8a01-63faea83eec9" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c2954918-5b0b-4c78-ba6b-550d4e6dfb12" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "daccb8d4-d820-42a9-9dcd-bdfe15517dac" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064343Z:daccb8d4-d820-42a9-9dcd-bdfe15517dac" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:43:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "159" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/firewallRules\"}" + } + }, + "Get-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "4ca7ccb3-c3be-4538-9fde-f67eaa512f4c" ], + "CommandName": [ "Get-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Get-AzPostgreSqlFlexibleServerFirewallRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4cf725fd-ee77-4c5a-885f-605ab061477c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "182b5dec-7fd0-49e0-9d35-2b05ff0c482d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064343Z:182b5dec-7fd0-49e0-9d35-2b05ff0c482d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:43:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "171" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/firewallRules\"}]}" + } + }, + "Get-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "6cd1c94b-ca8d-41ec-b35f-609ae68c8584" ], + "CommandName": [ "Get-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Get-AzPostgreSqlFlexibleServerFirewallRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c4f16cc9-cf43-469f-8d41-d1eb17e2645c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "fe102d20-9085-4d06-9855-f6410fe040b1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064343Z:fe102d20-9085-4d06-9855-f6410fe040b1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:43:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "159" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/firewallRules\"}" + } + }, + "Get-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "5b726075-2b6f-46d4-99a5-0cb5ba425dca" ], + "CommandName": [ "Get-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Get-AzPostgreSqlFlexibleServerFirewallRule_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2d9aabde-72ed-42e0-91d5-4817f96218e7" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "34241739-057d-4a33-b3cd-a96fe6515a87" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064343Z:34241739-057d-4a33-b3cd-a96fe6515a87" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:43:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "159" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/firewallRules\"}" + } + }, + "Get-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+GetViaIdentity+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "553ceb7b-3f4e-4b74-979e-d5828d2bfa47" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule_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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/4947e499-d634-423d-985f-9eca4b146bcb?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/4947e499-d634-423d-985f-9eca4b146bcb?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4947e499-d634-423d-985f-9eca4b146bcb" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "2ed26549-e625-4a0f-9abc-4fb00476c155" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064344Z:2ed26549-e625-4a0f-9abc-4fb00476c155" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:43:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "96" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-11T06:43:44.08Z\"}" + } + }, + "Get-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/4947e499-d634-423d-985f-9eca4b146bcb?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/4947e499-d634-423d-985f-9eca4b146bcb?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "553ceb7b-3f4e-4b74-979e-d5828d2bfa47" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "123ee15d-bff7-4aab-a166-83f19fdc2917" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "e241856a-4fd1-4dd4-9492-4715d58ff6b7" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064444Z:e241856a-4fd1-4dd4-9492-4715d58ff6b7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:44:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"4947e499-d634-423d-985f-9eca4b146bcb\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T06:43:44.08Z\"}" + } + }, + "Get-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/4947e499-d634-423d-985f-9eca4b146bcb?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/4947e499-d634-423d-985f-9eca4b146bcb?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "553ceb7b-3f4e-4b74-979e-d5828d2bfa47" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6ad806f6-cb0f-4b07-82f5-c5275651c1a9" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "27856b02-ee06-49b5-8be9-3e6deaa7aa88" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064444Z:27856b02-ee06-49b5-8be9-3e6deaa7aa88" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:44:44 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + } +} \ No newline at end of file diff --git a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 new file mode 100644 index 000000000000..507ce13fd7d1 --- /dev/null +++ b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 @@ -0,0 +1,40 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzPostgreSqlFlexibleServerFirewallRule.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzPostgreSqlFlexibleServerFirewallRule' { + It 'List' { + { + New-AzPostgreSqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.flexibleServerName -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 + $rule = Get-AzPostgreSqlFlexibleServerFirewallRule -ResourceGroupName $env.resourceGroup -ServerName $env.flexibleServerName + $rule.Count | Should -Be 1 + } | Should -Not -Throw + } + + It 'Get' { + { + $rule = Get-AzPostgreSqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.flexibleServerName + $rule.StartIPAddress | Should -Be 0.0.0.0 + $rule.EndIPAddress | Should -Be 0.0.0.1 + } | Should -Not -Throw + } + + It 'GetViaIdentity' { + { + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForPostgreSql/flexibleServers/$($env.flexibleServerName)/firewallRules/$($env.firewallRuleName)" + $rule = Get-AzPostgreSqlFlexibleServerFirewallRule -InputObject $ID + $rule.StartIPAddress | Should -Be 0.0.0.0 + $rule.EndIPAddress | Should -Be 0.0.0.1 + Remove-AzPostgreSqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.flexibleServerName + } | Should -Not -Throw + } +} diff --git a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.Recording.json b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.Recording.json new file mode 100644 index 000000000000..6200b32d00e4 --- /dev/null +++ b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.Recording.json @@ -0,0 +1,41 @@ +{ + "Get-AzPostgreSqlFlexibleServerLocationBasedCapability+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSql/locations/eastus2euap/capabilities?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSql/locations/eastus2euap/capabilities?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "fcaed0d8-1b69-4679-a0b0-88fde8602d70" ], + "CommandName": [ "Az.PostgreSql.internal\\Get-AzPostgreSqlFlexibleServerLocationBasedCapability" ], + "FullCommandName": [ "Get-AzPostgreSqlFlexibleServerLocationBasedCapability_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "815b9fea-9d66-47e9-bf2b-93a5ad0e5422" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "289f0fb8-65f3-4cec-976f-633dde7c92ea" ], + "x-ms-routing-request-id": [ "WESTUS:20201210T231433Z:289f0fb8-65f3-4cec-976f-633dde7c92ea" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 23:14:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "50995" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"zone\":\"none\",\"supportedFlexibleServerEditions\":[{\"name\":\"Burstable\",\"supportedStorageEditions\":[{\"name\":\"ManagedDisk\",\"supportedStorageMB\":[{\"name\":\"32768\",\"supportedIOPS\":120,\"storageSizeMB\":32768,\"status\":\"Available\"},{\"name\":\"65536\",\"supportedIOPS\":240,\"storageSizeMB\":65536,\"status\":\"Available\"},{\"name\":\"131072\",\"supportedIOPS\":500,\"storageSizeMB\":131072,\"status\":\"Available\"},{\"name\":\"262144\",\"supportedIOPS\":1100,\"storageSizeMB\":262144,\"status\":\"Available\"},{\"name\":\"524288\",\"supportedIOPS\":2300,\"storageSizeMB\":524288,\"status\":\"Available\"},{\"name\":\"1048576\",\"supportedIOPS\":5000,\"storageSizeMB\":1048576,\"status\":\"Available\"},{\"name\":\"2097152\",\"supportedIOPS\":7500,\"storageSizeMB\":2097152,\"status\":\"Available\"},{\"name\":\"4194304\",\"supportedIOPS\":7500,\"storageSizeMB\":4194304,\"status\":\"Available\"},{\"name\":\"8388608\",\"supportedIOPS\":16000,\"storageSizeMB\":8388608,\"status\":\"Available\"},{\"name\":\"16777216\",\"supportedIOPS\":18000,\"storageSizeMB\":16777216,\"status\":\"Available\"},{\"name\":\"33554432\",\"supportedIOPS\":20000,\"storageSizeMB\":33554432,\"status\":\"Available\"}],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"11\",\"supportedVcores\":[{\"name\":\"Standard_B1ms\",\"vCores\":1,\"supportedIOPS\":640,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"},{\"name\":\"Standard_B2s\",\"vCores\":2,\"supportedIOPS\":1280,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12\",\"supportedVcores\":[{\"name\":\"Standard_B1ms\",\"vCores\":1,\"supportedIOPS\":640,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"},{\"name\":\"Standard_B2s\",\"vCores\":2,\"supportedIOPS\":1280,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12.0\",\"supportedVcores\":[{\"name\":\"Standard_B1ms\",\"vCores\":1,\"supportedIOPS\":640,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"},{\"name\":\"Standard_B2s\",\"vCores\":2,\"supportedIOPS\":1280,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12.1\",\"supportedVcores\":[{\"name\":\"Standard_B1ms\",\"vCores\":1,\"supportedIOPS\":640,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"},{\"name\":\"Standard_B2s\",\"vCores\":2,\"supportedIOPS\":1280,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"}],\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"GeneralPurpose\",\"supportedStorageEditions\":[{\"name\":\"ManagedDisk\",\"supportedStorageMB\":[{\"name\":\"32768\",\"supportedIOPS\":120,\"storageSizeMB\":32768,\"status\":\"Available\"},{\"name\":\"65536\",\"supportedIOPS\":240,\"storageSizeMB\":65536,\"status\":\"Available\"},{\"name\":\"131072\",\"supportedIOPS\":500,\"storageSizeMB\":131072,\"status\":\"Available\"},{\"name\":\"262144\",\"supportedIOPS\":1100,\"storageSizeMB\":262144,\"status\":\"Available\"},{\"name\":\"524288\",\"supportedIOPS\":2300,\"storageSizeMB\":524288,\"status\":\"Available\"},{\"name\":\"1048576\",\"supportedIOPS\":5000,\"storageSizeMB\":1048576,\"status\":\"Default\"},{\"name\":\"2097152\",\"supportedIOPS\":7500,\"storageSizeMB\":2097152,\"status\":\"Available\"},{\"name\":\"4194304\",\"supportedIOPS\":7500,\"storageSizeMB\":4194304,\"status\":\"Available\"},{\"name\":\"8388608\",\"supportedIOPS\":16000,\"storageSizeMB\":8388608,\"status\":\"Available\"},{\"name\":\"16777216\",\"supportedIOPS\":18000,\"storageSizeMB\":16777216,\"status\":\"Available\"}],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"11\",\"supportedVcores\":[{\"name\":\"Standard_D2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12\",\"supportedVcores\":[{\"name\":\"Standard_D2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12.0\",\"supportedVcores\":[{\"name\":\"Standard_D2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12.1\",\"supportedVcores\":[{\"name\":\"Standard_D2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Default\"},{\"name\":\"Standard_D8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Default\"}],\"status\":\"Default\"},{\"name\":\"MemoryOptimized\",\"supportedStorageEditions\":[{\"name\":\"ManagedDisk\",\"supportedStorageMB\":[{\"name\":\"32768\",\"supportedIOPS\":120,\"storageSizeMB\":32768,\"status\":\"Available\"},{\"name\":\"65536\",\"supportedIOPS\":240,\"storageSizeMB\":65536,\"status\":\"Available\"},{\"name\":\"131072\",\"supportedIOPS\":500,\"storageSizeMB\":131072,\"status\":\"Available\"},{\"name\":\"262144\",\"supportedIOPS\":1100,\"storageSizeMB\":262144,\"status\":\"Available\"},{\"name\":\"524288\",\"supportedIOPS\":2300,\"storageSizeMB\":524288,\"status\":\"Available\"},{\"name\":\"1048576\",\"supportedIOPS\":5000,\"storageSizeMB\":1048576,\"status\":\"Available\"},{\"name\":\"2097152\",\"supportedIOPS\":7500,\"storageSizeMB\":2097152,\"status\":\"Available\"},{\"name\":\"4194304\",\"supportedIOPS\":7500,\"storageSizeMB\":4194304,\"status\":\"Available\"},{\"name\":\"8388608\",\"supportedIOPS\":16000,\"storageSizeMB\":8388608,\"status\":\"Available\"},{\"name\":\"16777216\",\"supportedIOPS\":18000,\"storageSizeMB\":16777216,\"status\":\"Available\"},{\"name\":\"33554432\",\"supportedIOPS\":20000,\"storageSizeMB\":33554432,\"status\":\"Available\"}],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"11\",\"supportedVcores\":[{\"name\":\"Standard_E2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":6912,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12\",\"supportedVcores\":[{\"name\":\"Standard_E2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":6912,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12.0\",\"supportedVcores\":[{\"name\":\"Standard_E2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":6912,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12.1\",\"supportedVcores\":[{\"name\":\"Standard_E2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":6912,\"status\":\"Available\"}],\"status\":\"Available\"}],\"status\":\"Available\"}],\"supportedHyperscaleNodeEditions\":[{\"name\":\"GeneralPurpose\",\"supportedStorageEditions\":[{\"name\":\"ManagedDisk\",\"supportedStorageMB\":[{\"name\":\"524288\",\"supportedIOPS\":2300,\"storageSizeMB\":524288,\"status\":\"Available\"},{\"name\":\"1048576\",\"supportedIOPS\":5000,\"storageSizeMB\":1048576,\"status\":\"Available\"},{\"name\":\"2097152\",\"supportedIOPS\":7500,\"storageSizeMB\":2097152,\"status\":\"Available\"},{\"name\":\"4194304\",\"supportedIOPS\":7500,\"storageSizeMB\":4194304,\"status\":\"Available\"},{\"name\":\"8388608\",\"supportedIOPS\":16000,\"storageSizeMB\":8388608,\"status\":\"Available\"},{\"name\":\"16777216\",\"supportedIOPS\":18000,\"storageSizeMB\":16777216,\"status\":\"Available\"},{\"name\":\"33553408\",\"supportedIOPS\":20000,\"storageSizeMB\":33553408,\"status\":\"Available\"}],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"11\",\"supportedVcores\":[{\"name\":\"Standard_D4s_v3\",\"vCores\":4,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D8s_v3\",\"vCores\":8,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D16s_v3\",\"vCores\":16,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D32s_v3\",\"vCores\":32,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D64s_v3\",\"vCores\":64,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"11.0\",\"supportedVcores\":[{\"name\":\"Standard_D4s_v3\",\"vCores\":4,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D8s_v3\",\"vCores\":8,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D16s_v3\",\"vCores\":16,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D32s_v3\",\"vCores\":32,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D64s_v3\",\"vCores\":64,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"11.2\",\"supportedVcores\":[{\"name\":\"Standard_D4s_v3\",\"vCores\":4,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D8s_v3\",\"vCores\":8,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D16s_v3\",\"vCores\":16,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D32s_v3\",\"vCores\":32,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D64s_v3\",\"vCores\":64,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"11.2.8\",\"supportedVcores\":[{\"name\":\"Standard_D4s_v3\",\"vCores\":4,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D8s_v3\",\"vCores\":8,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D16s_v3\",\"vCores\":16,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D32s_v3\",\"vCores\":32,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D64s_v3\",\"vCores\":64,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Available\"}],\"supportedNodeTypes\":[{\"name\":\"Coordinator\",\"nodeType\":\"Coordinator\",\"status\":\"Default\"}],\"status\":\"Available\"},{\"name\":\"MemoryOptimized\",\"supportedStorageEditions\":[{\"name\":\"ManagedDisk\",\"supportedStorageMB\":[{\"name\":\"524288\",\"supportedIOPS\":2300,\"storageSizeMB\":524288,\"status\":\"Available\"},{\"name\":\"1048576\",\"supportedIOPS\":5000,\"storageSizeMB\":1048576,\"status\":\"Available\"},{\"name\":\"2097152\",\"supportedIOPS\":7500,\"storageSizeMB\":2097152,\"status\":\"Available\"},{\"name\":\"4194304\",\"supportedIOPS\":7500,\"storageSizeMB\":4194304,\"status\":\"Available\"},{\"name\":\"8388608\",\"supportedIOPS\":16000,\"storageSizeMB\":8388608,\"status\":\"Available\"},{\"name\":\"16777216\",\"supportedIOPS\":18000,\"storageSizeMB\":16777216,\"status\":\"Available\"},{\"name\":\"33553408\",\"supportedIOPS\":20000,\"storageSizeMB\":33553408,\"status\":\"Available\"}],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"11\",\"supportedVcores\":[{\"name\":\"Standard_E4s_v3\",\"vCores\":4,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E8s_v3\",\"vCores\":8,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E16s_v3\",\"vCores\":16,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E32s_v3\",\"vCores\":32,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E64s_v3\",\"vCores\":64,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"11.0\",\"supportedVcores\":[{\"name\":\"Standard_E4s_v3\",\"vCores\":4,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E8s_v3\",\"vCores\":8,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E16s_v3\",\"vCores\":16,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_32s_v3\",\"vCores\":32,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E64s_v3\",\"vCores\":64,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"11.2\",\"supportedVcores\":[{\"name\":\"Standard_E4s_v3\",\"vCores\":4,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E8s_v3\",\"vCores\":8,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E16s_v3\",\"vCores\":16,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E32s_v3\",\"vCores\":32,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E64s_v3\",\"vCores\":64,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"11.2.8\",\"supportedVcores\":[{\"name\":\"Standard_E4s_v3\",\"vCores\":4,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_E8s_v3\",\"vCores\":8,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_E16s_v3\",\"vCores\":16,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_E32s_v3\",\"vCores\":32,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_E64s_v3\",\"vCores\":64,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Available\"}],\"supportedNodeTypes\":[{\"name\":\"Worker\",\"nodeType\":\"Worker\",\"status\":\"Default\"}],\"status\":\"Available\"}],\"status\":\"Default\"},{\"zone\":\"1\",\"supportedFlexibleServerEditions\":[{\"name\":\"Burstable\",\"supportedStorageEditions\":[{\"name\":\"ManagedDisk\",\"supportedStorageMB\":[{\"name\":\"32768\",\"supportedIOPS\":120,\"storageSizeMB\":32768,\"status\":\"Available\"},{\"name\":\"65536\",\"supportedIOPS\":240,\"storageSizeMB\":65536,\"status\":\"Available\"},{\"name\":\"131072\",\"supportedIOPS\":500,\"storageSizeMB\":131072,\"status\":\"Available\"},{\"name\":\"262144\",\"supportedIOPS\":1100,\"storageSizeMB\":262144,\"status\":\"Available\"},{\"name\":\"524288\",\"supportedIOPS\":2300,\"storageSizeMB\":524288,\"status\":\"Available\"},{\"name\":\"1048576\",\"supportedIOPS\":5000,\"storageSizeMB\":1048576,\"status\":\"Available\"},{\"name\":\"2097152\",\"supportedIOPS\":7500,\"storageSizeMB\":2097152,\"status\":\"Available\"},{\"name\":\"4194304\",\"supportedIOPS\":7500,\"storageSizeMB\":4194304,\"status\":\"Available\"},{\"name\":\"8388608\",\"supportedIOPS\":16000,\"storageSizeMB\":8388608,\"status\":\"Available\"},{\"name\":\"16777216\",\"supportedIOPS\":18000,\"storageSizeMB\":16777216,\"status\":\"Available\"},{\"name\":\"33554432\",\"supportedIOPS\":20000,\"storageSizeMB\":33554432,\"status\":\"Available\"}],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"11\",\"supportedVcores\":[{\"name\":\"Standard_B1ms\",\"vCores\":1,\"supportedIOPS\":640,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"},{\"name\":\"Standard_B2s\",\"vCores\":2,\"supportedIOPS\":1280,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12\",\"supportedVcores\":[{\"name\":\"Standard_B1ms\",\"vCores\":1,\"supportedIOPS\":640,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"},{\"name\":\"Standard_B2s\",\"vCores\":2,\"supportedIOPS\":1280,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12.0\",\"supportedVcores\":[{\"name\":\"Standard_B1ms\",\"vCores\":1,\"supportedIOPS\":640,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"},{\"name\":\"Standard_B2s\",\"vCores\":2,\"supportedIOPS\":1280,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12.1\",\"supportedVcores\":[{\"name\":\"Standard_B1ms\",\"vCores\":1,\"supportedIOPS\":640,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"},{\"name\":\"Standard_B2s\",\"vCores\":2,\"supportedIOPS\":1280,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"}],\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"GeneralPurpose\",\"supportedStorageEditions\":[{\"name\":\"ManagedDisk\",\"supportedStorageMB\":[{\"name\":\"32768\",\"supportedIOPS\":120,\"storageSizeMB\":32768,\"status\":\"Available\"},{\"name\":\"65536\",\"supportedIOPS\":240,\"storageSizeMB\":65536,\"status\":\"Available\"},{\"name\":\"131072\",\"supportedIOPS\":500,\"storageSizeMB\":131072,\"status\":\"Available\"},{\"name\":\"262144\",\"supportedIOPS\":1100,\"storageSizeMB\":262144,\"status\":\"Available\"},{\"name\":\"524288\",\"supportedIOPS\":2300,\"storageSizeMB\":524288,\"status\":\"Available\"},{\"name\":\"1048576\",\"supportedIOPS\":5000,\"storageSizeMB\":1048576,\"status\":\"Default\"},{\"name\":\"2097152\",\"supportedIOPS\":7500,\"storageSizeMB\":2097152,\"status\":\"Available\"},{\"name\":\"4194304\",\"supportedIOPS\":7500,\"storageSizeMB\":4194304,\"status\":\"Available\"},{\"name\":\"8388608\",\"supportedIOPS\":16000,\"storageSizeMB\":8388608,\"status\":\"Available\"},{\"name\":\"16777216\",\"supportedIOPS\":18000,\"storageSizeMB\":16777216,\"status\":\"Available\"}],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"11\",\"supportedVcores\":[{\"name\":\"Standard_D2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12\",\"supportedVcores\":[{\"name\":\"Standard_D2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12.0\",\"supportedVcores\":[{\"name\":\"Standard_D2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12.1\",\"supportedVcores\":[{\"name\":\"Standard_D2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Default\"},{\"name\":\"Standard_D8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Default\"}],\"status\":\"Default\"},{\"name\":\"MemoryOptimized\",\"supportedStorageEditions\":[{\"name\":\"ManagedDisk\",\"supportedStorageMB\":[{\"name\":\"32768\",\"supportedIOPS\":120,\"storageSizeMB\":32768,\"status\":\"Available\"},{\"name\":\"65536\",\"supportedIOPS\":240,\"storageSizeMB\":65536,\"status\":\"Available\"},{\"name\":\"131072\",\"supportedIOPS\":500,\"storageSizeMB\":131072,\"status\":\"Available\"},{\"name\":\"262144\",\"supportedIOPS\":1100,\"storageSizeMB\":262144,\"status\":\"Available\"},{\"name\":\"524288\",\"supportedIOPS\":2300,\"storageSizeMB\":524288,\"status\":\"Available\"},{\"name\":\"1048576\",\"supportedIOPS\":5000,\"storageSizeMB\":1048576,\"status\":\"Available\"},{\"name\":\"2097152\",\"supportedIOPS\":7500,\"storageSizeMB\":2097152,\"status\":\"Available\"},{\"name\":\"4194304\",\"supportedIOPS\":7500,\"storageSizeMB\":4194304,\"status\":\"Available\"},{\"name\":\"8388608\",\"supportedIOPS\":16000,\"storageSizeMB\":8388608,\"status\":\"Available\"},{\"name\":\"16777216\",\"supportedIOPS\":18000,\"storageSizeMB\":16777216,\"status\":\"Available\"},{\"name\":\"33554432\",\"supportedIOPS\":20000,\"storageSizeMB\":33554432,\"status\":\"Available\"}],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"11\",\"supportedVcores\":[{\"name\":\"Standard_E2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":6912,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12\",\"supportedVcores\":[{\"name\":\"Standard_E2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":6912,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12.0\",\"supportedVcores\":[{\"name\":\"Standard_E2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":6912,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12.1\",\"supportedVcores\":[{\"name\":\"Standard_E2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":6912,\"status\":\"Available\"}],\"status\":\"Available\"}],\"status\":\"Available\"}],\"supportedHyperscaleNodeEditions\":[],\"status\":\"Available\"},{\"zone\":\"2\",\"supportedFlexibleServerEditions\":[{\"name\":\"Burstable\",\"supportedStorageEditions\":[{\"name\":\"ManagedDisk\",\"supportedStorageMB\":[{\"name\":\"32768\",\"supportedIOPS\":120,\"storageSizeMB\":32768,\"status\":\"Available\"},{\"name\":\"65536\",\"supportedIOPS\":240,\"storageSizeMB\":65536,\"status\":\"Available\"},{\"name\":\"131072\",\"supportedIOPS\":500,\"storageSizeMB\":131072,\"status\":\"Available\"},{\"name\":\"262144\",\"supportedIOPS\":1100,\"storageSizeMB\":262144,\"status\":\"Available\"},{\"name\":\"524288\",\"supportedIOPS\":2300,\"storageSizeMB\":524288,\"status\":\"Available\"},{\"name\":\"1048576\",\"supportedIOPS\":5000,\"storageSizeMB\":1048576,\"status\":\"Available\"},{\"name\":\"2097152\",\"supportedIOPS\":7500,\"storageSizeMB\":2097152,\"status\":\"Available\"},{\"name\":\"4194304\",\"supportedIOPS\":7500,\"storageSizeMB\":4194304,\"status\":\"Available\"},{\"name\":\"8388608\",\"supportedIOPS\":16000,\"storageSizeMB\":8388608,\"status\":\"Available\"},{\"name\":\"16777216\",\"supportedIOPS\":18000,\"storageSizeMB\":16777216,\"status\":\"Available\"},{\"name\":\"33554432\",\"supportedIOPS\":20000,\"storageSizeMB\":33554432,\"status\":\"Available\"}],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"11\",\"supportedVcores\":[{\"name\":\"Standard_B1ms\",\"vCores\":1,\"supportedIOPS\":640,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"},{\"name\":\"Standard_B2s\",\"vCores\":2,\"supportedIOPS\":1280,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12\",\"supportedVcores\":[{\"name\":\"Standard_B1ms\",\"vCores\":1,\"supportedIOPS\":640,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"},{\"name\":\"Standard_B2s\",\"vCores\":2,\"supportedIOPS\":1280,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12.0\",\"supportedVcores\":[{\"name\":\"Standard_B1ms\",\"vCores\":1,\"supportedIOPS\":640,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"},{\"name\":\"Standard_B2s\",\"vCores\":2,\"supportedIOPS\":1280,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12.1\",\"supportedVcores\":[{\"name\":\"Standard_B1ms\",\"vCores\":1,\"supportedIOPS\":640,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"},{\"name\":\"Standard_B2s\",\"vCores\":2,\"supportedIOPS\":1280,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"}],\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"GeneralPurpose\",\"supportedStorageEditions\":[{\"name\":\"ManagedDisk\",\"supportedStorageMB\":[{\"name\":\"32768\",\"supportedIOPS\":120,\"storageSizeMB\":32768,\"status\":\"Available\"},{\"name\":\"65536\",\"supportedIOPS\":240,\"storageSizeMB\":65536,\"status\":\"Available\"},{\"name\":\"131072\",\"supportedIOPS\":500,\"storageSizeMB\":131072,\"status\":\"Available\"},{\"name\":\"262144\",\"supportedIOPS\":1100,\"storageSizeMB\":262144,\"status\":\"Available\"},{\"name\":\"524288\",\"supportedIOPS\":2300,\"storageSizeMB\":524288,\"status\":\"Available\"},{\"name\":\"1048576\",\"supportedIOPS\":5000,\"storageSizeMB\":1048576,\"status\":\"Default\"},{\"name\":\"2097152\",\"supportedIOPS\":7500,\"storageSizeMB\":2097152,\"status\":\"Available\"},{\"name\":\"4194304\",\"supportedIOPS\":7500,\"storageSizeMB\":4194304,\"status\":\"Available\"},{\"name\":\"8388608\",\"supportedIOPS\":16000,\"storageSizeMB\":8388608,\"status\":\"Available\"},{\"name\":\"16777216\",\"supportedIOPS\":18000,\"storageSizeMB\":16777216,\"status\":\"Available\"}],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"11\",\"supportedVcores\":[{\"name\":\"Standard_D2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12\",\"supportedVcores\":[{\"name\":\"Standard_D2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12.0\",\"supportedVcores\":[{\"name\":\"Standard_D2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12.1\",\"supportedVcores\":[{\"name\":\"Standard_D2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Default\"},{\"name\":\"Standard_D8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Default\"}],\"status\":\"Default\"},{\"name\":\"MemoryOptimized\",\"supportedStorageEditions\":[{\"name\":\"ManagedDisk\",\"supportedStorageMB\":[{\"name\":\"32768\",\"supportedIOPS\":120,\"storageSizeMB\":32768,\"status\":\"Available\"},{\"name\":\"65536\",\"supportedIOPS\":240,\"storageSizeMB\":65536,\"status\":\"Available\"},{\"name\":\"131072\",\"supportedIOPS\":500,\"storageSizeMB\":131072,\"status\":\"Available\"},{\"name\":\"262144\",\"supportedIOPS\":1100,\"storageSizeMB\":262144,\"status\":\"Available\"},{\"name\":\"524288\",\"supportedIOPS\":2300,\"storageSizeMB\":524288,\"status\":\"Available\"},{\"name\":\"1048576\",\"supportedIOPS\":5000,\"storageSizeMB\":1048576,\"status\":\"Available\"},{\"name\":\"2097152\",\"supportedIOPS\":7500,\"storageSizeMB\":2097152,\"status\":\"Available\"},{\"name\":\"4194304\",\"supportedIOPS\":7500,\"storageSizeMB\":4194304,\"status\":\"Available\"},{\"name\":\"8388608\",\"supportedIOPS\":16000,\"storageSizeMB\":8388608,\"status\":\"Available\"},{\"name\":\"16777216\",\"supportedIOPS\":18000,\"storageSizeMB\":16777216,\"status\":\"Available\"},{\"name\":\"33554432\",\"supportedIOPS\":20000,\"storageSizeMB\":33554432,\"status\":\"Available\"}],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"11\",\"supportedVcores\":[{\"name\":\"Standard_E2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":6912,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12\",\"supportedVcores\":[{\"name\":\"Standard_E2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":6912,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12.0\",\"supportedVcores\":[{\"name\":\"Standard_E2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":6912,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12.1\",\"supportedVcores\":[{\"name\":\"Standard_E2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":6912,\"status\":\"Available\"}],\"status\":\"Available\"}],\"status\":\"Available\"}],\"supportedHyperscaleNodeEditions\":[],\"status\":\"Available\"},{\"zone\":\"3\",\"supportedFlexibleServerEditions\":[{\"name\":\"Burstable\",\"supportedStorageEditions\":[{\"name\":\"ManagedDisk\",\"supportedStorageMB\":[{\"name\":\"32768\",\"supportedIOPS\":120,\"storageSizeMB\":32768,\"status\":\"Available\"},{\"name\":\"65536\",\"supportedIOPS\":240,\"storageSizeMB\":65536,\"status\":\"Available\"},{\"name\":\"131072\",\"supportedIOPS\":500,\"storageSizeMB\":131072,\"status\":\"Available\"},{\"name\":\"262144\",\"supportedIOPS\":1100,\"storageSizeMB\":262144,\"status\":\"Available\"},{\"name\":\"524288\",\"supportedIOPS\":2300,\"storageSizeMB\":524288,\"status\":\"Available\"},{\"name\":\"1048576\",\"supportedIOPS\":5000,\"storageSizeMB\":1048576,\"status\":\"Available\"},{\"name\":\"2097152\",\"supportedIOPS\":7500,\"storageSizeMB\":2097152,\"status\":\"Available\"},{\"name\":\"4194304\",\"supportedIOPS\":7500,\"storageSizeMB\":4194304,\"status\":\"Available\"},{\"name\":\"8388608\",\"supportedIOPS\":16000,\"storageSizeMB\":8388608,\"status\":\"Available\"},{\"name\":\"16777216\",\"supportedIOPS\":18000,\"storageSizeMB\":16777216,\"status\":\"Available\"},{\"name\":\"33554432\",\"supportedIOPS\":20000,\"storageSizeMB\":33554432,\"status\":\"Available\"}],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"11\",\"supportedVcores\":[{\"name\":\"Standard_B1ms\",\"vCores\":1,\"supportedIOPS\":640,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"},{\"name\":\"Standard_B2s\",\"vCores\":2,\"supportedIOPS\":1280,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12\",\"supportedVcores\":[{\"name\":\"Standard_B1ms\",\"vCores\":1,\"supportedIOPS\":640,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"},{\"name\":\"Standard_B2s\",\"vCores\":2,\"supportedIOPS\":1280,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12.0\",\"supportedVcores\":[{\"name\":\"Standard_B1ms\",\"vCores\":1,\"supportedIOPS\":640,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"},{\"name\":\"Standard_B2s\",\"vCores\":2,\"supportedIOPS\":1280,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12.1\",\"supportedVcores\":[{\"name\":\"Standard_B1ms\",\"vCores\":1,\"supportedIOPS\":640,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"},{\"name\":\"Standard_B2s\",\"vCores\":2,\"supportedIOPS\":1280,\"supportedMemoryPerVcoreMB\":2048,\"status\":\"Available\"}],\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"GeneralPurpose\",\"supportedStorageEditions\":[{\"name\":\"ManagedDisk\",\"supportedStorageMB\":[{\"name\":\"32768\",\"supportedIOPS\":120,\"storageSizeMB\":32768,\"status\":\"Available\"},{\"name\":\"65536\",\"supportedIOPS\":240,\"storageSizeMB\":65536,\"status\":\"Available\"},{\"name\":\"131072\",\"supportedIOPS\":500,\"storageSizeMB\":131072,\"status\":\"Available\"},{\"name\":\"262144\",\"supportedIOPS\":1100,\"storageSizeMB\":262144,\"status\":\"Available\"},{\"name\":\"524288\",\"supportedIOPS\":2300,\"storageSizeMB\":524288,\"status\":\"Available\"},{\"name\":\"1048576\",\"supportedIOPS\":5000,\"storageSizeMB\":1048576,\"status\":\"Default\"},{\"name\":\"2097152\",\"supportedIOPS\":7500,\"storageSizeMB\":2097152,\"status\":\"Available\"},{\"name\":\"4194304\",\"supportedIOPS\":7500,\"storageSizeMB\":4194304,\"status\":\"Available\"},{\"name\":\"8388608\",\"supportedIOPS\":16000,\"storageSizeMB\":8388608,\"status\":\"Available\"},{\"name\":\"16777216\",\"supportedIOPS\":18000,\"storageSizeMB\":16777216,\"status\":\"Available\"}],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"11\",\"supportedVcores\":[{\"name\":\"Standard_D2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12\",\"supportedVcores\":[{\"name\":\"Standard_D2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12.0\",\"supportedVcores\":[{\"name\":\"Standard_D2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12.1\",\"supportedVcores\":[{\"name\":\"Standard_D2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Default\"},{\"name\":\"Standard_D8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"},{\"name\":\"Standard_D64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":4096,\"status\":\"Available\"}],\"status\":\"Default\"}],\"status\":\"Default\"},{\"name\":\"MemoryOptimized\",\"supportedStorageEditions\":[{\"name\":\"ManagedDisk\",\"supportedStorageMB\":[{\"name\":\"32768\",\"supportedIOPS\":120,\"storageSizeMB\":32768,\"status\":\"Available\"},{\"name\":\"65536\",\"supportedIOPS\":240,\"storageSizeMB\":65536,\"status\":\"Available\"},{\"name\":\"131072\",\"supportedIOPS\":500,\"storageSizeMB\":131072,\"status\":\"Available\"},{\"name\":\"262144\",\"supportedIOPS\":1100,\"storageSizeMB\":262144,\"status\":\"Available\"},{\"name\":\"524288\",\"supportedIOPS\":2300,\"storageSizeMB\":524288,\"status\":\"Available\"},{\"name\":\"1048576\",\"supportedIOPS\":5000,\"storageSizeMB\":1048576,\"status\":\"Available\"},{\"name\":\"2097152\",\"supportedIOPS\":7500,\"storageSizeMB\":2097152,\"status\":\"Available\"},{\"name\":\"4194304\",\"supportedIOPS\":7500,\"storageSizeMB\":4194304,\"status\":\"Available\"},{\"name\":\"8388608\",\"supportedIOPS\":16000,\"storageSizeMB\":8388608,\"status\":\"Available\"},{\"name\":\"16777216\",\"supportedIOPS\":18000,\"storageSizeMB\":16777216,\"status\":\"Available\"},{\"name\":\"33554432\",\"supportedIOPS\":20000,\"storageSizeMB\":33554432,\"status\":\"Available\"}],\"status\":\"Default\"}],\"supportedServerVersions\":[{\"name\":\"11\",\"supportedVcores\":[{\"name\":\"Standard_E2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":6912,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12\",\"supportedVcores\":[{\"name\":\"Standard_E2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":6912,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12.0\",\"supportedVcores\":[{\"name\":\"Standard_E2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":6912,\"status\":\"Available\"}],\"status\":\"Available\"},{\"name\":\"12.1\",\"supportedVcores\":[{\"name\":\"Standard_E2s_v3\",\"vCores\":2,\"supportedIOPS\":3200,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E4s_v3\",\"vCores\":4,\"supportedIOPS\":6400,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E8s_v3\",\"vCores\":8,\"supportedIOPS\":12800,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E16s_v3\",\"vCores\":16,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E32s_v3\",\"vCores\":32,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E48s_v3\",\"vCores\":48,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":8192,\"status\":\"Available\"},{\"name\":\"Standard_E64s_v3\",\"vCores\":64,\"supportedIOPS\":18000,\"supportedMemoryPerVcoreMB\":6912,\"status\":\"Available\"}],\"status\":\"Available\"}],\"status\":\"Available\"}],\"supportedHyperscaleNodeEditions\":[],\"status\":\"Available\"}]}" + } + } +} \ No newline at end of file diff --git a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.Tests.ps1 b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.Tests.ps1 new file mode 100644 index 000000000000..2869bb822fd2 --- /dev/null +++ b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.Tests.ps1 @@ -0,0 +1,21 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzPostgreSqlFlexibleServerLocationBasedCapability.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzPostgreSqlFlexibleServerLocationBasedCapability' { + It 'Get' { + { + $Result = Get-AzPostgreSqlFlexibleServerLocationBasedCapability -Location eastus2euap + $Result.Length | Should -BeGreaterThan 0 + } | Should -Not -Throw + } +} diff --git a/src/PostgreSql/test/Get-AzPostgreSqlReplica.Recording.json b/src/PostgreSql/test/Get-AzPostgreSqlReplica.Recording.json index 638be0620af5..31421d70843c 100644 --- a/src/PostgreSql/test/Get-AzPostgreSqlReplica.Recording.json +++ b/src/PostgreSql/test/Get-AzPostgreSqlReplica.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+1": { + "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "44" ], @@ -35,14 +35,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "Get-AzPostgreSqlReplica+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01+2": { + "Get-AzPostgreSqlReplica+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01", - "Content": "{\r\n \"properties\": {\r\n \"createMode\": \"Replica\",\r\n \"sourceServerId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\"\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01", + "Content": "{\r\n \"properties\": {\r\n \"createMode\": \"Replica\",\r\n \"sourceServerId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\"\r\n },\r\n \"location\": \"eastus2euap\"\r\n}", "Headers": { }, "ContentHeaders": { @@ -55,9 +55,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01" ], "x-ms-request-id": [ "c0cffee2-4834-48e2-b55e-792ffed83efd" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1193" ], @@ -75,10 +75,10 @@ "Content": "{\"operation\":\"CreateElasticServerContinuousCopy\",\"startTime\":\"2020-09-25T11:03:11.76Z\"}" } }, - "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+3": { + "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "45", "46" ], @@ -115,10 +115,10 @@ "Content": "{\"name\":\"c0cffee2-4834-48e2-b55e-792ffed83efd\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:03:11.76Z\"}" } }, - "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+4": { + "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "45", "46", "47" ], @@ -155,10 +155,10 @@ "Content": "{\"name\":\"c0cffee2-4834-48e2-b55e-792ffed83efd\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:03:11.76Z\"}" } }, - "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+5": { + "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "45", "46", "47", "48" ], @@ -195,10 +195,10 @@ "Content": "{\"name\":\"c0cffee2-4834-48e2-b55e-792ffed83efd\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:03:11.76Z\"}" } }, - "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+6": { + "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "45", "46", "47", "48", "49" ], @@ -235,10 +235,10 @@ "Content": "{\"name\":\"c0cffee2-4834-48e2-b55e-792ffed83efd\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:03:11.76Z\"}" } }, - "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+7": { + "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "45", "46", "47", "48", "49", "50" ], @@ -275,10 +275,10 @@ "Content": "{\"name\":\"c0cffee2-4834-48e2-b55e-792ffed83efd\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:03:11.76Z\"}" } }, - "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+8": { + "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "45", "46", "47", "48", "49", "50", "51" ], @@ -315,10 +315,10 @@ "Content": "{\"name\":\"c0cffee2-4834-48e2-b55e-792ffed83efd\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:03:11.76Z\"}" } }, - "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+9": { + "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "45", "46", "47", "48", "49", "50", "51", "52" ], @@ -355,10 +355,10 @@ "Content": "{\"name\":\"c0cffee2-4834-48e2-b55e-792ffed83efd\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:03:11.76Z\"}" } }, - "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+10": { + "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "45", "46", "47", "48", "49", "50", "51", "52", "53" ], @@ -395,10 +395,10 @@ "Content": "{\"name\":\"c0cffee2-4834-48e2-b55e-792ffed83efd\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:03:11.76Z\"}" } }, - "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+11": { + "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "45", "46", "47", "48", "49", "50", "51", "52", "53", "54" ], @@ -435,10 +435,10 @@ "Content": "{\"name\":\"c0cffee2-4834-48e2-b55e-792ffed83efd\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:03:11.76Z\"}" } }, - "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+12": { + "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55" ], @@ -475,10 +475,10 @@ "Content": "{\"name\":\"c0cffee2-4834-48e2-b55e-792ffed83efd\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:03:11.76Z\"}" } }, - "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+13": { + "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56" ], @@ -515,10 +515,10 @@ "Content": "{\"name\":\"c0cffee2-4834-48e2-b55e-792ffed83efd\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:03:11.76Z\"}" } }, - "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+14": { + "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+14": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57" ], @@ -555,10 +555,10 @@ "Content": "{\"name\":\"c0cffee2-4834-48e2-b55e-792ffed83efd\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:03:11.76Z\"}" } }, - "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+15": { + "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01+15": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c0cffee2-4834-48e2-b55e-792ffed83efd?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58" ], @@ -595,10 +595,10 @@ "Content": "{\"name\":\"c0cffee2-4834-48e2-b55e-792ffed83efd\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:03:11.76Z\"}" } }, - "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01+16": { + "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01+16": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59" ], @@ -631,13 +631,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Enabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100-replica.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:15:13.76+00:00\",\"replicationRole\":\"Replica\",\"masterServerId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"replicaCapacity\":0,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-replica\",\"name\":\"postgresql-test-100-replica\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Enabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100-replica.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:15:13.76+00:00\",\"replicationRole\":\"Replica\",\"masterServerId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"replicaCapacity\":0,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-replica\",\"name\":\"postgresql-test-100-replica\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/Replicas?api-version=2017-12-01+17": { + "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/Replicas?api-version=2017-12-01+17": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/Replicas?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/Replicas?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "60" ], @@ -670,13 +670,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Enabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100-replica.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:15:13.76+00:00\",\"replicationRole\":\"Replica\",\"masterServerId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"replicaCapacity\":0,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-replica\",\"name\":\"postgresql-test-100-replica\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}]}" + "Content": "{\"value\":[{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Enabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100-replica.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:15:13.76+00:00\",\"replicationRole\":\"Replica\",\"masterServerId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"replicaCapacity\":0,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-replica\",\"name\":\"postgresql-test-100-replica\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}]}" } }, - "Get-AzPostgreSqlReplica+[NoContext]+List+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01+18": { + "Get-AzPostgreSqlReplica+[NoContext]+List+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01+18": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "61" ], @@ -695,9 +695,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/97d13a2d-cdfa-43a0-a9f7-d1268dede627?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/97d13a2d-cdfa-43a0-a9f7-d1268dede627?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/97d13a2d-cdfa-43a0-a9f7-d1268dede627?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/97d13a2d-cdfa-43a0-a9f7-d1268dede627?api-version=2017-12-01" ], "x-ms-request-id": [ "97d13a2d-cdfa-43a0-a9f7-d1268dede627" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14996" ], @@ -715,10 +715,10 @@ "Content": "{\"operation\":\"DropElasticServer\",\"startTime\":\"2020-09-25T11:09:48.2Z\"}" } }, - "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/97d13a2d-cdfa-43a0-a9f7-d1268dede627?api-version=2017-12-01+19": { + "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/97d13a2d-cdfa-43a0-a9f7-d1268dede627?api-version=2017-12-01+19": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/97d13a2d-cdfa-43a0-a9f7-d1268dede627?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/97d13a2d-cdfa-43a0-a9f7-d1268dede627?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "61", "62" ], @@ -755,10 +755,10 @@ "Content": "{\"name\":\"97d13a2d-cdfa-43a0-a9f7-d1268dede627\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:09:48.2Z\"}" } }, - "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/97d13a2d-cdfa-43a0-a9f7-d1268dede627?api-version=2017-12-01+20": { + "Get-AzPostgreSqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/97d13a2d-cdfa-43a0-a9f7-d1268dede627?api-version=2017-12-01+20": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/97d13a2d-cdfa-43a0-a9f7-d1268dede627?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/97d13a2d-cdfa-43a0-a9f7-d1268dede627?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "61", "62", "63" ], diff --git a/src/PostgreSql/test/Get-AzPostgreSqlServer.Recording.json b/src/PostgreSql/test/Get-AzPostgreSqlServer.Recording.json index 9c5e5a1a46d8..ba3b936e5973 100644 --- a/src/PostgreSql/test/Get-AzPostgreSqlServer.Recording.json +++ b/src/PostgreSql/test/Get-AzPostgreSqlServer.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzPostgreSqlServer+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/servers?api-version=2017-12-01+1": { + "Get-AzPostgreSqlServer+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/servers?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/servers?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/servers?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "64" ], @@ -35,13 +35,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}]}" + "Content": "{\"value\":[{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}]}" } }, - "Get-AzPostgreSqlServer+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+1": { + "Get-AzPostgreSqlServer+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "65" ], @@ -74,13 +74,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "Get-AzPostgreSqlServer+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers?api-version=2017-12-01+1": { + "Get-AzPostgreSqlServer+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "66" ], @@ -113,13 +113,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}]}" + "Content": "{\"value\":[{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}]}" } }, - "Get-AzPostgreSqlServer+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+1": { + "Get-AzPostgreSqlServer+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "67" ], @@ -152,7 +152,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } } } \ No newline at end of file diff --git a/src/PostgreSql/test/Get-AzPostgreSqlServer.Tests.ps1 b/src/PostgreSql/test/Get-AzPostgreSqlServer.Tests.ps1 index 53c01a490e3e..8fedb4848232 100644 --- a/src/PostgreSql/test/Get-AzPostgreSqlServer.Tests.ps1 +++ b/src/PostgreSql/test/Get-AzPostgreSqlServer.Tests.ps1 @@ -27,7 +27,7 @@ Describe 'Get-AzPostgreSqlServer' { $servers.Count | Should -Be 1 } - It 'GetViaIdentity' { + It 'GetViaIdentity' -Skip { $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBforPostgreSQL/servers/$($env.serverName)" $servers = Get-AzPostgreSqlServer -InputObject $ID $servers.Name | Should -Be $env.serverName diff --git a/src/PostgreSql/test/Get-AzPostgreSqlVirtualNetworkRule.Recording.json b/src/PostgreSql/test/Get-AzPostgreSqlVirtualNetworkRule.Recording.json index eae9479b3d2b..70f3fd059094 100644 --- a/src/PostgreSql/test/Get-AzPostgreSqlVirtualNetworkRule.Recording.json +++ b/src/PostgreSql/test/Get-AzPostgreSqlVirtualNetworkRule.Recording.json @@ -1,9 +1,9 @@ { - "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+1": { + "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", - "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1\"\r\n }\r\n}", "Headers": { }, "ContentHeaders": { @@ -16,9 +16,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/faa70674-c1b2-47c7-822e-85b027f16ff0?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus/operationResults/faa70674-c1b2-47c7-822e-85b027f16ff0?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/faa70674-c1b2-47c7-822e-85b027f16ff0?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus/azureAsyncOperation/faa70674-c1b2-47c7-822e-85b027f16ff0?api-version=2017-12-01" ], "x-ms-request-id": [ "faa70674-c1b2-47c7-822e-85b027f16ff0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1192" ], @@ -36,10 +36,10 @@ "Content": "{\"operation\":\"UpsertElasticServerVnetFirewallRule\",\"startTime\":\"2020-09-25T11:10:06.73Z\"}" } }, - "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/faa70674-c1b2-47c7-822e-85b027f16ff0?api-version=2017-12-01+2": { + "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus/azureAsyncOperation/faa70674-c1b2-47c7-822e-85b027f16ff0?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/faa70674-c1b2-47c7-822e-85b027f16ff0?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus/azureAsyncOperation/faa70674-c1b2-47c7-822e-85b027f16ff0?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "68", "69" ], @@ -76,10 +76,10 @@ "Content": "{\"name\":\"faa70674-c1b2-47c7-822e-85b027f16ff0\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:10:06.73Z\"}" } }, - "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+3": { + "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "68", "69", "70" ], @@ -112,13 +112,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBforPostgreSQL/servers/virtualNetworkRules\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBForPostgreSQL/servers/virtualNetworkRules\"}" } }, - "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules?api-version=2017-12-01+4": { + "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "71" ], @@ -151,13 +151,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBforPostgreSQL/servers/virtualNetworkRules\"}]}" + "Content": "{\"value\":[{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBForPostgreSQL/servers/virtualNetworkRules\"}]}" } }, - "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+List+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+5": { + "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+List+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "72" ], @@ -176,9 +176,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/cbbf803d-b57f-4f31-b873-60ba9bf08f12?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus/operationResults/cbbf803d-b57f-4f31-b873-60ba9bf08f12?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/cbbf803d-b57f-4f31-b873-60ba9bf08f12?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus/azureAsyncOperation/cbbf803d-b57f-4f31-b873-60ba9bf08f12?api-version=2017-12-01" ], "x-ms-request-id": [ "cbbf803d-b57f-4f31-b873-60ba9bf08f12" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14995" ], @@ -196,10 +196,10 @@ "Content": "{\"operation\":\"DropElasticServerVnetFirewallRule\",\"startTime\":\"2020-09-25T11:10:39.513Z\"}" } }, - "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/cbbf803d-b57f-4f31-b873-60ba9bf08f12?api-version=2017-12-01+6": { + "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus/azureAsyncOperation/cbbf803d-b57f-4f31-b873-60ba9bf08f12?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/cbbf803d-b57f-4f31-b873-60ba9bf08f12?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus/azureAsyncOperation/cbbf803d-b57f-4f31-b873-60ba9bf08f12?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "72", "73" ], @@ -236,10 +236,10 @@ "Content": "{\"name\":\"cbbf803d-b57f-4f31-b873-60ba9bf08f12\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:10:39.513Z\"}" } }, - "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/cbbf803d-b57f-4f31-b873-60ba9bf08f12?api-version=2017-12-01+7": { + "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus/operationResults/cbbf803d-b57f-4f31-b873-60ba9bf08f12?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/cbbf803d-b57f-4f31-b873-60ba9bf08f12?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus/operationResults/cbbf803d-b57f-4f31-b873-60ba9bf08f12?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "72", "73", "74" ], @@ -274,11 +274,11 @@ "Content": null } }, - "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+Get+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+1": { + "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+Get+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", - "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1\"\r\n }\r\n}", "Headers": { }, "ContentHeaders": { @@ -291,9 +291,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/282aa76f-bf70-42a3-9010-91715c9329c6?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus/operationResults/282aa76f-bf70-42a3-9010-91715c9329c6?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/282aa76f-bf70-42a3-9010-91715c9329c6?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus/azureAsyncOperation/282aa76f-bf70-42a3-9010-91715c9329c6?api-version=2017-12-01" ], "x-ms-request-id": [ "282aa76f-bf70-42a3-9010-91715c9329c6" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1191" ], @@ -311,10 +311,10 @@ "Content": "{\"operation\":\"UpsertElasticServerVnetFirewallRule\",\"startTime\":\"2020-09-25T11:10:56.713Z\"}" } }, - "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/282aa76f-bf70-42a3-9010-91715c9329c6?api-version=2017-12-01+2": { + "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus/azureAsyncOperation/282aa76f-bf70-42a3-9010-91715c9329c6?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/282aa76f-bf70-42a3-9010-91715c9329c6?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus/azureAsyncOperation/282aa76f-bf70-42a3-9010-91715c9329c6?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "75", "76" ], @@ -351,10 +351,10 @@ "Content": "{\"name\":\"282aa76f-bf70-42a3-9010-91715c9329c6\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:10:56.713Z\"}" } }, - "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+3": { + "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "75", "76", "77" ], @@ -387,13 +387,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBforPostgreSQL/servers/virtualNetworkRules\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBForPostgreSQL/servers/virtualNetworkRules\"}" } }, - "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+4": { + "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "78" ], @@ -426,13 +426,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBforPostgreSQL/servers/virtualNetworkRules\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBForPostgreSQL/servers/virtualNetworkRules\"}" } }, - "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+Get+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+5": { + "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+Get+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "79" ], @@ -451,9 +451,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/e80870ff-ad55-4f4c-a986-386c5e3e05ad?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus/operationResults/e80870ff-ad55-4f4c-a986-386c5e3e05ad?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e80870ff-ad55-4f4c-a986-386c5e3e05ad?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus/azureAsyncOperation/e80870ff-ad55-4f4c-a986-386c5e3e05ad?api-version=2017-12-01" ], "x-ms-request-id": [ "e80870ff-ad55-4f4c-a986-386c5e3e05ad" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14994" ], @@ -471,10 +471,10 @@ "Content": "{\"operation\":\"DropElasticServerVnetFirewallRule\",\"startTime\":\"2020-09-25T11:11:29.45Z\"}" } }, - "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e80870ff-ad55-4f4c-a986-386c5e3e05ad?api-version=2017-12-01+6": { + "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus/azureAsyncOperation/e80870ff-ad55-4f4c-a986-386c5e3e05ad?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e80870ff-ad55-4f4c-a986-386c5e3e05ad?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus/azureAsyncOperation/e80870ff-ad55-4f4c-a986-386c5e3e05ad?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "79", "80" ], @@ -511,10 +511,10 @@ "Content": "{\"name\":\"e80870ff-ad55-4f4c-a986-386c5e3e05ad\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:11:29.45Z\"}" } }, - "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/e80870ff-ad55-4f4c-a986-386c5e3e05ad?api-version=2017-12-01+7": { + "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus/operationResults/e80870ff-ad55-4f4c-a986-386c5e3e05ad?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/e80870ff-ad55-4f4c-a986-386c5e3e05ad?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus/operationResults/e80870ff-ad55-4f4c-a986-386c5e3e05ad?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "79", "80", "81" ], @@ -549,11 +549,11 @@ "Content": null } }, - "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+1": { + "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", - "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1\"\r\n }\r\n}", "Headers": { }, "ContentHeaders": { @@ -566,9 +566,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/a3e83268-acc5-49df-a0c4-b0c4eadb88d2?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus/operationResults/a3e83268-acc5-49df-a0c4-b0c4eadb88d2?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/a3e83268-acc5-49df-a0c4-b0c4eadb88d2?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus/azureAsyncOperation/a3e83268-acc5-49df-a0c4-b0c4eadb88d2?api-version=2017-12-01" ], "x-ms-request-id": [ "a3e83268-acc5-49df-a0c4-b0c4eadb88d2" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1190" ], @@ -586,10 +586,10 @@ "Content": "{\"operation\":\"UpsertElasticServerVnetFirewallRule\",\"startTime\":\"2020-09-25T11:11:46.7Z\"}" } }, - "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/a3e83268-acc5-49df-a0c4-b0c4eadb88d2?api-version=2017-12-01+2": { + "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus/azureAsyncOperation/a3e83268-acc5-49df-a0c4-b0c4eadb88d2?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/a3e83268-acc5-49df-a0c4-b0c4eadb88d2?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus/azureAsyncOperation/a3e83268-acc5-49df-a0c4-b0c4eadb88d2?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "82", "83" ], @@ -626,10 +626,10 @@ "Content": "{\"name\":\"a3e83268-acc5-49df-a0c4-b0c4eadb88d2\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:11:46.7Z\"}" } }, - "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+3": { + "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "82", "83", "84" ], @@ -662,13 +662,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBforPostgreSQL/servers/virtualNetworkRules\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBForPostgreSQL/servers/virtualNetworkRules\"}" } }, - "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+4": { + "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "85" ], @@ -701,13 +701,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBforPostgreSQL/servers/virtualNetworkRules\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBForPostgreSQL/servers/virtualNetworkRules\"}" } }, - "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+5": { + "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "86" ], @@ -726,9 +726,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/92cbe85d-2b82-4c33-9d43-7ecc5f2b652b?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus/operationResults/92cbe85d-2b82-4c33-9d43-7ecc5f2b652b?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/92cbe85d-2b82-4c33-9d43-7ecc5f2b652b?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus/azureAsyncOperation/92cbe85d-2b82-4c33-9d43-7ecc5f2b652b?api-version=2017-12-01" ], "x-ms-request-id": [ "92cbe85d-2b82-4c33-9d43-7ecc5f2b652b" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14993" ], @@ -746,10 +746,10 @@ "Content": "{\"operation\":\"DropElasticServerVnetFirewallRule\",\"startTime\":\"2020-09-25T11:12:19.373Z\"}" } }, - "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/92cbe85d-2b82-4c33-9d43-7ecc5f2b652b?api-version=2017-12-01+6": { + "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus/azureAsyncOperation/92cbe85d-2b82-4c33-9d43-7ecc5f2b652b?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/92cbe85d-2b82-4c33-9d43-7ecc5f2b652b?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus/azureAsyncOperation/92cbe85d-2b82-4c33-9d43-7ecc5f2b652b?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "86", "87" ], @@ -786,10 +786,10 @@ "Content": "{\"name\":\"92cbe85d-2b82-4c33-9d43-7ecc5f2b652b\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:12:19.373Z\"}" } }, - "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/92cbe85d-2b82-4c33-9d43-7ecc5f2b652b?api-version=2017-12-01+7": { + "Get-AzPostgreSqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus/operationResults/92cbe85d-2b82-4c33-9d43-7ecc5f2b652b?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/92cbe85d-2b82-4c33-9d43-7ecc5f2b652b?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus/operationResults/92cbe85d-2b82-4c33-9d43-7ecc5f2b652b?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "86", "87", "88" ], diff --git a/src/PostgreSql/test/Get-AzPostgreSqlVirtualNetworkRule.Tests.ps1 b/src/PostgreSql/test/Get-AzPostgreSqlVirtualNetworkRule.Tests.ps1 index f5603a6a4a39..2a3600cba578 100644 --- a/src/PostgreSql/test/Get-AzPostgreSqlVirtualNetworkRule.Tests.ps1 +++ b/src/PostgreSql/test/Get-AzPostgreSqlVirtualNetworkRule.Tests.ps1 @@ -13,7 +13,7 @@ while(-not $mockingPath) { Describe 'Get-AzPostgreSqlVirtualNetworkRule' { It 'List' { - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1" + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1" New-AzPostgreSqlVirtualNetworkRule -Name $env.VNetName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -SubnetId $ID $rule = Get-AzPostgreSqlVirtualNetworkRule -ResourceGroupName $env.resourceGroup -ServerName $env.serverName $rule.Count | Should -Be 1 @@ -21,15 +21,15 @@ Describe 'Get-AzPostgreSqlVirtualNetworkRule' { } It 'Get' { - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1" + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1" New-AzPostgreSqlVirtualNetworkRule -Name $env.VNetName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -SubnetId $ID $rule = Get-AzPostgreSqlVirtualNetworkRule -Name $env.VNetName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName $rule.VirtualNetworkSubnetId | Should -Be $ID Remove-AzPostgreSqlVirtualNetworkRule -Name $env.VNetName -ResourceGroupName $env.resourceGroup-ServerName $env.serverName } - It 'GetViaIdentity' { - $VnetID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1" + It 'GetViaIdentity' -Skip { + $VnetID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1" New-AzPostgreSqlVirtualNetworkRule -Name $env.VNetName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -SubnetId $VnetID $RuleID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBforPostgreSQL/servers/$($env.serverName)/virtualNetworkRules/$($env.VNetName)" $rule = Get-AzPostgreSqlVirtualNetworkRule -InputObject $RuleID diff --git a/src/PostgreSql/test/New-AzPostgreSqlFirewallRule.Recording.json b/src/PostgreSql/test/New-AzPostgreSqlFirewallRule.Recording.json index 39f4d647497c..e7333480fe27 100644 --- a/src/PostgreSql/test/New-AzPostgreSqlFirewallRule.Recording.json +++ b/src/PostgreSql/test/New-AzPostgreSqlFirewallRule.Recording.json @@ -1,8 +1,8 @@ { - "New-AzPostgreSqlFirewallRule+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+1": { + "New-AzPostgreSqlFirewallRule+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"0.0.0.1\"\r\n }\r\n}", "Headers": { }, @@ -16,9 +16,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/d1b66176-b61f-4054-a64c-d2eecaa85152?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/d1b66176-b61f-4054-a64c-d2eecaa85152?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/d1b66176-b61f-4054-a64c-d2eecaa85152?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/d1b66176-b61f-4054-a64c-d2eecaa85152?api-version=2017-12-01" ], "x-ms-request-id": [ "d1b66176-b61f-4054-a64c-d2eecaa85152" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1189" ], @@ -36,10 +36,10 @@ "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-09-25T11:12:36.997Z\"}" } }, - "New-AzPostgreSqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/d1b66176-b61f-4054-a64c-d2eecaa85152?api-version=2017-12-01+2": { + "New-AzPostgreSqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/d1b66176-b61f-4054-a64c-d2eecaa85152?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/d1b66176-b61f-4054-a64c-d2eecaa85152?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/d1b66176-b61f-4054-a64c-d2eecaa85152?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "89", "90" ], @@ -76,10 +76,10 @@ "Content": "{\"name\":\"d1b66176-b61f-4054-a64c-d2eecaa85152\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:12:36.997Z\"}" } }, - "New-AzPostgreSqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+3": { + "New-AzPostgreSqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "89", "90", "91" ], @@ -112,13 +112,13 @@ "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/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBForPostgreSQL/servers/firewallRules\"}" } }, - "New-AzPostgreSqlFirewallRule+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+4": { + "New-AzPostgreSqlFirewallRule+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+4": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "92" ], @@ -137,9 +137,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/a66d8fec-e7ca-4d4c-97a4-14d1f0536a47?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/a66d8fec-e7ca-4d4c-97a4-14d1f0536a47?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/a66d8fec-e7ca-4d4c-97a4-14d1f0536a47?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/a66d8fec-e7ca-4d4c-97a4-14d1f0536a47?api-version=2017-12-01" ], "x-ms-request-id": [ "a66d8fec-e7ca-4d4c-97a4-14d1f0536a47" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14992" ], @@ -157,10 +157,10 @@ "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-09-25T11:12:54.293Z\"}" } }, - "New-AzPostgreSqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/a66d8fec-e7ca-4d4c-97a4-14d1f0536a47?api-version=2017-12-01+5": { + "New-AzPostgreSqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/a66d8fec-e7ca-4d4c-97a4-14d1f0536a47?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/a66d8fec-e7ca-4d4c-97a4-14d1f0536a47?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/a66d8fec-e7ca-4d4c-97a4-14d1f0536a47?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "92", "93" ], @@ -197,10 +197,10 @@ "Content": "{\"name\":\"a66d8fec-e7ca-4d4c-97a4-14d1f0536a47\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:12:54.293Z\"}" } }, - "New-AzPostgreSqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/a66d8fec-e7ca-4d4c-97a4-14d1f0536a47?api-version=2017-12-01+6": { + "New-AzPostgreSqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/a66d8fec-e7ca-4d4c-97a4-14d1f0536a47?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/a66d8fec-e7ca-4d4c-97a4-14d1f0536a47?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/a66d8fec-e7ca-4d4c-97a4-14d1f0536a47?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "92", "93", "94" ], @@ -235,10 +235,10 @@ "Content": null } }, - "New-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+1": { + "New-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.1\",\r\n \"endIpAddress\": \"0.0.0.1\"\r\n }\r\n}", "Headers": { }, @@ -252,9 +252,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/43884738-b885-4155-a8a1-d628cc501662?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/43884738-b885-4155-a8a1-d628cc501662?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/43884738-b885-4155-a8a1-d628cc501662?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/43884738-b885-4155-a8a1-d628cc501662?api-version=2017-12-01" ], "x-ms-request-id": [ "43884738-b885-4155-a8a1-d628cc501662" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1188" ], @@ -272,10 +272,10 @@ "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-09-25T11:13:12.497Z\"}" } }, - "New-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/43884738-b885-4155-a8a1-d628cc501662?api-version=2017-12-01+2": { + "New-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/43884738-b885-4155-a8a1-d628cc501662?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/43884738-b885-4155-a8a1-d628cc501662?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/43884738-b885-4155-a8a1-d628cc501662?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "95", "96" ], @@ -312,10 +312,10 @@ "Content": "{\"name\":\"43884738-b885-4155-a8a1-d628cc501662\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:13:12.497Z\"}" } }, - "New-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+3": { + "New-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "95", "96", "97" ], @@ -348,13 +348,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.1\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.1\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBForPostgreSQL/servers/firewallRules\"}" } }, - "New-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+4": { + "New-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+4": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "98" ], @@ -373,9 +373,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/15fc7108-a3bf-4160-b347-129048fccd56?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/15fc7108-a3bf-4160-b347-129048fccd56?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/15fc7108-a3bf-4160-b347-129048fccd56?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/15fc7108-a3bf-4160-b347-129048fccd56?api-version=2017-12-01" ], "x-ms-request-id": [ "15fc7108-a3bf-4160-b347-129048fccd56" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14991" ], @@ -393,10 +393,10 @@ "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-09-25T11:13:29.81Z\"}" } }, - "New-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/15fc7108-a3bf-4160-b347-129048fccd56?api-version=2017-12-01+5": { + "New-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/15fc7108-a3bf-4160-b347-129048fccd56?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/15fc7108-a3bf-4160-b347-129048fccd56?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/15fc7108-a3bf-4160-b347-129048fccd56?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "98", "99" ], @@ -433,10 +433,10 @@ "Content": "{\"name\":\"15fc7108-a3bf-4160-b347-129048fccd56\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:13:29.81Z\"}" } }, - "New-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/15fc7108-a3bf-4160-b347-129048fccd56?api-version=2017-12-01+6": { + "New-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/15fc7108-a3bf-4160-b347-129048fccd56?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/15fc7108-a3bf-4160-b347-129048fccd56?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/15fc7108-a3bf-4160-b347-129048fccd56?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "98", "99", "100" ], @@ -471,10 +471,10 @@ "Content": null } }, - "New-AzPostgreSqlFirewallRule+[NoContext]+AllowAll+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01+1": { + "New-AzPostgreSqlFirewallRule+[NoContext]+AllowAll+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-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/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01", "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", "Headers": { }, @@ -488,9 +488,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/a3bfb5af-c8af-49c0-b642-c740b5f11fa8?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/a3bfb5af-c8af-49c0-b642-c740b5f11fa8?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/a3bfb5af-c8af-49c0-b642-c740b5f11fa8?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/a3bfb5af-c8af-49c0-b642-c740b5f11fa8?api-version=2017-12-01" ], "x-ms-request-id": [ "a3bfb5af-c8af-49c0-b642-c740b5f11fa8" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1187" ], @@ -508,10 +508,10 @@ "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-09-25T11:13:47.03Z\"}" } }, - "New-AzPostgreSqlFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/a3bfb5af-c8af-49c0-b642-c740b5f11fa8?api-version=2017-12-01+2": { + "New-AzPostgreSqlFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/a3bfb5af-c8af-49c0-b642-c740b5f11fa8?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/a3bfb5af-c8af-49c0-b642-c740b5f11fa8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/a3bfb5af-c8af-49c0-b642-c740b5f11fa8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "101", "102" ], @@ -548,10 +548,10 @@ "Content": "{\"name\":\"a3bfb5af-c8af-49c0-b642-c740b5f11fa8\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:13:47.03Z\"}" } }, - "New-AzPostgreSqlFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01+3": { + "New-AzPostgreSqlFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-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/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "101", "102", "103" ], @@ -584,13 +584,13 @@ "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/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19\",\"name\":\"AllowAll_2020-08-11_21-28-19\",\"type\":\"Microsoft.DBforPostgreSQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"255.255.255.255\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19\",\"name\":\"AllowAll_2020-08-11_21-28-19\",\"type\":\"Microsoft.DBForPostgreSQL/servers/firewallRules\"}" } }, - "New-AzPostgreSqlFirewallRule+[NoContext]+AllowAll+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01+4": { + "New-AzPostgreSqlFirewallRule+[NoContext]+AllowAll+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-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/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "104" ], @@ -609,9 +609,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/ec532379-2224-4b0d-b371-cdfad915c7b2?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/ec532379-2224-4b0d-b371-cdfad915c7b2?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/ec532379-2224-4b0d-b371-cdfad915c7b2?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/ec532379-2224-4b0d-b371-cdfad915c7b2?api-version=2017-12-01" ], "x-ms-request-id": [ "ec532379-2224-4b0d-b371-cdfad915c7b2" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14990" ], @@ -629,10 +629,10 @@ "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-09-25T11:14:04.543Z\"}" } }, - "New-AzPostgreSqlFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/ec532379-2224-4b0d-b371-cdfad915c7b2?api-version=2017-12-01+5": { + "New-AzPostgreSqlFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/ec532379-2224-4b0d-b371-cdfad915c7b2?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/ec532379-2224-4b0d-b371-cdfad915c7b2?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/ec532379-2224-4b0d-b371-cdfad915c7b2?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "104", "105" ], @@ -669,10 +669,10 @@ "Content": "{\"name\":\"ec532379-2224-4b0d-b371-cdfad915c7b2\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:14:04.543Z\"}" } }, - "New-AzPostgreSqlFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/ec532379-2224-4b0d-b371-cdfad915c7b2?api-version=2017-12-01+6": { + "New-AzPostgreSqlFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/ec532379-2224-4b0d-b371-cdfad915c7b2?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/ec532379-2224-4b0d-b371-cdfad915c7b2?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/ec532379-2224-4b0d-b371-cdfad915c7b2?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "104", "105", "106" ], diff --git a/src/PostgreSql/test/New-AzPostgreSqlFlexibleServer.Recording.json b/src/PostgreSql/test/New-AzPostgreSqlFlexibleServer.Recording.json new file mode 100644 index 000000000000..791520aed3ec --- /dev/null +++ b/src/PostgreSql/test/New-AzPostgreSqlFlexibleServer.Recording.json @@ -0,0 +1,7299 @@ +{ + "New-AzPostgreSqlFlexibleServer+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": "{\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_B1ms\",\r\n \"tier\": \"Burstable\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 12,\r\n \"storageMB\": 65536\r\n },\r\n \"administratorLogin\": \"mysql_test\",\r\n \"administratorLoginPassword\": \"Pasword01!!2020\",\r\n \"version\": \"12\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "366" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/ca3fca37-fa1c-4a46-97f7-9be180ea9cbc?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/ca3fca37-fa1c-4a46-97f7-9be180ea9cbc?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "75518211-7d27-4fd1-ad1f-44cc59794d98" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "93d25977-2753-4871-aaab-42f19646a23a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T064059Z:93d25977-2753-4871-aaab-42f19646a23a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:40:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "87" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-11-12T06:40:58.89Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/ca3fca37-fa1c-4a46-97f7-9be180ea9cbc?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/ca3fca37-fa1c-4a46-97f7-9be180ea9cbc?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "9c6fabdf-0c20-4e4e-8934-777bdc139ea1" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e94e4f30-97b8-4bad-a286-f485770307cd" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "598a4b8d-cde5-4fe8-8e85-15e91f2a151f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T064159Z:598a4b8d-cde5-4fe8-8e85-15e91f2a151f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:41:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ca3fca37-fa1c-4a46-97f7-9be180ea9cbc\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-12T06:40:58.89Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "9c6fabdf-0c20-4e4e-8934-777bdc139ea1" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "36ea32c9-c4e8-44c4-b47e-17000e824715" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "d781e0bd-d7cd-40dd-96e7-25584c628b0a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T064200Z:d781e0bd-d7cd-40dd-96e7-25584c628b0a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:42:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "874" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":1},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"mysql_test\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":65536,\"backupRetentionDays\":12},\"earliestRestoreDate\":\"2020-11-11T21:14:14.466445+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-test-200\",\"name\":\"postgresql-test-200\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": "{\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D2s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 131072\r\n },\r\n \"administratorLogin\": \"moralLlama5\",\r\n \"administratorLoginPassword\": \"\\u0026UVX7$+#@)BuHyEh\",\r\n \"version\": \"12\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "379" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/e4702d87-dcc5-4a67-ad5a-f1eec5325b0e?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4702d87-dcc5-4a67-ad5a-f1eec5325b0e?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6eb1e944-4822-41ed-9230-ec18f8da006b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], + "x-ms-correlation-request-id": [ "8e80b1fd-da5a-489a-b949-022887088add" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T051025Z:8e80b1fd-da5a-489a-b949-022887088add" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:10:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-09T05:10:25.223Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4702d87-dcc5-4a67-ad5a-f1eec5325b0e?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4702d87-dcc5-4a67-ad5a-f1eec5325b0e?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "dab11d11-4bdc-4a6c-946b-b1898629f7fc" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9e73c3a2-a1d4-4969-aba2-89bb3209be8f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "945b25d8-476c-4264-9226-5b9d271d7951" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T051125Z:945b25d8-476c-4264-9226-5b9d271d7951" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:11:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"e4702d87-dcc5-4a67-ad5a-f1eec5325b0e\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T05:10:25.223Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4702d87-dcc5-4a67-ad5a-f1eec5325b0e?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4702d87-dcc5-4a67-ad5a-f1eec5325b0e?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "dab11d11-4bdc-4a6c-946b-b1898629f7fc" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "27bc547d-d5c5-4dbb-a3dc-80476d68976a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "3d674b79-db97-4207-b898-8a0af6cc42b6" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T051226Z:3d674b79-db97-4207-b898-8a0af6cc42b6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:12:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"e4702d87-dcc5-4a67-ad5a-f1eec5325b0e\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T05:10:25.223Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4702d87-dcc5-4a67-ad5a-f1eec5325b0e?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4702d87-dcc5-4a67-ad5a-f1eec5325b0e?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "dab11d11-4bdc-4a6c-946b-b1898629f7fc" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "cb7d9399-514e-45b1-b4a6-f1181d8991c8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "6d5c41e8-0f5b-4dce-805e-1d0b192d5fa5" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T051326Z:6d5c41e8-0f5b-4dce-805e-1d0b192d5fa5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:13:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"e4702d87-dcc5-4a67-ad5a-f1eec5325b0e\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T05:10:25.223Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4702d87-dcc5-4a67-ad5a-f1eec5325b0e?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4702d87-dcc5-4a67-ad5a-f1eec5325b0e?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "dab11d11-4bdc-4a6c-946b-b1898629f7fc" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "09df55cd-1f44-4ee9-b541-9151128eb561" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "62b567f8-20c5-4bab-94b1-2eb2afeb5e08" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T051426Z:62b567f8-20c5-4bab-94b1-2eb2afeb5e08" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:14:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"e4702d87-dcc5-4a67-ad5a-f1eec5325b0e\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-09T05:10:25.223Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "dab11d11-4bdc-4a6c-946b-b1898629f7fc" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "d94c9619-17dd-4dd7-ab34-369c605d2378" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "4e833761-540e-431f-9cd8-2b0709c93bc3" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T051427Z:4e833761-540e-431f-9cd8-2b0709c93bc3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:14:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "887" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-test-200.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"moralLlama5\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"2\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-12-09T05:14:27.0294252+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-test-200\",\"name\":\"postgresql-test-200\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200/firewallRules?api-version=2020-02-14-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200/firewallRules?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "d1da61ee-5f5c-4ef7-b263-92c660c25714" ], + "CommandName": [ "Get-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Get-AzPostgreSqlFlexibleServerFirewallRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "19134542-abfb-42bb-a651-b5cdd977fc8b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "e76fd203-bf7c-4784-a1b3-7589a457edbf" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T051528Z:e76fd203-bf7c-4784-a1b3-7589a457edbf" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:15:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "222" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.0\"},\"name\":\"AllowAllAzureServicesAndResourcesWithinAzureIps_2020-12-08_21-14-27\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/firewallRules\"}]}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+8": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "a2ed0076-fe74-4399-91f5-244a4036219f" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/9ce482ba-7422-40b8-b761-208e5dced0b5?api-version=2020-02-14-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/9ce482ba-7422-40b8-b761-208e5dced0b5?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9ce482ba-7422-40b8-b761-208e5dced0b5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "d410e860-7e18-4295-9ae3-8499930e3df0" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T051529Z:d410e860-7e18-4295-9ae3-8499930e3df0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:15:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-09T05:15:29.267Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/9ce482ba-7422-40b8-b761-208e5dced0b5?api-version=2020-02-14-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/9ce482ba-7422-40b8-b761-208e5dced0b5?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "a2ed0076-fe74-4399-91f5-244a4036219f" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "42c516b0-5672-4f47-a098-c08fa6fe9714" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "60f90f32-0fa5-421b-9e16-1a487c0e3ec7" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T051544Z:60f90f32-0fa5-421b-9e16-1a487c0e3ec7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:15:44 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"9ce482ba-7422-40b8-b761-208e5dced0b5\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T05:15:29.267Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/9ce482ba-7422-40b8-b761-208e5dced0b5?api-version=2020-02-14-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/9ce482ba-7422-40b8-b761-208e5dced0b5?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "a2ed0076-fe74-4399-91f5-244a4036219f" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4a8b9d2f-df26-45ba-b516-5d9259e2d160" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "5e02b6a5-1f5b-4052-948d-2d8bf82e42b7" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T051559Z:5e02b6a5-1f5b-4052-948d-2d8bf82e42b7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:15:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"9ce482ba-7422-40b8-b761-208e5dced0b5\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T05:15:29.267Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/9ce482ba-7422-40b8-b761-208e5dced0b5?api-version=2020-02-14-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/9ce482ba-7422-40b8-b761-208e5dced0b5?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "a2ed0076-fe74-4399-91f5-244a4036219f" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "bfdfa85d-3519-4fdb-b1f4-6e32024a9576" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "b6afac54-ecbd-4956-abbd-0d88f3cf846a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T051614Z:b6afac54-ecbd-4956-abbd-0d88f3cf846a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:16:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"9ce482ba-7422-40b8-b761-208e5dced0b5\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-09T05:15:29.267Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllAzure+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/operationResults/9ce482ba-7422-40b8-b761-208e5dced0b5?api-version=2020-02-14-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/9ce482ba-7422-40b8-b761-208e5dced0b5?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "a2ed0076-fe74-4399-91f5-244a4036219f" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "dd3d83e8-9049-4ae6-8a74-1656eb575b03" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "ef819e4c-409e-41d2-a015-f86725cd52de" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T051614Z:ef819e4c-409e-41d2-a015-f86725cd52de" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:16:14 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview", + "Content": "{\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D2s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 131072\r\n },\r\n \"administratorLogin\": \"elderlyStoat1\",\r\n \"administratorLoginPassword\": \"l%?cwA36$p@{e+t2\",\r\n \"version\": \"12\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "376" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/5f2bc4df-a708-4348-a490-84cf718ce587?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/5f2bc4df-a708-4348-a490-84cf718ce587?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c82923b2-b457-460b-ae1c-8da6af8e5260" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], + "x-ms-correlation-request-id": [ "276bed03-8ae3-4dcd-b44d-51eea2f2805d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T051618Z:276bed03-8ae3-4dcd-b44d-51eea2f2805d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:16:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "87" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-09T05:16:18.39Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/5f2bc4df-a708-4348-a490-84cf718ce587?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/5f2bc4df-a708-4348-a490-84cf718ce587?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "238922f9-90c7-4dd0-99b0-408b26170367" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "478ebab3-30fa-4f5c-87e8-dcfc65457642" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "086a99a8-89d8-4290-b45b-a13fde546fdc" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T051718Z:086a99a8-89d8-4290-b45b-a13fde546fdc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:17:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"5f2bc4df-a708-4348-a490-84cf718ce587\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T05:16:18.39Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/5f2bc4df-a708-4348-a490-84cf718ce587?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/5f2bc4df-a708-4348-a490-84cf718ce587?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "238922f9-90c7-4dd0-99b0-408b26170367" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f7ceebf7-345c-4efa-94d8-0dfa2ca7d22d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "362b6bdb-db3d-43f3-9e7d-12d63d43e131" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T051819Z:362b6bdb-db3d-43f3-9e7d-12d63d43e131" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:18:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"5f2bc4df-a708-4348-a490-84cf718ce587\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T05:16:18.39Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/5f2bc4df-a708-4348-a490-84cf718ce587?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/5f2bc4df-a708-4348-a490-84cf718ce587?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "238922f9-90c7-4dd0-99b0-408b26170367" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f46cfdb6-74a5-4cd3-a085-5258c6d4e2cf" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "7dd531f5-35f7-4fb0-b161-3d3ae86efd5e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T051919Z:7dd531f5-35f7-4fb0-b161-3d3ae86efd5e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:19:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"5f2bc4df-a708-4348-a490-84cf718ce587\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T05:16:18.39Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/5f2bc4df-a708-4348-a490-84cf718ce587?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/5f2bc4df-a708-4348-a490-84cf718ce587?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "238922f9-90c7-4dd0-99b0-408b26170367" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f3a23f0c-be7a-4bd9-9766-83a2280b87a0" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "b11fbd7b-0721-4206-b7b9-6ba99aa807a3" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T052019Z:b11fbd7b-0721-4206-b7b9-6ba99aa807a3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:20:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"5f2bc4df-a708-4348-a490-84cf718ce587\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T05:16:18.39Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/5f2bc4df-a708-4348-a490-84cf718ce587?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/5f2bc4df-a708-4348-a490-84cf718ce587?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "23" ], + "x-ms-client-request-id": [ "238922f9-90c7-4dd0-99b0-408b26170367" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0b639169-5cf7-439a-8138-a5e29463eb17" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "8fd706cb-f9cd-47de-b4d9-cecf729394ea" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T052120Z:8fd706cb-f9cd-47de-b4d9-cecf729394ea" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:21:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"5f2bc4df-a708-4348-a490-84cf718ce587\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-09T05:16:18.39Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "24" ], + "x-ms-client-request-id": [ "238922f9-90c7-4dd0-99b0-408b26170367" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4cc81bde-395d-4b90-bfd0-147039dd05ad" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "85d7a665-fa47-42fa-9c1d-649f67950b9c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T052120Z:85d7a665-fa47-42fa-9c1d-649f67950b9c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:21:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "889" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-test-300.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"elderlyStoat1\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"2\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-12-09T05:21:20.5349641+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-test-300\",\"name\":\"postgresql-test-300\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300/firewallRules?api-version=2020-02-14-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300/firewallRules?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "28" ], + "x-ms-client-request-id": [ "86838818-9376-42eb-8035-9dbce79f8a7e" ], + "CommandName": [ "Get-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Get-AzPostgreSqlFlexibleServerFirewallRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e280843e-8671-4ae6-af6a-754012f2bee5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "933a30da-61ba-4453-9ea5-ac3204f4b254" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T052222Z:933a30da-61ba-4453-9ea5-ac3204f4b254" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:22:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "200" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"startIpAddress\":\"10.10.10.10\",\"endIpAddress\":\"10.10.10.12\"},\"name\":\"FirewallIPAddress_2020-12-08_21-21-21\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/firewallRules\"}]}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview+9": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "29" ], + "x-ms-client-request-id": [ "94bcfe05-dc83-44b1-9972-9693c2af2e4d" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/aa0a90c1-6036-44eb-81cd-b24aa010d4f4?api-version=2020-02-14-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/aa0a90c1-6036-44eb-81cd-b24aa010d4f4?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "aa0a90c1-6036-44eb-81cd-b24aa010d4f4" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], + "x-ms-correlation-request-id": [ "7c938898-e1e2-47ba-bad5-ed70f6f80f49" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T052222Z:7c938898-e1e2-47ba-bad5-ed70f6f80f49" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:22:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-09T05:22:22.577Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/aa0a90c1-6036-44eb-81cd-b24aa010d4f4?api-version=2020-02-14-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/aa0a90c1-6036-44eb-81cd-b24aa010d4f4?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "94bcfe05-dc83-44b1-9972-9693c2af2e4d" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9b0e57b4-204f-417a-a9c4-a3a9ac895f25" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-correlation-request-id": [ "1477e5e8-7de9-4229-b026-18e30ff2f9ef" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T052237Z:1477e5e8-7de9-4229-b026-18e30ff2f9ef" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:22:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"aa0a90c1-6036-44eb-81cd-b24aa010d4f4\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T05:22:22.577Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/aa0a90c1-6036-44eb-81cd-b24aa010d4f4?api-version=2020-02-14-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/aa0a90c1-6036-44eb-81cd-b24aa010d4f4?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "31" ], + "x-ms-client-request-id": [ "94bcfe05-dc83-44b1-9972-9693c2af2e4d" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "bc113560-9282-476e-a40a-50e292e8a970" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "x-ms-correlation-request-id": [ "28795613-aa28-470c-b99a-c543339a5b44" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T052252Z:28795613-aa28-470c-b99a-c543339a5b44" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:22:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"aa0a90c1-6036-44eb-81cd-b24aa010d4f4\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T05:22:22.577Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/aa0a90c1-6036-44eb-81cd-b24aa010d4f4?api-version=2020-02-14-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/aa0a90c1-6036-44eb-81cd-b24aa010d4f4?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "32" ], + "x-ms-client-request-id": [ "94bcfe05-dc83-44b1-9972-9693c2af2e4d" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6fc0cdc7-71c9-4538-8049-5ab53c67b7ef" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "x-ms-correlation-request-id": [ "b1b142cf-0762-4e4d-a46d-5a54653bcdd4" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T052308Z:b1b142cf-0762-4e4d-a46d-5a54653bcdd4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:23:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"aa0a90c1-6036-44eb-81cd-b24aa010d4f4\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-09T05:22:22.577Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-FirewallRule+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/operationResults/aa0a90c1-6036-44eb-81cd-b24aa010d4f4?api-version=2020-02-14-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/aa0a90c1-6036-44eb-81cd-b24aa010d4f4?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "33" ], + "x-ms-client-request-id": [ "94bcfe05-dc83-44b1-9972-9693c2af2e4d" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "290830a5-77d0-41a7-981a-7fdc58d26822" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], + "x-ms-correlation-request-id": [ "5e167ac2-55a9-49ef-9de8-e04527eb97f9" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T052308Z:5e167ac2-55a9-49ef-9de8-e04527eb97f9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:23:08 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": "{\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D2s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 131072\r\n },\r\n \"administratorLogin\": \"shockedHornet7\",\r\n \"administratorLoginPassword\": \"@69{o$#6}6Ml/kO4\",\r\n \"version\": \"12\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "377" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/abc6ce9e-bb34-4dfa-b187-39088bde79dd?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/abc6ce9e-bb34-4dfa-b187-39088bde79dd?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a819f0e4-d11d-4210-88c0-1caa46849abd" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], + "x-ms-correlation-request-id": [ "c5382302-0718-45d2-9e25-9100a96e0e6c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T052310Z:c5382302-0718-45d2-9e25-9100a96e0e6c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:23:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-09T05:23:10.607Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/abc6ce9e-bb34-4dfa-b187-39088bde79dd?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/abc6ce9e-bb34-4dfa-b187-39088bde79dd?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "36" ], + "x-ms-client-request-id": [ "4f9449e3-8f4f-411f-afb2-76c3922290f3" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2cb810a9-380e-4aae-9c94-59eea465a4d3" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "x-ms-correlation-request-id": [ "d3eb1ba8-71e8-47b3-8518-2e9872ddba89" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T052411Z:d3eb1ba8-71e8-47b3-8518-2e9872ddba89" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:24:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"abc6ce9e-bb34-4dfa-b187-39088bde79dd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T05:23:10.607Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/abc6ce9e-bb34-4dfa-b187-39088bde79dd?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/abc6ce9e-bb34-4dfa-b187-39088bde79dd?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "37" ], + "x-ms-client-request-id": [ "4f9449e3-8f4f-411f-afb2-76c3922290f3" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4eed92e8-3bad-4d82-83ca-d76679a3f9d2" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "x-ms-correlation-request-id": [ "e18c9dbb-f404-4c96-923d-d4c829e384f2" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T052511Z:e18c9dbb-f404-4c96-923d-d4c829e384f2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:25:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"abc6ce9e-bb34-4dfa-b187-39088bde79dd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T05:23:10.607Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/abc6ce9e-bb34-4dfa-b187-39088bde79dd?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/abc6ce9e-bb34-4dfa-b187-39088bde79dd?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "4f9449e3-8f4f-411f-afb2-76c3922290f3" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "91b1e6c9-9979-4d23-b338-c3c514fb268e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "x-ms-correlation-request-id": [ "c8130d2a-f38d-42d6-8d57-3529458548aa" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T052611Z:c8130d2a-f38d-42d6-8d57-3529458548aa" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:26:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"abc6ce9e-bb34-4dfa-b187-39088bde79dd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T05:23:10.607Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/abc6ce9e-bb34-4dfa-b187-39088bde79dd?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/abc6ce9e-bb34-4dfa-b187-39088bde79dd?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "39" ], + "x-ms-client-request-id": [ "4f9449e3-8f4f-411f-afb2-76c3922290f3" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f33a988e-6692-4cd5-8efb-f7115b29b3a5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], + "x-ms-correlation-request-id": [ "42483ada-dfef-44e4-be41-3dabef287d96" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T052712Z:42483ada-dfef-44e4-be41-3dabef287d96" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:27:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"abc6ce9e-bb34-4dfa-b187-39088bde79dd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T05:23:10.607Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/abc6ce9e-bb34-4dfa-b187-39088bde79dd?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/abc6ce9e-bb34-4dfa-b187-39088bde79dd?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "40" ], + "x-ms-client-request-id": [ "4f9449e3-8f4f-411f-afb2-76c3922290f3" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e4801df4-4373-4a1f-b9b7-986fa93a6e51" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], + "x-ms-correlation-request-id": [ "51d7e818-c3f0-4e30-b4fc-7ed14de9cea1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T052812Z:51d7e818-c3f0-4e30-b4fc-7ed14de9cea1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:28:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"abc6ce9e-bb34-4dfa-b187-39088bde79dd\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T05:23:10.607Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/abc6ce9e-bb34-4dfa-b187-39088bde79dd?api-version=2020-02-14-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/abc6ce9e-bb34-4dfa-b187-39088bde79dd?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "41" ], + "x-ms-client-request-id": [ "4f9449e3-8f4f-411f-afb2-76c3922290f3" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "d776ebf2-2ce8-449a-837f-6f593273f6e4" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], + "x-ms-correlation-request-id": [ "32f130ab-71cb-4e63-bf9f-61e0730624f9" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T052912Z:32f130ab-71cb-4e63-bf9f-61e0730624f9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:29:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"abc6ce9e-bb34-4dfa-b187-39088bde79dd\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-09T05:23:10.607Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "42" ], + "x-ms-client-request-id": [ "4f9449e3-8f4f-411f-afb2-76c3922290f3" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "cebf644a-f13c-494d-a9d9-d8e1e46d0489" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11967" ], + "x-ms-correlation-request-id": [ "136ed8e7-c16c-4355-b9e2-9abca2e5d1a6" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T052913Z:136ed8e7-c16c-4355-b9e2-9abca2e5d1a6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:29:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "890" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-test-200.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"shockedHornet7\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"2\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-12-09T05:29:13.0915551+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-test-200\",\"name\":\"postgresql-test-200\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200/firewallRules?api-version=2020-02-14-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200/firewallRules?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "46" ], + "x-ms-client-request-id": [ "f9c782fc-8d5d-4d75-b7d4-330869046cf1" ], + "CommandName": [ "Get-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Get-AzPostgreSqlFlexibleServerFirewallRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2c270902-a38f-4cab-bb73-d20c946e4971" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11964" ], + "x-ms-correlation-request-id": [ "6490e8b0-e9e3-42ae-bea6-1e64848d55ad" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T053014Z:6490e8b0-e9e3-42ae-bea6-1e64848d55ad" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:30:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "191" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"255.255.255.255\"},\"name\":\"AllowAll_2020-12-08_21-29-13\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/firewallRules\"}]}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+10": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "47" ], + "x-ms-client-request-id": [ "91d81ba2-3419-495f-8a3f-d2371d01bb37" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/25bafe53-7b8a-48b7-b247-8408ed57456d?api-version=2020-02-14-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/25bafe53-7b8a-48b7-b247-8408ed57456d?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "25bafe53-7b8a-48b7-b247-8408ed57456d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14997" ], + "x-ms-correlation-request-id": [ "9529563d-bf55-4200-8200-13fed0ad7427" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T053015Z:9529563d-bf55-4200-8200-13fed0ad7427" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:30:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "83" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-09T05:30:15.21Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/25bafe53-7b8a-48b7-b247-8408ed57456d?api-version=2020-02-14-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/25bafe53-7b8a-48b7-b247-8408ed57456d?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "48" ], + "x-ms-client-request-id": [ "91d81ba2-3419-495f-8a3f-d2371d01bb37" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "7e22487e-1166-4735-ace0-0b3f0ed265e7" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11963" ], + "x-ms-correlation-request-id": [ "1107b2cf-dea0-4595-b7c2-1c0527f1ddbb" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T053030Z:1107b2cf-dea0-4595-b7c2-1c0527f1ddbb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:30:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"25bafe53-7b8a-48b7-b247-8408ed57456d\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T05:30:15.21Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/25bafe53-7b8a-48b7-b247-8408ed57456d?api-version=2020-02-14-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/25bafe53-7b8a-48b7-b247-8408ed57456d?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "49" ], + "x-ms-client-request-id": [ "91d81ba2-3419-495f-8a3f-d2371d01bb37" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8f2ba18a-247e-46d6-b78d-2a240148d402" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11962" ], + "x-ms-correlation-request-id": [ "7f358ee6-5d1d-44b8-b7ce-b0dec9f4b9f5" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T053045Z:7f358ee6-5d1d-44b8-b7ce-b0dec9f4b9f5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:30:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"25bafe53-7b8a-48b7-b247-8408ed57456d\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T05:30:15.21Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/25bafe53-7b8a-48b7-b247-8408ed57456d?api-version=2020-02-14-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/25bafe53-7b8a-48b7-b247-8408ed57456d?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "50" ], + "x-ms-client-request-id": [ "91d81ba2-3419-495f-8a3f-d2371d01bb37" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a0635791-43f4-4010-aecd-711af0e54ebe" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11961" ], + "x-ms-correlation-request-id": [ "3df4aeaa-95de-4c14-bad8-671bc5f83d66" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T053100Z:3df4aeaa-95de-4c14-bad8-671bc5f83d66" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:31:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"25bafe53-7b8a-48b7-b247-8408ed57456d\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-09T05:30:15.21Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+PublicAccessScenario-AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/operationResults/25bafe53-7b8a-48b7-b247-8408ed57456d?api-version=2020-02-14-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/25bafe53-7b8a-48b7-b247-8408ed57456d?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "51" ], + "x-ms-client-request-id": [ "91d81ba2-3419-495f-8a3f-d2371d01bb37" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "489f9b10-5574-4406-b659-6d560f3f7801" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11960" ], + "x-ms-correlation-request-id": [ "4f7ebe50-0fe0-4713-9d14-d3e4c7bff51e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T053100Z:4f7ebe50-0fe0-4713-9d14-d3e4c7bff51e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 05:31:00 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+NoArgumentsScenario+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group0652806890/providers/Microsoft.DBForPostgreSql/flexibleServers/server0193953549?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group0652806890/providers/Microsoft.DBForPostgreSql/flexibleServers/server0193953549?api-version=2020-02-14-preview", + "Content": "{\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D2s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 131072\r\n },\r\n \"delegatedSubnetArguments\": {\r\n \"subnetArmResourceId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group0652806890/providers/Microsoft.Network/virtualNetworks/VNETserver0193953549/subnets/Subnetserver0193953549\"\r\n },\r\n \"administratorLogin\": \"earthySparrow6\",\r\n \"administratorLoginPassword\": \"%[b?HOVHRW}vR?V(\",\r\n \"version\": \"12\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "631" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/89cc2af2-0da8-400b-9f07-796c67dae7e6?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/89cc2af2-0da8-400b-9f07-796c67dae7e6?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "eda9b92e-ecdf-4c6e-bb0e-1b5cb5118384" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], + "x-ms-correlation-request-id": [ "585a3cf4-fa07-40fc-ba20-da082d31ed52" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T063957Z:585a3cf4-fa07-40fc-ba20-da082d31ed52" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 06:39:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-09T06:39:57.263Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/89cc2af2-0da8-400b-9f07-796c67dae7e6?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/89cc2af2-0da8-400b-9f07-796c67dae7e6?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "51" ], + "x-ms-client-request-id": [ "b198e763-fb6c-4bf6-953f-029dcff17119" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "1e5f268b-6131-4f91-b137-0e1b0ddae518" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11957" ], + "x-ms-correlation-request-id": [ "b0dcdd79-8307-426f-b662-bcc35d79849f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T064057Z:b0dcdd79-8307-426f-b662-bcc35d79849f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 06:40:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"89cc2af2-0da8-400b-9f07-796c67dae7e6\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T06:39:57.263Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/89cc2af2-0da8-400b-9f07-796c67dae7e6?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/89cc2af2-0da8-400b-9f07-796c67dae7e6?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "52" ], + "x-ms-client-request-id": [ "b198e763-fb6c-4bf6-953f-029dcff17119" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "85a41c4a-0400-4a06-af39-0d7101061982" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11956" ], + "x-ms-correlation-request-id": [ "9c32ae09-41e6-4bcc-b75b-a16e1c9f8c09" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T064158Z:9c32ae09-41e6-4bcc-b75b-a16e1c9f8c09" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 06:41:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"89cc2af2-0da8-400b-9f07-796c67dae7e6\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T06:39:57.263Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/89cc2af2-0da8-400b-9f07-796c67dae7e6?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/89cc2af2-0da8-400b-9f07-796c67dae7e6?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "53" ], + "x-ms-client-request-id": [ "b198e763-fb6c-4bf6-953f-029dcff17119" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2da99d83-7370-4fd4-98ae-a4281c43e063" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11955" ], + "x-ms-correlation-request-id": [ "1a40f691-c4f0-4031-986c-57b017cfd2f6" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T064258Z:1a40f691-c4f0-4031-986c-57b017cfd2f6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 06:42:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"89cc2af2-0da8-400b-9f07-796c67dae7e6\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T06:39:57.263Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/89cc2af2-0da8-400b-9f07-796c67dae7e6?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/89cc2af2-0da8-400b-9f07-796c67dae7e6?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "54" ], + "x-ms-client-request-id": [ "b198e763-fb6c-4bf6-953f-029dcff17119" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "764ea023-a283-4c25-a1d1-4b348ee8c1e4" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11954" ], + "x-ms-correlation-request-id": [ "b3bd5282-dd8d-4eaa-8285-d1e54b1ff2a1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T064358Z:b3bd5282-dd8d-4eaa-8285-d1e54b1ff2a1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 06:43:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"89cc2af2-0da8-400b-9f07-796c67dae7e6\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T06:39:57.263Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/89cc2af2-0da8-400b-9f07-796c67dae7e6?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/89cc2af2-0da8-400b-9f07-796c67dae7e6?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "55" ], + "x-ms-client-request-id": [ "b198e763-fb6c-4bf6-953f-029dcff17119" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a325f829-56f6-4573-8e49-036103eb840b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11953" ], + "x-ms-correlation-request-id": [ "65a4f1b6-0b0a-4aab-af01-6b13f865d6cd" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T064459Z:65a4f1b6-0b0a-4aab-af01-6b13f865d6cd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 06:44:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"89cc2af2-0da8-400b-9f07-796c67dae7e6\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T06:39:57.263Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/89cc2af2-0da8-400b-9f07-796c67dae7e6?api-version=2020-02-14-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/89cc2af2-0da8-400b-9f07-796c67dae7e6?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "56" ], + "x-ms-client-request-id": [ "b198e763-fb6c-4bf6-953f-029dcff17119" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c1450ee2-cf60-41f2-885e-6cd752e381a5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11952" ], + "x-ms-correlation-request-id": [ "f298f9c0-6533-421a-830f-d8aa11926930" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T064559Z:f298f9c0-6533-421a-830f-d8aa11926930" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 06:45:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"89cc2af2-0da8-400b-9f07-796c67dae7e6\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-09T06:39:57.263Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group0652806890/providers/Microsoft.DBForPostgreSql/flexibleServers/server0193953549?api-version=2020-02-14-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group0652806890/providers/Microsoft.DBForPostgreSql/flexibleServers/server0193953549?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "57" ], + "x-ms-client-request-id": [ "b198e763-fb6c-4bf6-953f-029dcff17119" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "35cd47e2-bbcc-4289-88a2-065c3baf0283" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11951" ], + "x-ms-correlation-request-id": [ "eb78ffc9-f17b-4c06-958d-6bc48fe0ea64" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T064559Z:eb78ffc9-f17b-4c06-958d-6bc48fe0ea64" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 06:45:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1115" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"server0193953549.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"earthySparrow6\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group0652806890/providers/Microsoft.Network/virtualNetworks/VNETserver0193953549/subnets/Subnetserver0193953549\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"2\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-12-09T06:45:59.8046286+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group0652806890/providers/Microsoft.DBforPostgreSQL/flexibleServers/server0193953549\",\"name\":\"server0193953549\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+NoArgumentsScenario+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group0652806890/providers/Microsoft.DBForPostgreSql/flexibleServers/server0193953549?api-version=2020-02-14-preview+9": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group0652806890/providers/Microsoft.DBForPostgreSql/flexibleServers/server0193953549?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "58" ], + "x-ms-client-request-id": [ "b318f6d5-c1b0-4cc1-8eb0-00384ca34dc9" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/f227426e-3283-4440-8a80-5753e8279bba?api-version=2020-02-14-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/f227426e-3283-4440-8a80-5753e8279bba?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f227426e-3283-4440-8a80-5753e8279bba" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14995" ], + "x-ms-correlation-request-id": [ "ec9a1222-eaf2-4df5-88af-3a634b6025f1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T064612Z:ec9a1222-eaf2-4df5-88af-3a634b6025f1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 06:46:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-09T06:46:12.367Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/f227426e-3283-4440-8a80-5753e8279bba?api-version=2020-02-14-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/f227426e-3283-4440-8a80-5753e8279bba?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "59" ], + "x-ms-client-request-id": [ "b318f6d5-c1b0-4cc1-8eb0-00384ca34dc9" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "605f46d5-f816-44a4-bf06-ce3a2c0cac3f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11950" ], + "x-ms-correlation-request-id": [ "24a8a022-4072-456a-bbf5-758ed989263a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T064627Z:24a8a022-4072-456a-bbf5-758ed989263a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 06:46:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f227426e-3283-4440-8a80-5753e8279bba\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T06:46:12.367Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/f227426e-3283-4440-8a80-5753e8279bba?api-version=2020-02-14-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/f227426e-3283-4440-8a80-5753e8279bba?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "60" ], + "x-ms-client-request-id": [ "b318f6d5-c1b0-4cc1-8eb0-00384ca34dc9" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "aa8c30fa-ccab-4201-a93c-c0f990d41c22" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11949" ], + "x-ms-correlation-request-id": [ "e61fba03-ddbd-43d5-a9fb-260156020075" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T064642Z:e61fba03-ddbd-43d5-a9fb-260156020075" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 06:46:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f227426e-3283-4440-8a80-5753e8279bba\",\"status\":\"InProgress\",\"startTime\":\"2020-12-09T06:46:12.367Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/f227426e-3283-4440-8a80-5753e8279bba?api-version=2020-02-14-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/f227426e-3283-4440-8a80-5753e8279bba?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "61" ], + "x-ms-client-request-id": [ "b318f6d5-c1b0-4cc1-8eb0-00384ca34dc9" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a80c4df7-abfe-47bd-b3a7-4dc628a9adc0" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11948" ], + "x-ms-correlation-request-id": [ "3db24b98-d360-4816-843b-6b9703f2f608" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T064657Z:3db24b98-d360-4816-843b-6b9703f2f608" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 06:46:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f227426e-3283-4440-8a80-5753e8279bba\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-09T06:46:12.367Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+NoArgumentsScenario+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/operationResults/f227426e-3283-4440-8a80-5753e8279bba?api-version=2020-02-14-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/f227426e-3283-4440-8a80-5753e8279bba?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "62" ], + "x-ms-client-request-id": [ "b318f6d5-c1b0-4cc1-8eb0-00384ca34dc9" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2439e73d-ac69-46e7-9f45-be71cd1008b4" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11947" ], + "x-ms-correlation-request-id": [ "5232ec7b-8642-42b4-8fc1-66ce7f78f55c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201209T064658Z:5232ec7b-8642-42b4-8fc1-66ce7f78f55c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 09 Dec 2020 06:46:57 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": "{\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D2s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 131072\r\n },\r\n \"delegatedSubnetArguments\": {\r\n \"subnetArmResourceId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/postgresqlvnet/subnets/Subnetpostgresql-test-200\"\r\n },\r\n \"administratorLogin\": \"alertAvocet5\",\r\n \"administratorLoginPassword\": \"DD]aX8[lR]Y[@}aN\",\r\n \"version\": \"12\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "626" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/3544ccba-3cbb-47fb-831e-c36de17f3915?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/3544ccba-3cbb-47fb-831e-c36de17f3915?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "027ede7c-afb9-45d9-abe4-27f272b048a2" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "3ba061c3-7c2d-4c77-a533-744c59350f17" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T171407Z:3ba061c3-7c2d-4c77-a533-744c59350f17" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:14:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T17:14:06.903Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/3544ccba-3cbb-47fb-831e-c36de17f3915?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/3544ccba-3cbb-47fb-831e-c36de17f3915?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "a7b8e4cb-98de-4704-9d3d-307c9b8faaf7" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "fa166bbe-32e7-4af9-a4b1-768c19dcbf41" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "3e8e909f-f762-4e36-b730-29c1e45a77ac" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T171507Z:3e8e909f-f762-4e36-b730-29c1e45a77ac" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:15:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3544ccba-3cbb-47fb-831e-c36de17f3915\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:14:06.903Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/3544ccba-3cbb-47fb-831e-c36de17f3915?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/3544ccba-3cbb-47fb-831e-c36de17f3915?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "a7b8e4cb-98de-4704-9d3d-307c9b8faaf7" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2d11374e-b811-470c-846f-fbe7b6fed8ed" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "61db846e-bd5c-4459-803d-6da03a49636b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T171607Z:61db846e-bd5c-4459-803d-6da03a49636b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:16:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3544ccba-3cbb-47fb-831e-c36de17f3915\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:14:06.903Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/3544ccba-3cbb-47fb-831e-c36de17f3915?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/3544ccba-3cbb-47fb-831e-c36de17f3915?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "a7b8e4cb-98de-4704-9d3d-307c9b8faaf7" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "17b8d231-4556-405c-b0b8-2782a83f01a2" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "9776061a-c9a4-4352-a601-37250069e2d2" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T171708Z:9776061a-c9a4-4352-a601-37250069e2d2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:17:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3544ccba-3cbb-47fb-831e-c36de17f3915\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:14:06.903Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/3544ccba-3cbb-47fb-831e-c36de17f3915?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/3544ccba-3cbb-47fb-831e-c36de17f3915?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "a7b8e4cb-98de-4704-9d3d-307c9b8faaf7" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3bf86506-4a47-423a-8bce-e3d63ba8dfd0" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "7612f01a-7b82-4d97-8444-5713ea1d7725" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T171808Z:7612f01a-7b82-4d97-8444-5713ea1d7725" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:18:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3544ccba-3cbb-47fb-831e-c36de17f3915\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:14:06.903Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/3544ccba-3cbb-47fb-831e-c36de17f3915?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/3544ccba-3cbb-47fb-831e-c36de17f3915?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "a7b8e4cb-98de-4704-9d3d-307c9b8faaf7" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8acfc19f-28ea-4bfc-88c4-de6c93591740" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "4b6295fb-c7f9-423c-9af4-4fe032eb22da" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T171908Z:4b6295fb-c7f9-423c-9af4-4fe032eb22da" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:19:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3544ccba-3cbb-47fb-831e-c36de17f3915\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:14:06.903Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/3544ccba-3cbb-47fb-831e-c36de17f3915?api-version=2020-02-14-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/3544ccba-3cbb-47fb-831e-c36de17f3915?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "a7b8e4cb-98de-4704-9d3d-307c9b8faaf7" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "11d2bf3a-34f1-4f55-ae75-90c2d293a695" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "d9f85c81-b2bb-49ae-9643-8c54305b6d7f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T172009Z:d9f85c81-b2bb-49ae-9643-8c54305b6d7f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:20:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3544ccba-3cbb-47fb-831e-c36de17f3915\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:14:06.903Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/3544ccba-3cbb-47fb-831e-c36de17f3915?api-version=2020-02-14-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/3544ccba-3cbb-47fb-831e-c36de17f3915?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "a7b8e4cb-98de-4704-9d3d-307c9b8faaf7" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "cecaf758-44b8-4f26-83d5-81c959986234" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "3fb8b4c3-9617-4d81-a9f5-5b9e7b2d2ead" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T172109Z:3fb8b4c3-9617-4d81-a9f5-5b9e7b2d2ead" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:21:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3544ccba-3cbb-47fb-831e-c36de17f3915\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:14:06.903Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/3544ccba-3cbb-47fb-831e-c36de17f3915?api-version=2020-02-14-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/3544ccba-3cbb-47fb-831e-c36de17f3915?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "a7b8e4cb-98de-4704-9d3d-307c9b8faaf7" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "965c912c-f829-45ff-aa7c-3f3057c3139d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "13c84b9e-79df-49ae-8516-0112bbda0843" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T172210Z:13c84b9e-79df-49ae-8516-0112bbda0843" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:22:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3544ccba-3cbb-47fb-831e-c36de17f3915\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T17:14:06.903Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "a7b8e4cb-98de-4704-9d3d-307c9b8faaf7" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0bb6da65-1bfd-468b-9a07-a2352a045d1c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "419a038c-13dc-4d92-89f8-c48de5323118" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T172210Z:419a038c-13dc-4d92-89f8-c48de5323118" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:22:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1118" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-test-200.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"alertAvocet5\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/postgresqlvnet/subnets/Subnetpostgresql-test-200\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"2\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-12-10T17:22:10.2498154+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-test-200\",\"name\":\"postgresql-test-200\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+11": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "0e77c98d-70d6-4aee-a597-44267dbdcf38" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/8bb997f6-acd6-4342-a7aa-279b96c7c545?api-version=2020-02-14-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/8bb997f6-acd6-4342-a7aa-279b96c7c545?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8bb997f6-acd6-4342-a7aa-279b96c7c545" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], + "x-ms-correlation-request-id": [ "93970383-a60b-4464-9ba5-81c2c6621f3a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T172214Z:93970383-a60b-4464-9ba5-81c2c6621f3a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:22:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "83" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-10T17:22:13.97Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/8bb997f6-acd6-4342-a7aa-279b96c7c545?api-version=2020-02-14-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/8bb997f6-acd6-4342-a7aa-279b96c7c545?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "0e77c98d-70d6-4aee-a597-44267dbdcf38" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "aaf8adab-b580-44c3-a575-cfca85693cd4" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "95e915ba-5744-4658-b192-dbed6fed9f73" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T172229Z:95e915ba-5744-4658-b192-dbed6fed9f73" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:22:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"8bb997f6-acd6-4342-a7aa-279b96c7c545\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:22:13.97Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/8bb997f6-acd6-4342-a7aa-279b96c7c545?api-version=2020-02-14-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/8bb997f6-acd6-4342-a7aa-279b96c7c545?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "0e77c98d-70d6-4aee-a597-44267dbdcf38" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2623378c-15ea-438a-94d1-f307baacc382" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "14ae5b1d-606b-4891-8732-1f3954376e08" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T172244Z:14ae5b1d-606b-4891-8732-1f3954376e08" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:22:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"8bb997f6-acd6-4342-a7aa-279b96c7c545\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:22:13.97Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/8bb997f6-acd6-4342-a7aa-279b96c7c545?api-version=2020-02-14-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/8bb997f6-acd6-4342-a7aa-279b96c7c545?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "0e77c98d-70d6-4aee-a597-44267dbdcf38" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f9ef675d-391a-4f44-82db-ccc267fb8894" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "9c59c904-f240-47be-b704-1ffa42cdb361" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T172259Z:9c59c904-f240-47be-b704-1ffa42cdb361" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:22:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"8bb997f6-acd6-4342-a7aa-279b96c7c545\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T17:22:13.97Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/operationResults/8bb997f6-acd6-4342-a7aa-279b96c7c545?api-version=2020-02-14-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/8bb997f6-acd6-4342-a7aa-279b96c7c545?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "0e77c98d-70d6-4aee-a597-44267dbdcf38" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ad09911c-9122-4456-9d7d-ead055a234e9" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "216f8551-579f-4fca-bd97-3d770a1ef91f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T172259Z:216f8551-579f-4fca-bd97-3d770a1ef91f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:22:58 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview", + "Content": "{\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D2s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 131072\r\n },\r\n \"delegatedSubnetArguments\": {\r\n \"subnetArmResourceId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/nonexistingvnetforpowershelltest/subnets/Subnetpostgresql-test-300\"\r\n },\r\n \"administratorLogin\": \"ardentSeafowl8\",\r\n \"administratorLoginPassword\": \"u/ak\\u0026#5O++8=HkEi\",\r\n \"version\": \"12\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "650" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/f2cc2a3a-ac1e-4c6c-aae8-5bbb14fff349?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f2cc2a3a-ac1e-4c6c-aae8-5bbb14fff349?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "06ec0bc0-eaa8-43fb-afae-5a0ad2fb0611" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "a6a8e8e0-f49d-435b-8235-8b4cb3f39499" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T173108Z:a6a8e8e0-f49d-435b-8235-8b4cb3f39499" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:31:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "87" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T17:31:08.09Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f2cc2a3a-ac1e-4c6c-aae8-5bbb14fff349?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f2cc2a3a-ac1e-4c6c-aae8-5bbb14fff349?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "5b55da08-0318-46ca-b532-71699769fe0e" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2e6993d2-001d-453c-b60c-ddd0d4f3e1da" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "7934a91b-d367-4264-a77c-4f7e7ec41e9a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T173208Z:7934a91b-d367-4264-a77c-4f7e7ec41e9a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:32:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f2cc2a3a-ac1e-4c6c-aae8-5bbb14fff349\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:31:08.09Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f2cc2a3a-ac1e-4c6c-aae8-5bbb14fff349?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f2cc2a3a-ac1e-4c6c-aae8-5bbb14fff349?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "5b55da08-0318-46ca-b532-71699769fe0e" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0490c5af-abdc-4a7c-b690-fac099d99cf5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "9b709f92-4846-4f09-a6de-c507aab2fd60" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T173309Z:9b709f92-4846-4f09-a6de-c507aab2fd60" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:33:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f2cc2a3a-ac1e-4c6c-aae8-5bbb14fff349\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:31:08.09Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f2cc2a3a-ac1e-4c6c-aae8-5bbb14fff349?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f2cc2a3a-ac1e-4c6c-aae8-5bbb14fff349?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "23" ], + "x-ms-client-request-id": [ "5b55da08-0318-46ca-b532-71699769fe0e" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3ded99a1-d96f-4942-9d54-bad2736a9c9b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "4dec32a2-beab-4986-9d2b-b6867df62aae" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T173409Z:4dec32a2-beab-4986-9d2b-b6867df62aae" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:34:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f2cc2a3a-ac1e-4c6c-aae8-5bbb14fff349\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:31:08.09Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f2cc2a3a-ac1e-4c6c-aae8-5bbb14fff349?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f2cc2a3a-ac1e-4c6c-aae8-5bbb14fff349?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "24" ], + "x-ms-client-request-id": [ "5b55da08-0318-46ca-b532-71699769fe0e" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2452f174-11a5-488c-a9b5-2016be21791b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "b3012437-9dc0-46ea-90d1-c211e49b2bc5" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T173509Z:b3012437-9dc0-46ea-90d1-c211e49b2bc5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:35:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f2cc2a3a-ac1e-4c6c-aae8-5bbb14fff349\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:31:08.09Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f2cc2a3a-ac1e-4c6c-aae8-5bbb14fff349?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f2cc2a3a-ac1e-4c6c-aae8-5bbb14fff349?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "25" ], + "x-ms-client-request-id": [ "5b55da08-0318-46ca-b532-71699769fe0e" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6b380501-9f52-4605-93eb-9c36aded58f7" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "77983b6c-13d1-4ccd-a1ec-11dac19ed24b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T173610Z:77983b6c-13d1-4ccd-a1ec-11dac19ed24b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:36:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f2cc2a3a-ac1e-4c6c-aae8-5bbb14fff349\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:31:08.09Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f2cc2a3a-ac1e-4c6c-aae8-5bbb14fff349?api-version=2020-02-14-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f2cc2a3a-ac1e-4c6c-aae8-5bbb14fff349?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "5b55da08-0318-46ca-b532-71699769fe0e" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3b21f838-f06d-4060-b9f8-d1b4167ae830" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "90e4b066-ad5f-43a5-84a5-2db8c775e0ae" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T173710Z:90e4b066-ad5f-43a5-84a5-2db8c775e0ae" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:37:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f2cc2a3a-ac1e-4c6c-aae8-5bbb14fff349\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T17:31:08.09Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "27" ], + "x-ms-client-request-id": [ "5b55da08-0318-46ca-b532-71699769fe0e" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "7c52d0dc-8207-4b6c-be83-d0e4e73ae710" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "4c24fe5c-eaf7-4210-b4d8-beb56f6ce4ba" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T173710Z:4c24fe5c-eaf7-4210-b4d8-beb56f6ce4ba" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:37:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1137" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-test-300.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"ardentSeafowl8\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/nonexistingvnetforpowershelltest/subnets/Subnetpostgresql-test-300\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-12-10T17:37:10.6878881+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-test-300\",\"name\":\"postgresql-test-300\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview+9": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "28" ], + "x-ms-client-request-id": [ "bfd40467-133f-455f-ae4a-30412f4f3c13" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/684a4402-6418-46e8-88b2-07cb4add568a?api-version=2020-02-14-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/684a4402-6418-46e8-88b2-07cb4add568a?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "684a4402-6418-46e8-88b2-07cb4add568a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "eadc8a08-ad14-47fb-9427-9275753fc965" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T173715Z:eadc8a08-ad14-47fb-9427-9275753fc965" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:37:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "83" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-10T17:37:15.28Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/684a4402-6418-46e8-88b2-07cb4add568a?api-version=2020-02-14-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/684a4402-6418-46e8-88b2-07cb4add568a?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "29" ], + "x-ms-client-request-id": [ "bfd40467-133f-455f-ae4a-30412f4f3c13" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "d81ee7ff-a6c1-44a2-9dfe-724be0aec4c0" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "b731b0fa-44ba-4595-9c6a-0b3871c52d22" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T173730Z:b731b0fa-44ba-4595-9c6a-0b3871c52d22" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:37:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"684a4402-6418-46e8-88b2-07cb4add568a\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:37:15.28Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/684a4402-6418-46e8-88b2-07cb4add568a?api-version=2020-02-14-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/684a4402-6418-46e8-88b2-07cb4add568a?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "bfd40467-133f-455f-ae4a-30412f4f3c13" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5e9926a1-8a15-4b42-9a1e-e973363cfec7" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "3f7ac437-a939-493f-9240-429777b3375b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T173745Z:3f7ac437-a939-493f-9240-429777b3375b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:37:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"684a4402-6418-46e8-88b2-07cb4add568a\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:37:15.28Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/684a4402-6418-46e8-88b2-07cb4add568a?api-version=2020-02-14-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/684a4402-6418-46e8-88b2-07cb4add568a?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "31" ], + "x-ms-client-request-id": [ "bfd40467-133f-455f-ae4a-30412f4f3c13" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3b6dcd48-1623-4c49-8a9f-24ced3514532" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "6ac2eb73-6300-47cf-9e29-4f58063efa0a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T173800Z:6ac2eb73-6300-47cf-9e29-4f58063efa0a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:38:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"684a4402-6418-46e8-88b2-07cb4add568a\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T17:37:15.28Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetNameScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/operationResults/684a4402-6418-46e8-88b2-07cb4add568a?api-version=2020-02-14-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/684a4402-6418-46e8-88b2-07cb4add568a?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "32" ], + "x-ms-client-request-id": [ "bfd40467-133f-455f-ae4a-30412f4f3c13" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3d8f1a36-0609-41f9-92b5-210d6aaa565f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "75f643a7-d0d0-4cc5-b55f-f10e9550028b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T173800Z:75f643a7-d0d0-4cc5-b55f-f10e9550028b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:38:00 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": "{\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D2s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 131072\r\n },\r\n \"delegatedSubnetArguments\": {\r\n \"subnetArmResourceId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/nonexistingvnetforpowershelltest/subnets/Subnetpostgresql-test-200\"\r\n },\r\n \"administratorLogin\": \"formalPenguin5\",\r\n \"administratorLoginPassword\": \"Ro/\\u0026bi)8me/f/\\u0026kG\",\r\n \"version\": \"12\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "655" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/405c9429-a277-4215-989e-eacafd94d5fc?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/405c9429-a277-4215-989e-eacafd94d5fc?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "cced41c7-d619-4069-9ac1-ac3ff32ef8f9" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "dd6634f7-e894-4193-a399-049bb2b58286" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T174610Z:dd6634f7-e894-4193-a399-049bb2b58286" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:46:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T17:46:10.023Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/405c9429-a277-4215-989e-eacafd94d5fc?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/405c9429-a277-4215-989e-eacafd94d5fc?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "37" ], + "x-ms-client-request-id": [ "d46a9e47-a520-449b-bf46-585f21bfba3b" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b5351551-4124-45a1-b04e-fd796703ef88" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "a5ed164c-ab3b-4e9b-90ad-c72a6284e866" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T174710Z:a5ed164c-ab3b-4e9b-90ad-c72a6284e866" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:47:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"405c9429-a277-4215-989e-eacafd94d5fc\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:46:10.023Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/405c9429-a277-4215-989e-eacafd94d5fc?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/405c9429-a277-4215-989e-eacafd94d5fc?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "d46a9e47-a520-449b-bf46-585f21bfba3b" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "871b87ab-f5f5-4f17-b873-e46a9c4e8f25" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "baa2f7e1-55b0-4081-817f-5b0e1f13d55e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T174810Z:baa2f7e1-55b0-4081-817f-5b0e1f13d55e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:48:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"405c9429-a277-4215-989e-eacafd94d5fc\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:46:10.023Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/405c9429-a277-4215-989e-eacafd94d5fc?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/405c9429-a277-4215-989e-eacafd94d5fc?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "39" ], + "x-ms-client-request-id": [ "d46a9e47-a520-449b-bf46-585f21bfba3b" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "01b8eea3-985f-41c3-a62c-7aaab394378b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "27d46029-d40b-4ebe-aee4-4619675c5061" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T174911Z:27d46029-d40b-4ebe-aee4-4619675c5061" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:49:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"405c9429-a277-4215-989e-eacafd94d5fc\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:46:10.023Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/405c9429-a277-4215-989e-eacafd94d5fc?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/405c9429-a277-4215-989e-eacafd94d5fc?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "40" ], + "x-ms-client-request-id": [ "d46a9e47-a520-449b-bf46-585f21bfba3b" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "7586275b-bc0a-4755-96f8-000b3d6dc948" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "c9564715-ac7b-4f04-a9f7-014e64682edb" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T175011Z:c9564715-ac7b-4f04-a9f7-014e64682edb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:50:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"405c9429-a277-4215-989e-eacafd94d5fc\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:46:10.023Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/405c9429-a277-4215-989e-eacafd94d5fc?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/405c9429-a277-4215-989e-eacafd94d5fc?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "41" ], + "x-ms-client-request-id": [ "d46a9e47-a520-449b-bf46-585f21bfba3b" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c5c18584-831b-4a6c-ab1e-db57114bb969" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "b530e3d7-32a6-42e7-827b-fb9d14af8b5f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T175111Z:b530e3d7-32a6-42e7-827b-fb9d14af8b5f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:51:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"405c9429-a277-4215-989e-eacafd94d5fc\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:46:10.023Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/405c9429-a277-4215-989e-eacafd94d5fc?api-version=2020-02-14-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/405c9429-a277-4215-989e-eacafd94d5fc?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "42" ], + "x-ms-client-request-id": [ "d46a9e47-a520-449b-bf46-585f21bfba3b" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4b78753e-eb61-401a-aca2-49f100cb9c49" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "d8ac6eb1-cb8b-4a0d-ab51-4af768e2ff3a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T175212Z:d8ac6eb1-cb8b-4a0d-ab51-4af768e2ff3a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:52:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"405c9429-a277-4215-989e-eacafd94d5fc\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T17:46:10.023Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "43" ], + "x-ms-client-request-id": [ "d46a9e47-a520-449b-bf46-585f21bfba3b" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b241b19c-1980-43c5-a323-a758ee998ebd" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "978febdf-f495-4677-a0c8-d43b85bb8f7e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T175212Z:978febdf-f495-4677-a0c8-d43b85bb8f7e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:52:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1137" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-test-200.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"formalPenguin5\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/nonexistingvnetforpowershelltest/subnets/Subnetpostgresql-test-200\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-12-10T17:52:12.4682953+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-test-200\",\"name\":\"postgresql-test-200\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+9": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "44" ], + "x-ms-client-request-id": [ "cd493be0-1a85-42a0-b206-aced0d682fd7" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/b1f47a21-0bf2-441c-9cbb-bad81cf1f9c5?api-version=2020-02-14-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/b1f47a21-0bf2-441c-9cbb-bad81cf1f9c5?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b1f47a21-0bf2-441c-9cbb-bad81cf1f9c5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "803af67c-ef6c-4633-9be2-6e7369d76d20" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T175216Z:803af67c-ef6c-4633-9be2-6e7369d76d20" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:52:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "83" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-10T17:52:16.64Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/b1f47a21-0bf2-441c-9cbb-bad81cf1f9c5?api-version=2020-02-14-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/b1f47a21-0bf2-441c-9cbb-bad81cf1f9c5?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "45" ], + "x-ms-client-request-id": [ "cd493be0-1a85-42a0-b206-aced0d682fd7" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f52110dd-2e78-477c-8164-4bc2de01ba1d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "65f4f26d-e5c4-4ca1-9649-79e281b0416f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T175232Z:65f4f26d-e5c4-4ca1-9649-79e281b0416f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:52:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"b1f47a21-0bf2-441c-9cbb-bad81cf1f9c5\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:52:16.64Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/b1f47a21-0bf2-441c-9cbb-bad81cf1f9c5?api-version=2020-02-14-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/b1f47a21-0bf2-441c-9cbb-bad81cf1f9c5?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "46" ], + "x-ms-client-request-id": [ "cd493be0-1a85-42a0-b206-aced0d682fd7" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0abd5781-61ce-40f1-baab-6f0a6df78f43" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "cbb9f04f-13f4-4b7a-a218-1c8dcd650ce1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T175247Z:cbb9f04f-13f4-4b7a-a218-1c8dcd650ce1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:52:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"b1f47a21-0bf2-441c-9cbb-bad81cf1f9c5\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T17:52:16.64Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/b1f47a21-0bf2-441c-9cbb-bad81cf1f9c5?api-version=2020-02-14-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/b1f47a21-0bf2-441c-9cbb-bad81cf1f9c5?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "47" ], + "x-ms-client-request-id": [ "cd493be0-1a85-42a0-b206-aced0d682fd7" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ac3fa86b-ad6d-4bbc-b6df-f75a223ccbd7" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "6855d4fa-a9eb-42fa-bcd5-966c7da45038" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T175302Z:6855d4fa-a9eb-42fa-bcd5-966c7da45038" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:53:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"b1f47a21-0bf2-441c-9cbb-bad81cf1f9c5\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T17:52:16.64Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/operationResults/b1f47a21-0bf2-441c-9cbb-bad81cf1f9c5?api-version=2020-02-14-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/b1f47a21-0bf2-441c-9cbb-bad81cf1f9c5?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "48" ], + "x-ms-client-request-id": [ "cd493be0-1a85-42a0-b206-aced0d682fd7" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "1976aa1b-462c-46bd-94c7-e24139cbb0b1" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "ae668cbf-69ab-49c3-a1be-243ce806830a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T175302Z:ae668cbf-69ab-49c3-a1be-243ce806830a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 17:53:02 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview", + "Content": "{\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D2s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 131072\r\n },\r\n \"delegatedSubnetArguments\": {\r\n \"subnetArmResourceId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/postgresqlvnet/subnets/Subnetpostgresql-test-300\"\r\n },\r\n \"administratorLogin\": \"goofyGarlic4\",\r\n \"administratorLoginPassword\": \"}}=wZMs*0Ed}yw7{\",\r\n \"version\": \"12\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "626" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/130dda1b-3489-4834-9b04-33635dd2b631?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/130dda1b-3489-4834-9b04-33635dd2b631?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "bb96320d-3c7d-4bd8-9c1e-86d97f2aa5a7" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "05a1ceb1-74eb-40ca-8c74-a00f75e7f9b6" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180111Z:05a1ceb1-74eb-40ca-8c74-a00f75e7f9b6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:01:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "87" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T18:01:11.52Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/130dda1b-3489-4834-9b04-33635dd2b631?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/130dda1b-3489-4834-9b04-33635dd2b631?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "52" ], + "x-ms-client-request-id": [ "7dcc4d8a-c302-40a8-a257-f97ca5b8a653" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8f91b1d3-636e-42f7-bd01-26f913ace388" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "1faec4b9-ed43-49fe-beb0-0fcfac9935da" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180211Z:1faec4b9-ed43-49fe-beb0-0fcfac9935da" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:02:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"130dda1b-3489-4834-9b04-33635dd2b631\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:01:11.52Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/130dda1b-3489-4834-9b04-33635dd2b631?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/130dda1b-3489-4834-9b04-33635dd2b631?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "53" ], + "x-ms-client-request-id": [ "7dcc4d8a-c302-40a8-a257-f97ca5b8a653" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0eda0e7e-a4eb-4443-a4ac-adb30151f3fa" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "f8e173a4-4fc2-4e96-a0dc-2715f5104223" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180312Z:f8e173a4-4fc2-4e96-a0dc-2715f5104223" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:03:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"130dda1b-3489-4834-9b04-33635dd2b631\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:01:11.52Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/130dda1b-3489-4834-9b04-33635dd2b631?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/130dda1b-3489-4834-9b04-33635dd2b631?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "54" ], + "x-ms-client-request-id": [ "7dcc4d8a-c302-40a8-a257-f97ca5b8a653" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "06929c53-89cf-4496-a10e-ecde5700c66a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "9d31f393-c0c1-4091-bc73-1d19f3b69b4e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180412Z:9d31f393-c0c1-4091-bc73-1d19f3b69b4e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:04:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"130dda1b-3489-4834-9b04-33635dd2b631\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:01:11.52Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/130dda1b-3489-4834-9b04-33635dd2b631?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/130dda1b-3489-4834-9b04-33635dd2b631?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "55" ], + "x-ms-client-request-id": [ "7dcc4d8a-c302-40a8-a257-f97ca5b8a653" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3af801d4-b78c-4fd1-a3df-8d99826f7ba2" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "6b24e37b-1ef5-4968-8fc5-b0672026cfc2" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180513Z:6b24e37b-1ef5-4968-8fc5-b0672026cfc2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:05:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"130dda1b-3489-4834-9b04-33635dd2b631\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:01:11.52Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/130dda1b-3489-4834-9b04-33635dd2b631?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/130dda1b-3489-4834-9b04-33635dd2b631?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "56" ], + "x-ms-client-request-id": [ "7dcc4d8a-c302-40a8-a257-f97ca5b8a653" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6088d4a6-a949-4ef7-bd12-2044c6807801" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "1a7c7f65-40a0-4506-9e18-2f6ecfcd3d23" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180613Z:1a7c7f65-40a0-4506-9e18-2f6ecfcd3d23" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:06:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"130dda1b-3489-4834-9b04-33635dd2b631\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:01:11.52Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/130dda1b-3489-4834-9b04-33635dd2b631?api-version=2020-02-14-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/130dda1b-3489-4834-9b04-33635dd2b631?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "57" ], + "x-ms-client-request-id": [ "7dcc4d8a-c302-40a8-a257-f97ca5b8a653" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "afdaebcc-486a-4aee-91e2-140ace84e140" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "be50f99f-b0a9-47ba-adf8-eb3345d9c690" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180715Z:be50f99f-b0a9-47ba-adf8-eb3345d9c690" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:07:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"130dda1b-3489-4834-9b04-33635dd2b631\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:01:11.52Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/130dda1b-3489-4834-9b04-33635dd2b631?api-version=2020-02-14-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/130dda1b-3489-4834-9b04-33635dd2b631?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "58" ], + "x-ms-client-request-id": [ "7dcc4d8a-c302-40a8-a257-f97ca5b8a653" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "532704a3-ce18-4caa-a111-81c3a14011c3" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "c03cf6a6-73e4-4c4d-8c37-5d417a89681a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180815Z:c03cf6a6-73e4-4c4d-8c37-5d417a89681a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:08:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"130dda1b-3489-4834-9b04-33635dd2b631\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T18:01:11.52Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "59" ], + "x-ms-client-request-id": [ "7dcc4d8a-c302-40a8-a257-f97ca5b8a653" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "7834351b-3297-4914-a1d7-6e6d8ee4ed8c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "8e92fe27-03fb-46a7-9b40-e6ad0e8947a3" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180815Z:8e92fe27-03fb-46a7-9b40-e6ad0e8947a3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:08:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1118" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-test-300.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"goofyGarlic4\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/postgresqlvnet/subnets/Subnetpostgresql-test-300\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-12-10T18:08:15.8203021+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-test-300\",\"name\":\"postgresql-test-300\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview+10": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "60" ], + "x-ms-client-request-id": [ "f1ded91c-6e21-40a9-9ccd-6e6f40175a42" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/b90ff16b-31b1-48ec-ab78-32d69af4aeb9?api-version=2020-02-14-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/b90ff16b-31b1-48ec-ab78-32d69af4aeb9?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b90ff16b-31b1-48ec-ab78-32d69af4aeb9" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "e382de51-fe52-4969-b667-230693377ac8" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180819Z:e382de51-fe52-4969-b667-230693377ac8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:08:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-10T18:08:19.117Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/b90ff16b-31b1-48ec-ab78-32d69af4aeb9?api-version=2020-02-14-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/b90ff16b-31b1-48ec-ab78-32d69af4aeb9?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "61" ], + "x-ms-client-request-id": [ "f1ded91c-6e21-40a9-9ccd-6e6f40175a42" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "7341682e-c232-44b2-9948-0580c0102def" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "1fa63d50-7154-49fc-ba07-7c22cac7ddd0" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180834Z:1fa63d50-7154-49fc-ba07-7c22cac7ddd0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:08:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"b90ff16b-31b1-48ec-ab78-32d69af4aeb9\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:08:19.117Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/b90ff16b-31b1-48ec-ab78-32d69af4aeb9?api-version=2020-02-14-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/b90ff16b-31b1-48ec-ab78-32d69af4aeb9?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "62" ], + "x-ms-client-request-id": [ "f1ded91c-6e21-40a9-9ccd-6e6f40175a42" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e9cb0c14-5abc-411b-a043-dd4f49d303cc" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "cf270015-120b-4344-88e7-e53044b6ebaa" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180849Z:cf270015-120b-4344-88e7-e53044b6ebaa" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:08:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"b90ff16b-31b1-48ec-ab78-32d69af4aeb9\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:08:19.117Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/b90ff16b-31b1-48ec-ab78-32d69af4aeb9?api-version=2020-02-14-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/b90ff16b-31b1-48ec-ab78-32d69af4aeb9?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "63" ], + "x-ms-client-request-id": [ "f1ded91c-6e21-40a9-9ccd-6e6f40175a42" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "cc494fd2-ef38-4ec0-866f-6a4f19ca4e5a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "3e4ca4c3-6cca-4a26-a73f-d89e4e76ad3f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180904Z:3e4ca4c3-6cca-4a26-a73f-d89e4e76ad3f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:09:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"b90ff16b-31b1-48ec-ab78-32d69af4aeb9\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T18:08:19.117Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetIdScenario-ValidVnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/operationResults/b90ff16b-31b1-48ec-ab78-32d69af4aeb9?api-version=2020-02-14-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/b90ff16b-31b1-48ec-ab78-32d69af4aeb9?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "64" ], + "x-ms-client-request-id": [ "f1ded91c-6e21-40a9-9ccd-6e6f40175a42" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5f0e3287-c72d-411b-8961-fe8c3093f2da" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "941257cf-8f9c-4e7e-9e97-529c29a76057" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T180904Z:941257cf-8f9c-4e7e-9e97-529c29a76057" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:09:04 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": "{\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D2s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 131072\r\n },\r\n \"delegatedSubnetArguments\": {\r\n \"subnetArmResourceId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/postgresqlvnet/subnets/postgresql-subnet\"\r\n },\r\n \"administratorLogin\": \"aboardKitten8\",\r\n \"administratorLoginPassword\": \"!]A+d8V{#ro)XnaK\",\r\n \"version\": \"12\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "619" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/dc1bd3e3-e81d-42b8-9e04-96f925161d13?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/dc1bd3e3-e81d-42b8-9e04-96f925161d13?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8f5b4213-df66-4d47-a85b-56f7e19dbee3" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "de71ea02-b7e0-4c85-8281-d6357bd012f0" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T181716Z:de71ea02-b7e0-4c85-8281-d6357bd012f0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:17:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "87" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T18:17:15.96Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/dc1bd3e3-e81d-42b8-9e04-96f925161d13?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/dc1bd3e3-e81d-42b8-9e04-96f925161d13?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "68" ], + "x-ms-client-request-id": [ "aaff5ab0-0021-4a62-a614-4b89aeec9605" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2463f129-6f01-4e85-a219-d8a9b2f51fad" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "4436a0dc-8195-4380-8bf4-2be4e37d5a31" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T181816Z:4436a0dc-8195-4380-8bf4-2be4e37d5a31" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:18:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"dc1bd3e3-e81d-42b8-9e04-96f925161d13\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:17:15.96Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/dc1bd3e3-e81d-42b8-9e04-96f925161d13?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/dc1bd3e3-e81d-42b8-9e04-96f925161d13?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "69" ], + "x-ms-client-request-id": [ "aaff5ab0-0021-4a62-a614-4b89aeec9605" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5300b1a9-01e7-49a8-a6f4-73081999ca37" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "8d97216e-4bc9-43c9-a6c0-df2ffdadc5d0" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T181916Z:8d97216e-4bc9-43c9-a6c0-df2ffdadc5d0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:19:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"dc1bd3e3-e81d-42b8-9e04-96f925161d13\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:17:15.96Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/dc1bd3e3-e81d-42b8-9e04-96f925161d13?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/dc1bd3e3-e81d-42b8-9e04-96f925161d13?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "70" ], + "x-ms-client-request-id": [ "aaff5ab0-0021-4a62-a614-4b89aeec9605" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "52c92833-c1b8-4b8f-9d27-54bc249465d7" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "3da11383-0dc2-481e-9ca5-ecb920a4c622" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T182017Z:3da11383-0dc2-481e-9ca5-ecb920a4c622" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:20:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"dc1bd3e3-e81d-42b8-9e04-96f925161d13\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:17:15.96Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/dc1bd3e3-e81d-42b8-9e04-96f925161d13?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/dc1bd3e3-e81d-42b8-9e04-96f925161d13?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "71" ], + "x-ms-client-request-id": [ "aaff5ab0-0021-4a62-a614-4b89aeec9605" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "51d89773-83a1-4030-a4e8-29606cd25770" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "a9b3c05b-4680-46a9-b339-e4c47b24b2c3" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T182117Z:a9b3c05b-4680-46a9-b339-e4c47b24b2c3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:21:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"dc1bd3e3-e81d-42b8-9e04-96f925161d13\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:17:15.96Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/dc1bd3e3-e81d-42b8-9e04-96f925161d13?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/dc1bd3e3-e81d-42b8-9e04-96f925161d13?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "72" ], + "x-ms-client-request-id": [ "aaff5ab0-0021-4a62-a614-4b89aeec9605" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f94f09f9-6bcc-431c-8823-08439070ec7b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "9bd3aa0c-7049-48d1-9ed1-b98e4faaab38" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T182218Z:9bd3aa0c-7049-48d1-9ed1-b98e4faaab38" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:22:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"dc1bd3e3-e81d-42b8-9e04-96f925161d13\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T18:17:15.96Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "73" ], + "x-ms-client-request-id": [ "aaff5ab0-0021-4a62-a614-4b89aeec9605" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6bea1fcd-d6e7-4506-9b7a-a4a8387df939" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "a421821d-adfe-40a5-bd07-9d05e2fbbf8b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T182218Z:a421821d-adfe-40a5-bd07-9d05e2fbbf8b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:22:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1111" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-test-200.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"aboardKitten8\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/postgresqlvnet/subnets/postgresql-subnet\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-12-10T18:22:18.1488627+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-test-200\",\"name\":\"postgresql-test-200\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+8": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "74" ], + "x-ms-client-request-id": [ "85e4a6cd-5bf8-4823-93b8-a2942e57f301" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/9cde35a6-e647-4dd3-a358-a6995ecfa52d?api-version=2020-02-14-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/9cde35a6-e647-4dd3-a358-a6995ecfa52d?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9cde35a6-e647-4dd3-a358-a6995ecfa52d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "3d3a0854-eea3-4813-b656-c59c80279099" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T182224Z:3d3a0854-eea3-4813-b656-c59c80279099" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:22:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-10T18:22:24.337Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/9cde35a6-e647-4dd3-a358-a6995ecfa52d?api-version=2020-02-14-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/9cde35a6-e647-4dd3-a358-a6995ecfa52d?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "75" ], + "x-ms-client-request-id": [ "85e4a6cd-5bf8-4823-93b8-a2942e57f301" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "31292d71-0572-4448-8380-dd3a2f4d9846" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "5076acea-d2af-4ad6-a6ee-e3b2ea6da0c8" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T182239Z:5076acea-d2af-4ad6-a6ee-e3b2ea6da0c8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:22:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"9cde35a6-e647-4dd3-a358-a6995ecfa52d\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:22:24.337Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/9cde35a6-e647-4dd3-a358-a6995ecfa52d?api-version=2020-02-14-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/9cde35a6-e647-4dd3-a358-a6995ecfa52d?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "76" ], + "x-ms-client-request-id": [ "85e4a6cd-5bf8-4823-93b8-a2942e57f301" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6da04433-1bb9-474a-8f5b-6f6daf3a6964" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "e6bd13d1-aeab-4288-b819-ebb12f06363d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T182254Z:e6bd13d1-aeab-4288-b819-ebb12f06363d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:22:53 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"9cde35a6-e647-4dd3-a358-a6995ecfa52d\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:22:24.337Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/9cde35a6-e647-4dd3-a358-a6995ecfa52d?api-version=2020-02-14-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/9cde35a6-e647-4dd3-a358-a6995ecfa52d?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "77" ], + "x-ms-client-request-id": [ "85e4a6cd-5bf8-4823-93b8-a2942e57f301" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "1550e2f8-8300-4276-9696-4ad1ee90a822" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "390730c7-9e53-410d-8023-6143a0280778" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T182309Z:390730c7-9e53-410d-8023-6143a0280778" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:23:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"9cde35a6-e647-4dd3-a358-a6995ecfa52d\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T18:22:24.337Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/operationResults/9cde35a6-e647-4dd3-a358-a6995ecfa52d?api-version=2020-02-14-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/9cde35a6-e647-4dd3-a358-a6995ecfa52d?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "78" ], + "x-ms-client-request-id": [ "85e4a6cd-5bf8-4823-93b8-a2942e57f301" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8ab9e57e-f1ed-4517-a61b-3b7ba976ad48" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "80fdb8de-5f27-4192-b4d0-2bcb1235144e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T182309Z:80fdb8de-5f27-4192-b4d0-2bcb1235144e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:23:09 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": "{\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D2s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 131072\r\n },\r\n \"delegatedSubnetArguments\": {\r\n \"subnetArmResourceId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/postgresqlvnet/subnets/postgresql-subnet\"\r\n },\r\n \"administratorLogin\": \"wearyBittern3\",\r\n \"administratorLoginPassword\": \"i)=RH2[F)%w@49iK\",\r\n \"version\": \"12\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "619" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/d85f3810-10b8-4566-a033-718673234725?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/d85f3810-10b8-4566-a033-718673234725?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4197360a-82ed-4de5-8603-7643a915f9d6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "821ce1cd-6ed5-43ea-abfc-b336198d9c04" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T183126Z:821ce1cd-6ed5-43ea-abfc-b336198d9c04" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:31:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T18:31:26.723Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/d85f3810-10b8-4566-a033-718673234725?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/d85f3810-10b8-4566-a033-718673234725?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "81" ], + "x-ms-client-request-id": [ "5122932e-07e2-46cd-be00-d09d0b0813b4" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4cc67770-ad5f-447f-bf0b-a72c940fbf84" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "556bc72a-974e-40d0-8b80-3ced61674361" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T183227Z:556bc72a-974e-40d0-8b80-3ced61674361" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:32:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"d85f3810-10b8-4566-a033-718673234725\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:31:26.723Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/d85f3810-10b8-4566-a033-718673234725?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/d85f3810-10b8-4566-a033-718673234725?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "82" ], + "x-ms-client-request-id": [ "5122932e-07e2-46cd-be00-d09d0b0813b4" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a4c5ecc7-6020-47b3-b158-bb7c01d05ce0" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "ad652b51-de8e-48c2-bb59-69dfd9e91209" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T183327Z:ad652b51-de8e-48c2-bb59-69dfd9e91209" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:33:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"d85f3810-10b8-4566-a033-718673234725\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:31:26.723Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/d85f3810-10b8-4566-a033-718673234725?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/d85f3810-10b8-4566-a033-718673234725?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "83" ], + "x-ms-client-request-id": [ "5122932e-07e2-46cd-be00-d09d0b0813b4" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e0004161-bb85-4786-8718-ccbed9c4881e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "8ed23ebd-610a-4fce-81d9-44cdd4457d5b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T183428Z:8ed23ebd-610a-4fce-81d9-44cdd4457d5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:34:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"d85f3810-10b8-4566-a033-718673234725\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:31:26.723Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/d85f3810-10b8-4566-a033-718673234725?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/d85f3810-10b8-4566-a033-718673234725?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "84" ], + "x-ms-client-request-id": [ "5122932e-07e2-46cd-be00-d09d0b0813b4" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "cdb7a283-3c8d-4406-96b8-ce0eb59e8a74" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "d7a38f78-9a6a-493f-aa7d-7536f8b93c07" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T183528Z:d7a38f78-9a6a-493f-aa7d-7536f8b93c07" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:35:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"d85f3810-10b8-4566-a033-718673234725\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:31:26.723Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/d85f3810-10b8-4566-a033-718673234725?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/d85f3810-10b8-4566-a033-718673234725?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "85" ], + "x-ms-client-request-id": [ "5122932e-07e2-46cd-be00-d09d0b0813b4" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4d42eb25-288c-4c50-a2d0-25002555a318" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "41f03415-ccba-4384-8bf4-751fa206c40a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T183628Z:41f03415-ccba-4384-8bf4-751fa206c40a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:36:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"d85f3810-10b8-4566-a033-718673234725\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T18:31:26.723Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "86" ], + "x-ms-client-request-id": [ "5122932e-07e2-46cd-be00-d09d0b0813b4" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3102bbd3-feda-4c64-b652-37903b53b5bf" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "788d3783-ea01-49b2-8fb5-5d5d2a90921c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T183629Z:788d3783-ea01-49b2-8fb5-5d5d2a90921c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:36:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1111" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-test-200.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"wearyBittern3\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/postgresqlvnet/subnets/postgresql-subnet\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-12-10T18:36:29.0845232+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-test-200\",\"name\":\"postgresql-test-200\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+8": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "87" ], + "x-ms-client-request-id": [ "b23c03d9-c469-4cdb-8c59-9b7881a04f1e" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/a8b07797-f9f9-4879-8dd0-cbbb8f248f4c?api-version=2020-02-14-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/a8b07797-f9f9-4879-8dd0-cbbb8f248f4c?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a8b07797-f9f9-4879-8dd0-cbbb8f248f4c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "4d239fa8-7856-4d17-b213-f3a340bd737c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T183632Z:4d239fa8-7856-4d17-b213-f3a340bd737c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:36:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-10T18:36:32.727Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/a8b07797-f9f9-4879-8dd0-cbbb8f248f4c?api-version=2020-02-14-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/a8b07797-f9f9-4879-8dd0-cbbb8f248f4c?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "88" ], + "x-ms-client-request-id": [ "b23c03d9-c469-4cdb-8c59-9b7881a04f1e" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a6f93610-f170-4d20-81b2-1cce569c9ee6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "bfdb95fc-36a0-4cda-b8f1-7cc542d49230" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T183647Z:bfdb95fc-36a0-4cda-b8f1-7cc542d49230" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:36:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"a8b07797-f9f9-4879-8dd0-cbbb8f248f4c\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:36:32.727Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/a8b07797-f9f9-4879-8dd0-cbbb8f248f4c?api-version=2020-02-14-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/a8b07797-f9f9-4879-8dd0-cbbb8f248f4c?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "89" ], + "x-ms-client-request-id": [ "b23c03d9-c469-4cdb-8c59-9b7881a04f1e" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "23c3b357-b3a1-4b66-86c9-cdf011858e20" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "3d0f02b8-57c9-44b6-b6d2-c9e4d009045f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T183703Z:3d0f02b8-57c9-44b6-b6d2-c9e4d009045f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:37:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"a8b07797-f9f9-4879-8dd0-cbbb8f248f4c\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:36:32.727Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/a8b07797-f9f9-4879-8dd0-cbbb8f248f4c?api-version=2020-02-14-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/a8b07797-f9f9-4879-8dd0-cbbb8f248f4c?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "90" ], + "x-ms-client-request-id": [ "b23c03d9-c469-4cdb-8c59-9b7881a04f1e" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f8354d0b-e6e3-423e-ba42-4394b002cda8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "ffb2dd1d-d70d-4f3d-b69b-7c798703eb8d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T183718Z:ffb2dd1d-d70d-4f3d-b69b-7c798703eb8d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:37:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"a8b07797-f9f9-4879-8dd0-cbbb8f248f4c\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T18:36:32.727Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDelegation+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/operationResults/a8b07797-f9f9-4879-8dd0-cbbb8f248f4c?api-version=2020-02-14-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/a8b07797-f9f9-4879-8dd0-cbbb8f248f4c?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "91" ], + "x-ms-client-request-id": [ "b23c03d9-c469-4cdb-8c59-9b7881a04f1e" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "812c0aa0-c5e5-463a-8d4e-fcf3c6e9b5e8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "bc838d81-829b-4664-8d1d-821f7df57058" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T183718Z:bc838d81-829b-4664-8d1d-821f7df57058" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:37:18 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview", + "Content": "{\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D2s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 131072\r\n },\r\n \"delegatedSubnetArguments\": {\r\n \"subnetArmResourceId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/nonexistingvnetforpowershelltest/subnets/nonexistingsubnetforpowershelltest\"\r\n },\r\n \"administratorLogin\": \"dimParrot3\",\r\n \"administratorLoginPassword\": \"*{TzMt$\\u0026EAOv{x%H\",\r\n \"version\": \"12\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "655" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/c85ab9aa-8df0-48df-848d-cb2feb2f8e5f?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/c85ab9aa-8df0-48df-848d-cb2feb2f8e5f?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f3f353bb-a1db-4e49-b7e4-597a3787e8a8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "ea2e5fc7-72d2-4f5b-ba0d-69310be6ed9d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T184524Z:ea2e5fc7-72d2-4f5b-ba0d-69310be6ed9d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:45:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "87" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T18:45:24.45Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/c85ab9aa-8df0-48df-848d-cb2feb2f8e5f?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/c85ab9aa-8df0-48df-848d-cb2feb2f8e5f?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "94" ], + "x-ms-client-request-id": [ "c141e98b-da64-4ffa-9cb1-3653393a4ecc" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "d2582990-98a9-4f3b-b4a7-b10270852959" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "ea0b1343-72ac-478e-ab07-8a5c0e580780" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T184625Z:ea0b1343-72ac-478e-ab07-8a5c0e580780" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:46:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c85ab9aa-8df0-48df-848d-cb2feb2f8e5f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:45:24.45Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/c85ab9aa-8df0-48df-848d-cb2feb2f8e5f?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/c85ab9aa-8df0-48df-848d-cb2feb2f8e5f?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "95" ], + "x-ms-client-request-id": [ "c141e98b-da64-4ffa-9cb1-3653393a4ecc" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "cf887397-1d20-459f-a4ff-52bd1bc1e016" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "3767bd80-d389-4e0c-ac49-3397945b38b7" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T184725Z:3767bd80-d389-4e0c-ac49-3397945b38b7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:47:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c85ab9aa-8df0-48df-848d-cb2feb2f8e5f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:45:24.45Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/c85ab9aa-8df0-48df-848d-cb2feb2f8e5f?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/c85ab9aa-8df0-48df-848d-cb2feb2f8e5f?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "96" ], + "x-ms-client-request-id": [ "c141e98b-da64-4ffa-9cb1-3653393a4ecc" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "bf78df58-11c5-407b-a7ea-d5fc0146e122" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "39657cf9-ea6f-43bd-9770-d6c8bb0eeeac" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T184825Z:39657cf9-ea6f-43bd-9770-d6c8bb0eeeac" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:48:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c85ab9aa-8df0-48df-848d-cb2feb2f8e5f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:45:24.45Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/c85ab9aa-8df0-48df-848d-cb2feb2f8e5f?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/c85ab9aa-8df0-48df-848d-cb2feb2f8e5f?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "97" ], + "x-ms-client-request-id": [ "c141e98b-da64-4ffa-9cb1-3653393a4ecc" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0a910750-fd5d-4d82-b9b8-8535b98a5d3b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "6d548dd9-6d4e-482f-b187-0111df901277" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T184926Z:6d548dd9-6d4e-482f-b187-0111df901277" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:49:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c85ab9aa-8df0-48df-848d-cb2feb2f8e5f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:45:24.45Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/c85ab9aa-8df0-48df-848d-cb2feb2f8e5f?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/c85ab9aa-8df0-48df-848d-cb2feb2f8e5f?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "98" ], + "x-ms-client-request-id": [ "c141e98b-da64-4ffa-9cb1-3653393a4ecc" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "683bf1ad-1e42-43d6-8f0e-c7b575d9f438" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "a6a29ca7-3cb5-44cd-b358-35a9f4204fee" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T185026Z:a6a29ca7-3cb5-44cd-b358-35a9f4204fee" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:50:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c85ab9aa-8df0-48df-848d-cb2feb2f8e5f\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T18:45:24.45Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "99" ], + "x-ms-client-request-id": [ "c141e98b-da64-4ffa-9cb1-3653393a4ecc" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "29f86b0f-40ab-40f9-ac78-810b232855cb" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "8d19e499-e922-4763-a807-3115d74262f5" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T185026Z:8d19e499-e922-4763-a807-3115d74262f5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:50:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1142" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-test-300.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"dimParrot3\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/nonexistingvnetforpowershelltest/subnets/nonexistingsubnetforpowershelltest\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-12-10T18:50:26.9162246+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-test-300\",\"name\":\"postgresql-test-300\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview+8": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "100" ], + "x-ms-client-request-id": [ "428a85f7-bca5-4220-8055-c62e36fe9191" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/4570ed57-573a-409e-8adf-fc839f7805a4?api-version=2020-02-14-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/4570ed57-573a-409e-8adf-fc839f7805a4?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4570ed57-573a-409e-8adf-fc839f7805a4" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "44afadd8-c105-4ae4-bf0a-a287ae7846ea" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T185030Z:44afadd8-c105-4ae4-bf0a-a287ae7846ea" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:50:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-10T18:50:30.807Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/4570ed57-573a-409e-8adf-fc839f7805a4?api-version=2020-02-14-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/4570ed57-573a-409e-8adf-fc839f7805a4?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "101" ], + "x-ms-client-request-id": [ "428a85f7-bca5-4220-8055-c62e36fe9191" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "70f0c1f2-c26f-4627-a27d-c1776167f32e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "7bc98d66-069f-4d48-b3fe-2aab4d0991d5" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T185046Z:7bc98d66-069f-4d48-b3fe-2aab4d0991d5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:50:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"4570ed57-573a-409e-8adf-fc839f7805a4\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:50:30.807Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/4570ed57-573a-409e-8adf-fc839f7805a4?api-version=2020-02-14-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/4570ed57-573a-409e-8adf-fc839f7805a4?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "102" ], + "x-ms-client-request-id": [ "428a85f7-bca5-4220-8055-c62e36fe9191" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "dee41c94-0916-4966-a2ea-441a6b72e4eb" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "90c7b7fd-a2a6-4283-b815-68a90ab200b9" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T185101Z:90c7b7fd-a2a6-4283-b815-68a90ab200b9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:51:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"4570ed57-573a-409e-8adf-fc839f7805a4\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:50:30.807Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/4570ed57-573a-409e-8adf-fc839f7805a4?api-version=2020-02-14-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/4570ed57-573a-409e-8adf-fc839f7805a4?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "103" ], + "x-ms-client-request-id": [ "428a85f7-bca5-4220-8055-c62e36fe9191" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "65ce8c21-b028-4646-a48b-5773c97bc888" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "ba11ae06-fdcd-43ab-82db-8c4815555eb9" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T185116Z:ba11ae06-fdcd-43ab-82db-8c4815555eb9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:51:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"4570ed57-573a-409e-8adf-fc839f7805a4\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T18:50:30.807Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/operationResults/4570ed57-573a-409e-8adf-fc839f7805a4?api-version=2020-02-14-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/4570ed57-573a-409e-8adf-fc839f7805a4?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "104" ], + "x-ms-client-request-id": [ "428a85f7-bca5-4220-8055-c62e36fe9191" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9e98d121-596a-4845-8825-4818c150c7c3" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "0dc55454-9a69-4f55-8401-b7d1feafde90" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T185116Z:0dc55454-9a69-4f55-8401-b7d1feafde90" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:51:15 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview", + "Content": "{\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D2s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 131072\r\n },\r\n \"delegatedSubnetArguments\": {\r\n \"subnetArmResourceId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/postgresqlvnet/subnets/postgresql-subnet\"\r\n },\r\n \"administratorLogin\": \"enragedRedwing9\",\r\n \"administratorLoginPassword\": \"D$Vz%\\u00264hszXm+)u#\",\r\n \"version\": \"12\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "626" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/289da0c2-92f1-4c21-8a12-b9494b979884?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/289da0c2-92f1-4c21-8a12-b9494b979884?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6ce577e2-29cf-4110-b0c0-e03935e0e027" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "bf780a38-4c07-43fa-b501-1321ff5c75e8" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T185925Z:bf780a38-4c07-43fa-b501-1321ff5c75e8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 18:59:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T18:59:25.023Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/289da0c2-92f1-4c21-8a12-b9494b979884?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/289da0c2-92f1-4c21-8a12-b9494b979884?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "108" ], + "x-ms-client-request-id": [ "519c9263-fbd9-4faf-a8d7-795b6be69c8a" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "18182d6c-d71b-4910-a913-e1fa0498c97b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "8f779e0c-7917-46c0-8d44-c6a21b4ee102" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190025Z:8f779e0c-7917-46c0-8d44-c6a21b4ee102" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:00:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"289da0c2-92f1-4c21-8a12-b9494b979884\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:59:25.023Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/289da0c2-92f1-4c21-8a12-b9494b979884?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/289da0c2-92f1-4c21-8a12-b9494b979884?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "109" ], + "x-ms-client-request-id": [ "519c9263-fbd9-4faf-a8d7-795b6be69c8a" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "fc8bc572-249d-496d-92fb-21f5de1452c3" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "27826a2d-fa40-4b5d-b8d2-7262bc92a403" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190126Z:27826a2d-fa40-4b5d-b8d2-7262bc92a403" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:01:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"289da0c2-92f1-4c21-8a12-b9494b979884\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:59:25.023Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/289da0c2-92f1-4c21-8a12-b9494b979884?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/289da0c2-92f1-4c21-8a12-b9494b979884?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "110" ], + "x-ms-client-request-id": [ "519c9263-fbd9-4faf-a8d7-795b6be69c8a" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9769aa78-2183-4fda-8477-af5c5887ef3c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "aaf429cb-864a-45f3-9c4d-34e1c479c5d9" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190227Z:aaf429cb-864a-45f3-9c4d-34e1c479c5d9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:02:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"289da0c2-92f1-4c21-8a12-b9494b979884\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:59:25.023Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/289da0c2-92f1-4c21-8a12-b9494b979884?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/289da0c2-92f1-4c21-8a12-b9494b979884?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "111" ], + "x-ms-client-request-id": [ "519c9263-fbd9-4faf-a8d7-795b6be69c8a" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6c3c109c-0ed3-4418-afd2-1da1cfcebd64" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "7745383c-1188-4aa2-bfec-9f7e95004632" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190328Z:7745383c-1188-4aa2-bfec-9f7e95004632" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:03:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"289da0c2-92f1-4c21-8a12-b9494b979884\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:59:25.023Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/289da0c2-92f1-4c21-8a12-b9494b979884?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/289da0c2-92f1-4c21-8a12-b9494b979884?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "112" ], + "x-ms-client-request-id": [ "519c9263-fbd9-4faf-a8d7-795b6be69c8a" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "870af7cf-276e-45f1-bea6-d612f52bc25f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "2cc0b621-41e0-40fc-840c-9a206c9c5532" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190428Z:2cc0b621-41e0-40fc-840c-9a206c9c5532" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:04:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"289da0c2-92f1-4c21-8a12-b9494b979884\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T18:59:25.023Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/289da0c2-92f1-4c21-8a12-b9494b979884?api-version=2020-02-14-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/289da0c2-92f1-4c21-8a12-b9494b979884?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "113" ], + "x-ms-client-request-id": [ "519c9263-fbd9-4faf-a8d7-795b6be69c8a" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3b1887c8-b5f6-417c-99ec-c3a196796a14" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "560ca135-a0df-433b-bbc7-dd0b6a5484d8" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190529Z:560ca135-a0df-433b-bbc7-dd0b6a5484d8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:05:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"289da0c2-92f1-4c21-8a12-b9494b979884\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T18:59:25.023Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "114" ], + "x-ms-client-request-id": [ "519c9263-fbd9-4faf-a8d7-795b6be69c8a" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "652fd258-c60a-4733-85b5-76d354705ee2" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "222824dc-3967-4257-b19c-a144b51fe052" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190529Z:222824dc-3967-4257-b19c-a144b51fe052" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:05:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1113" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-test-300.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"enragedRedwing9\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/postgresqlvnet/subnets/postgresql-subnet\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-12-10T19:05:29.4055205+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-test-300\",\"name\":\"postgresql-test-300\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview+9": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "115" ], + "x-ms-client-request-id": [ "9885a7a3-f3b6-4a33-b299-ea43b5d26e79" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/e5687e64-ee6a-4728-a92f-9f04f798890f?api-version=2020-02-14-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/e5687e64-ee6a-4728-a92f-9f04f798890f?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e5687e64-ee6a-4728-a92f-9f04f798890f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "daa65b43-1ae4-4d01-b218-38f491e5e530" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190532Z:daa65b43-1ae4-4d01-b218-38f491e5e530" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:05:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "83" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-10T19:05:32.39Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/e5687e64-ee6a-4728-a92f-9f04f798890f?api-version=2020-02-14-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/e5687e64-ee6a-4728-a92f-9f04f798890f?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "116" ], + "x-ms-client-request-id": [ "9885a7a3-f3b6-4a33-b299-ea43b5d26e79" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e59204bc-c523-4e65-ba27-8ec033a964ae" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "4544030c-4290-4555-b4a0-386c62bd7ecb" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190547Z:4544030c-4290-4555-b4a0-386c62bd7ecb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:05:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"e5687e64-ee6a-4728-a92f-9f04f798890f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:05:32.39Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/e5687e64-ee6a-4728-a92f-9f04f798890f?api-version=2020-02-14-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/e5687e64-ee6a-4728-a92f-9f04f798890f?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "117" ], + "x-ms-client-request-id": [ "9885a7a3-f3b6-4a33-b299-ea43b5d26e79" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b67a8729-511f-47a5-a2b3-493b0f3d94b7" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "ade7baa6-96ba-41c9-a08e-88162b2bbf1f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190602Z:ade7baa6-96ba-41c9-a08e-88162b2bbf1f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:06:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"e5687e64-ee6a-4728-a92f-9f04f798890f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:05:32.39Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/e5687e64-ee6a-4728-a92f-9f04f798890f?api-version=2020-02-14-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/e5687e64-ee6a-4728-a92f-9f04f798890f?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "118" ], + "x-ms-client-request-id": [ "9885a7a3-f3b6-4a33-b299-ea43b5d26e79" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6796b9a1-11e6-4161-a828-576ad3a2bff7" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "cc80468c-9176-4a54-a679-aa75487e0c03" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190618Z:cc80468c-9176-4a54-a679-aa75487e0c03" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:06:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"e5687e64-ee6a-4728-a92f-9f04f798890f\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T19:05:32.39Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnetNotExist+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/operationResults/e5687e64-ee6a-4728-a92f-9f04f798890f?api-version=2020-02-14-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/e5687e64-ee6a-4728-a92f-9f04f798890f?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "119" ], + "x-ms-client-request-id": [ "9885a7a3-f3b6-4a33-b299-ea43b5d26e79" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "86b61db0-8505-43e5-ab47-187a2f278a8f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "ed9d156d-37c2-48c2-b69f-2025ee152a3f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190618Z:ed9d156d-37c2-48c2-b69f-2025ee152a3f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:06:18 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": "{\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D2s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 131072\r\n },\r\n \"delegatedSubnetArguments\": {\r\n \"subnetArmResourceId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/postgresqlvnet/subnets/postgresql-subnet\"\r\n },\r\n \"administratorLogin\": \"aquaticKapi2\",\r\n \"administratorLoginPassword\": \"%\\u0026{TKUZ6m=G?*M6y\",\r\n \"version\": \"12\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "623" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/51484f04-922b-44a9-826b-9b89bbf4263f?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/51484f04-922b-44a9-826b-9b89bbf4263f?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b664ef9e-c519-48e3-bab3-3fbb456f9a94" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "bf7a26d7-3c90-4ad5-9a0c-9ef2f2f5c6c4" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190626Z:bf7a26d7-3c90-4ad5-9a0c-9ef2f2f5c6c4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:06:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T19:06:26.533Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/51484f04-922b-44a9-826b-9b89bbf4263f?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/51484f04-922b-44a9-826b-9b89bbf4263f?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "122" ], + "x-ms-client-request-id": [ "a92f5ac0-577c-4c60-9bf7-25fea0640ed3" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "97853ea3-f47e-4087-b276-139762a8c4b8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "abfe7911-78cf-4edc-8a34-3a89bbc56e9d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190727Z:abfe7911-78cf-4edc-8a34-3a89bbc56e9d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:07:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"51484f04-922b-44a9-826b-9b89bbf4263f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:06:26.533Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/51484f04-922b-44a9-826b-9b89bbf4263f?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/51484f04-922b-44a9-826b-9b89bbf4263f?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "123" ], + "x-ms-client-request-id": [ "a92f5ac0-577c-4c60-9bf7-25fea0640ed3" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "56518292-af24-4dfb-9705-c67df2f63a40" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "2eaa70dc-b2b7-4690-bba5-0bf7b06d7cb1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190827Z:2eaa70dc-b2b7-4690-bba5-0bf7b06d7cb1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:08:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"51484f04-922b-44a9-826b-9b89bbf4263f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:06:26.533Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/51484f04-922b-44a9-826b-9b89bbf4263f?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/51484f04-922b-44a9-826b-9b89bbf4263f?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "124" ], + "x-ms-client-request-id": [ "a92f5ac0-577c-4c60-9bf7-25fea0640ed3" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "57188094-3cc8-4983-a2c1-ec7e5a0769ad" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "d0dc6a5c-e4a8-49ba-91e1-3b985840c5c0" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T190928Z:d0dc6a5c-e4a8-49ba-91e1-3b985840c5c0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:09:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"51484f04-922b-44a9-826b-9b89bbf4263f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:06:26.533Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/51484f04-922b-44a9-826b-9b89bbf4263f?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/51484f04-922b-44a9-826b-9b89bbf4263f?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "125" ], + "x-ms-client-request-id": [ "a92f5ac0-577c-4c60-9bf7-25fea0640ed3" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "58f48119-dfcf-4f27-8379-015ba21efdab" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "c42463fd-ce62-43d0-b6fe-03051813d58a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T191028Z:c42463fd-ce62-43d0-b6fe-03051813d58a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:10:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"51484f04-922b-44a9-826b-9b89bbf4263f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:06:26.533Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/51484f04-922b-44a9-826b-9b89bbf4263f?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/51484f04-922b-44a9-826b-9b89bbf4263f?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "126" ], + "x-ms-client-request-id": [ "a92f5ac0-577c-4c60-9bf7-25fea0640ed3" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ef9bcced-7a35-4c9b-80a4-5a88e439438e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "f2f963b8-c48d-4214-b362-b750c928d430" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T191128Z:f2f963b8-c48d-4214-b362-b750c928d430" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:11:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"51484f04-922b-44a9-826b-9b89bbf4263f\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T19:06:26.533Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "127" ], + "x-ms-client-request-id": [ "a92f5ac0-577c-4c60-9bf7-25fea0640ed3" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "077707dc-6505-4564-a80c-d0ff8744087a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "3112a5dd-a894-4d3e-99df-3d75ab9ab4c7" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T191129Z:3112a5dd-a894-4d3e-99df-3d75ab9ab4c7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:11:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1109" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-test-200.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"aquaticKapi2\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/postgresqlvnet/subnets/postgresql-subnet\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"2\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-12-10T19:11:29.076892+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-test-200\",\"name\":\"postgresql-test-200\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+8": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "128" ], + "x-ms-client-request-id": [ "ad1b3006-f808-455d-9939-6204ea6a4171" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/102fb570-f2eb-4643-af8e-c5519685b9f2?api-version=2020-02-14-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/102fb570-f2eb-4643-af8e-c5519685b9f2?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "102fb570-f2eb-4643-af8e-c5519685b9f2" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], + "x-ms-correlation-request-id": [ "3f14bdb8-b1ab-4da8-8b8e-5354140ba800" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T191133Z:3f14bdb8-b1ab-4da8-8b8e-5354140ba800" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:11:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-10T19:11:33.373Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/102fb570-f2eb-4643-af8e-c5519685b9f2?api-version=2020-02-14-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/102fb570-f2eb-4643-af8e-c5519685b9f2?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "129" ], + "x-ms-client-request-id": [ "ad1b3006-f808-455d-9939-6204ea6a4171" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9964515b-bfa1-43df-9c47-b872e1dbc40b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "6b4f9bdf-17af-44c2-b5b9-e39ca5bc3976" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T191148Z:6b4f9bdf-17af-44c2-b5b9-e39ca5bc3976" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:11:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"102fb570-f2eb-4643-af8e-c5519685b9f2\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:11:33.373Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/102fb570-f2eb-4643-af8e-c5519685b9f2?api-version=2020-02-14-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/102fb570-f2eb-4643-af8e-c5519685b9f2?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "130" ], + "x-ms-client-request-id": [ "ad1b3006-f808-455d-9939-6204ea6a4171" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "71be7073-1f82-4a48-bcae-bd308f1004db" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "789c347f-759d-4073-9ead-c2961e8bb3dc" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T191203Z:789c347f-759d-4073-9ead-c2961e8bb3dc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:12:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"102fb570-f2eb-4643-af8e-c5519685b9f2\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T19:11:33.373Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/102fb570-f2eb-4643-af8e-c5519685b9f2?api-version=2020-02-14-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/102fb570-f2eb-4643-af8e-c5519685b9f2?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "131" ], + "x-ms-client-request-id": [ "ad1b3006-f808-455d-9939-6204ea6a4171" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "fa615148-977b-44db-b72f-b3bf325b3b9f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "1c418bad-9510-4c4d-9f72-1bfe3e96686c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T191219Z:1c418bad-9510-4c4d-9f72-1bfe3e96686c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:12:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"102fb570-f2eb-4643-af8e-c5519685b9f2\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T19:11:33.373Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+VnetSubnetScenario-ValidVnetSubnet+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/operationResults/102fb570-f2eb-4643-af8e-c5519685b9f2?api-version=2020-02-14-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/102fb570-f2eb-4643-af8e-c5519685b9f2?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "132" ], + "x-ms-client-request-id": [ "ad1b3006-f808-455d-9939-6204ea6a4171" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "cc147eff-752a-4425-9491-c85417abce1a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "67e97ef7-8849-40ea-8953-fea86e68d418" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T191219Z:67e97ef7-8849-40ea-8953-fea86e68d418" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 19:12:18 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview", + "Content": "{\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D2s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 131072\r\n },\r\n \"delegatedSubnetArguments\": {\r\n \"subnetArmResourceId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest2/providers/Microsoft.Network/virtualNetworks/postgresqlvnet/subnets/postgresql-subnet\"\r\n },\r\n \"administratorLogin\": \"mellowGull7\",\r\n \"administratorLoginPassword\": \"bw/4fAUx!6d\\u00268##+\",\r\n \"version\": \"12\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "623" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/bb64bdf8-698a-402a-902d-893a50ff899f?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/bb64bdf8-698a-402a-902d-893a50ff899f?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b6e11cca-79cb-490d-9680-ef8fc2bb49a5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "64d7684d-c903-4ad0-af62-e9a4599f06f3" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T200723Z:64d7684d-c903-4ad0-af62-e9a4599f06f3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:07:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-12-10T20:07:23.163Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/bb64bdf8-698a-402a-902d-893a50ff899f?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/bb64bdf8-698a-402a-902d-893a50ff899f?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "6e56d320-de8a-435b-8e35-7d557584a1c9" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "995a78f6-3b53-465c-bb36-ac66e790917d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "3898fb47-6e0e-4a53-bdc1-fe6c1264d249" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T200823Z:3898fb47-6e0e-4a53-bdc1-fe6c1264d249" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:08:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"bb64bdf8-698a-402a-902d-893a50ff899f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:07:23.163Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/bb64bdf8-698a-402a-902d-893a50ff899f?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/bb64bdf8-698a-402a-902d-893a50ff899f?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "6e56d320-de8a-435b-8e35-7d557584a1c9" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "13702dcd-ea2b-4247-873a-2b773f642a89" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "1143bb3a-020b-4c9e-b021-6ec63378551d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T200924Z:1143bb3a-020b-4c9e-b021-6ec63378551d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:09:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"bb64bdf8-698a-402a-902d-893a50ff899f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:07:23.163Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/bb64bdf8-698a-402a-902d-893a50ff899f?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/bb64bdf8-698a-402a-902d-893a50ff899f?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "6e56d320-de8a-435b-8e35-7d557584a1c9" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "16d486e8-a895-4367-8c56-aba1448c6754" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "16d64d6d-e24f-40fa-a693-2897198d7d89" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T201024Z:16d64d6d-e24f-40fa-a693-2897198d7d89" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:10:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"bb64bdf8-698a-402a-902d-893a50ff899f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:07:23.163Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/bb64bdf8-698a-402a-902d-893a50ff899f?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/bb64bdf8-698a-402a-902d-893a50ff899f?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "6e56d320-de8a-435b-8e35-7d557584a1c9" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "43d51efe-24b9-4440-a1c7-e31c109b22db" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "b4629959-44e3-4860-836f-23008c3c243e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T201125Z:b4629959-44e3-4860-836f-23008c3c243e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:11:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"bb64bdf8-698a-402a-902d-893a50ff899f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:07:23.163Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/bb64bdf8-698a-402a-902d-893a50ff899f?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/bb64bdf8-698a-402a-902d-893a50ff899f?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "6e56d320-de8a-435b-8e35-7d557584a1c9" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "59f6367b-41ad-4413-886e-26b28bedd5ee" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "16b03301-8213-4f0c-b802-a8ca059e8192" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T201225Z:16b03301-8213-4f0c-b802-a8ca059e8192" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:12:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"bb64bdf8-698a-402a-902d-893a50ff899f\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:07:23.163Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/bb64bdf8-698a-402a-902d-893a50ff899f?api-version=2020-02-14-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/bb64bdf8-698a-402a-902d-893a50ff899f?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "6e56d320-de8a-435b-8e35-7d557584a1c9" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "79719091-cfc4-4998-ae27-a96fa9698585" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "eae25065-c454-4770-acea-acc36ba2d5d1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T201325Z:eae25065-c454-4770-acea-acc36ba2d5d1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:13:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"bb64bdf8-698a-402a-902d-893a50ff899f\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T20:07:23.163Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "6e56d320-de8a-435b-8e35-7d557584a1c9" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6ffe2d62-0cf7-48b2-9166-89750efa98db" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "cfaf2d92-7a44-4c95-bec4-5a35c5a5bd42" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T201326Z:cfaf2d92-7a44-4c95-bec4-5a35c5a5bd42" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:13:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1110" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-test-300.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"mellowGull7\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest2/providers/Microsoft.Network/virtualNetworks/postgresqlvnet/subnets/postgresql-subnet\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-12-10T20:13:26.1556249+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-test-300\",\"name\":\"postgresql-test-300\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview+9": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-300?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "6e42774d-2efd-4cd0-bfb6-d86ad45a8c3e" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/63c21f63-09f4-4569-a226-cec559daa4da?api-version=2020-02-14-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/63c21f63-09f4-4569-a226-cec559daa4da?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "63c21f63-09f4-4569-a226-cec559daa4da" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "2f3e37be-32c3-43cc-b8ee-f31f35a657ac" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T201329Z:2f3e37be-32c3-43cc-b8ee-f31f35a657ac" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:13:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "83" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-12-10T20:13:29.17Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/63c21f63-09f4-4569-a226-cec559daa4da?api-version=2020-02-14-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/63c21f63-09f4-4569-a226-cec559daa4da?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "6e42774d-2efd-4cd0-bfb6-d86ad45a8c3e" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ce31136e-8513-44b8-a5de-58d2934f68ee" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "fe1a8617-fdda-43a5-8281-6194b50e61e3" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T201344Z:fe1a8617-fdda-43a5-8281-6194b50e61e3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:13:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"63c21f63-09f4-4569-a226-cec559daa4da\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:13:29.17Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/63c21f63-09f4-4569-a226-cec559daa4da?api-version=2020-02-14-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/63c21f63-09f4-4569-a226-cec559daa4da?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "6e42774d-2efd-4cd0-bfb6-d86ad45a8c3e" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "7f96d3c0-2025-4ae7-9625-237c55605054" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "101ea814-82b2-4dd3-8fe8-d7082f8959c9" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T201359Z:101ea814-82b2-4dd3-8fe8-d7082f8959c9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:13:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"63c21f63-09f4-4569-a226-cec559daa4da\",\"status\":\"InProgress\",\"startTime\":\"2020-12-10T20:13:29.17Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/azureAsyncOperation/63c21f63-09f4-4569-a226-cec559daa4da?api-version=2020-02-14-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/azureAsyncOperation/63c21f63-09f4-4569-a226-cec559daa4da?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "6e42774d-2efd-4cd0-bfb6-d86ad45a8c3e" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b3020f4a-7381-4d03-b2c5-ef8c9c99a828" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "c2bc909a-3b44-4663-86ba-0a0261279efd" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T201414Z:c2bc909a-3b44-4663-86ba-0a0261279efd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:14:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"63c21f63-09f4-4569-a226-cec559daa4da\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-10T20:13:29.17Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServer+[NoContext]+SubnetIdScenario-ValidSubnetDifferentRg+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East US/operationResults/63c21f63-09f4-4569-a226-cec559daa4da?api-version=2020-02-14-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US/operationResults/63c21f63-09f4-4569-a226-cec559daa4da?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "6e42774d-2efd-4cd0-bfb6-d86ad45a8c3e" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "dc9e0637-6ecd-4fcc-ab66-fd7191c33e93" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "eab4364a-bb0d-42cd-ad6c-181f228df847" ], + "x-ms-routing-request-id": [ "WESTUS2:20201210T201414Z:eab4364a-bb0d-42cd-ad6c-181f228df847" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 10 Dec 2020 20:14:14 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + } +} \ No newline at end of file diff --git a/src/PostgreSql/test/New-AzPostgreSqlFlexibleServer.Tests.ps1 b/src/PostgreSql/test/New-AzPostgreSqlFlexibleServer.Tests.ps1 new file mode 100644 index 000000000000..53964c4b965d --- /dev/null +++ b/src/PostgreSql/test/New-AzPostgreSqlFlexibleServer.Tests.ps1 @@ -0,0 +1,325 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzPostgreSqlFlexibleServer.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName +$DELEGATION_SERVICE_NAME = "Microsoft.DBforPostgreSQL/flexibleServers" +$DEFAULT_VNET_PREFIX = '10.0.0.0/16' +$DEFAULT_SUBNET_PREFIX = '10.0.0.0/24' +If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + If (!(Get-Module -ListAvailable -Name Az.Network)) { Install-Module -Name Az.Network } + Import-Module -Name Az.Network +} + +Describe 'New-AzPostgreSqlFlexibleServer' { + function WaitServerDelete(){ + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + Start-Sleep -Seconds 450 + } + } + function ValidateSubnetVnet($Server, $VnetName, $SubnetName){ + $Vnet = Get-AzVirtualNetwork -Name $VNetName -ResourceGroupName $env.resourceGroup + $Subnet = Get-AzVirtualNetworkSubnetConfig -Name $SubnetName -VirtualNetwork $Vnet + + $Server.DelegatedSubnetArgumentSubnetArmResourceId | Should -Be $Subnet.Id + $Delegation = Get-AzDelegation -Name $DELEGATION_SERVICE_NAME -Subnet $Subnet + $Delegation.ServiceName | Should -Be $DELEGATION_SERVICE_NAME + } + + function RemoveServerVnet($ServerName, $VnetName, $SubnetName){ + $Vnet = Get-AzVirtualNetwork -Name $VNetName -ResourceGroupName $env.resourceGroup + $Subnet = Get-AzVirtualNetworkSubnetConfig -Name $SubnetName -VirtualNetwork $Vnet + + Remove-AzPostgreSqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $ServerName + WaitServerDelete + $Subnet = Remove-AzDelegation -Name $DELEGATION_SERVICE_NAME -Subnet $Subnet + Set-AzVirtualNetwork -VirtualNetwork $Vnet + Remove-AzVirtualNetwork -Name $Vnet.Name -ResourceGroupName $env.resourceGroup -Force + } + + It 'CreateExpanded' { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + { + #[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine")] + $password = 'Pasword01!!2020' | ConvertTo-SecureString -AsPlainText -Force + $server = New-AzPostgreSqlFlexibleServer -Location $env.location -Name $env.serverName2 -ResourceGroupName $env.resourceGroup -AdministratorUserName postgreqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -BackupRetentionDay 12 -StorageInMb 65536 -Location eastus + $server.SkuName | Should -Be "Standard_B1ms" + $server.SkuTier | Should -Be "Burstable" + $server.StorageProfileStorageMb | Should -Be 65536 + $server.StorageProfileBackupRetentionDay | Should -Be 12 + } | Should -Not -Throw + } + } + + It 'PublicAccessScenario-AllAzure' { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + { + # Public Access 0.0.0.0 + New-AzPostgreSqlFlexibleServer -Location $env.location -ResourceGroupName $env.resourceGroup -Name $env.serverName2 -PublicAccess 0.0.0.0 + $FirewallRules = Get-AzPostgreSqlFlexibleServerFirewallRule -ResourceGroupName $env.resourceGroup -ServerName $env.serverName2 + $FirewallRules[0].Name | Should -BeLike "AllowAllAzureServicesAndResourcesWithinAzureIps*" + $FirewallRules[0].StartIPAddress | Should -Be "0.0.0.0" + $FirewallRules[0].EndIPAddress | Should -Be "0.0.0.0" + Remove-AzPostgreSqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName2 + WaitServerDelete + } | Should -Not -Throw + } + } + + It 'PublicAccessScenario-FirewallRule' { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + { + # Public Access 10.10.10.10-10.10.10.12 + New-AzPostgreSqlFlexibleServer -Location $env.location -ResourceGroupName $env.resourceGroup -Name $env.serverName3 -PublicAccess 10.10.10.10-10.10.10.12 + $FirewallRules = Get-AzPostgreSqlFlexibleServerFirewallRule -ResourceGroupName $env.resourceGroup -ServerName $env.serverName3 + $FirewallRules[0].Name | Should -BeLike "FirewallIPAddress*" + $FirewallRules[0].StartIPAddress | Should -Be "10.10.10.10" + $FirewallRules[0].EndIPAddress | Should -Be "10.10.10.12" + Remove-AzPostgreSqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName3 + WaitServerDelete + } | Should -Not -Throw + } + } + + It 'PublicAccessScenario-AllowAll' { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + { + # Public Access All + New-AzPostgreSqlFlexibleServer -Location $env.location -ResourceGroupName $env.resourceGroup -Name $env.serverName2 -PublicAccess All + $FirewallRules = Get-AzPostgreSqlFlexibleServerFirewallRule -ResourceGroupName $env.resourceGroup -ServerName $env.serverName2 + $FirewallRules[0].Name | Should -BeLike "AllowAll*" + $FirewallRules[0].StartIPAddress | Should -Be "0.0.0.0" + $FirewallRules[0].EndIPAddress | Should -Be "255.255.255.255" + Remove-AzPostgreSqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName2 + WaitServerDelete + } | Should -Not -Throw + } + } + + It 'NoArgumentsScenario' { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + { + $Server = New-AzPostgreSqlFlexibleServer + $Splits = $Server.Id -Split "/" + $ResourceGroupName = $Splits[4] + $SubnetName = 'Subnet' + $Server.Name + $VnetName = 'VNET' + $Server.Name + $Vnet = Get-AzVirtualNetwork -Name $VnetName -ResourceGroupName $ResourceGroupName + $Subnet = Get-AzVirtualNetworkSubnetConfig -Name $SubnetName -VirtualNetwork $Vnet + + $Server.SkuName | Should -Be "Standard_D2s_v3" + $Server.SkuTier | Should -Be "GeneralPurpose" + $Server.StorageProfileStorageMb | Should -Be 131072 + $Server.StorageProfileBackupRetentionDay | Should -Be 7 + $Server.Location | Should -Be "East US" + + $Vnet = Get-AzVirtualNetwork -Name $VNetName -ResourceGroupName $ResourceGroupName + $Subnet = Get-AzVirtualNetworkSubnetConfig -Name $SubnetName -VirtualNetwork $Vnet + + $Server.DelegatedSubnetArgumentSubnetArmResourceId | Should -Be $Subnet.Id + $Delegation = Get-AzDelegation -Name $DELEGATION_SERVICE_NAME -Subnet $Subnet + $Delegation.ServiceName | Should -Be $DELEGATION_SERVICE_NAME + Remove-AzPostgreSqlFlexibleServer -ResourceGroupName $ResourceGroupName -Name $Server.Name + WaitServerDelete + Remove-AzVirtualNetwork -Name $Vnet.Name -ResourceGroupName $ResourceGroupName -Force + Remove-AzResourceGroup -Name $ResourceGroupName + } | Should -Not -Throw + } + } + + It 'VnetNameScenario-ValidVnet' { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + { + # valid vnet name and the vnet exists + $Vnet = New-AzVirtualNetwork -Name $env.VNetName -ResourceGroupName $env.resourceGroup -Location $env.location -AddressPrefix $DEFAULT_VNET_PREFIX -Force + $Server = New-AzPostgreSqlFlexibleServer -Location $env.location -Name $env.serverName2 -ResourceGroupName $env.resourceGroup -Vnet $Vnet.Name + + $SubnetName = 'Subnet' + $Server.Name + ValidateSubnetVnet $Server $env.VNetName $SubnetName + RemoveServerVnet $env.serverName2 $env.VNetName $SubnetName + } | Should -Not -Throw + } + } + + It 'VnetNameScenario-ValidVnetNotExist' { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + { + # valid vnet name but the vnet doesn't exist + $Server = New-AzPostgreSqlFlexibleServer -Location $env.location -Name $env.serverName3 -ResourceGroupName $env.resourceGroup -Vnet nonexistingvnetforpowershelltest + + $SubnetName = 'Subnet' + $Server.Name + ValidateSubnetVnet $Server nonexistingvnetforpowershelltest $SubnetName + RemoveServerVnet $env.serverName3 nonexistingvnetforpowershelltest $SubnetName + } | Should -Not -Throw + } + } + + It 'VnetNameScenario-InvalidVnet' { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + { + # invalid vnet name + $InvalidName = "hi/df!@$@#$@" + New-AzPostgreSqlFlexibleServer -Location $env.location -Name $env.serverName2 -ResourceGroupName $env.resourceGroup -Vnet $InvalidName + } | Should -Throw + } + } + + It 'VnetIdScenario-ValidVnet' { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + { + # valid vnet Id but the vnet doesn't exist + $VnetId = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/nonexistingvnetforpowershelltest" + $Server = New-AzPostgreSqlFlexibleServer -Location $env.location -Name $env.serverName2 -ResourceGroupName $env.resourceGroup -Vnet $VnetId + + $SubnetName = 'Subnet' + $Server.Name + ValidateSubnetVnet $Server nonexistingvnetforpowershelltest $SubnetName + RemoveServerVnet $env.serverName2 nonexistingvnetforpowershelltest $SubnetName + } | Should -Not -Throw + } + } + + It 'VnetIdScenario-ValidVnetNotExist' { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + { + # valid vnet Id and the vnet exists (subnet does not exist) + $Vnet = New-AzVirtualNetwork -Name $env.VNetName -ResourceGroupName $env.resourceGroup -Location $env.Location -AddressPrefix $DEFAULT_VNET_PREFIX -Force + $Server = New-AzPostgreSqlFlexibleServer -Location $env.location -Name $env.serverName3 -ResourceGroupName $env.resourceGroup -Vnet $Vnet.Id + + $SubnetName = 'Subnet' + $Server.Name + ValidateSubnetVnet $Server $env.VNetName $SubnetName + RemoveServerVnet $env.serverName3 $env.VNetName $SubnetName + } | Should -Not -Throw + } + } + + It 'VnetIdScenario-InvalidVnet' { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + { + # invalid vnet Id + $VnetId = "/subscriptions/00000-000-000000000000/resourceGroups/providers/Microsoft.Network/virtualNetworks/Vnet/Wrong/Vnet/itis" + New-AzPostgreSqlFlexibleServer -Location $env.location -Name $env.serverName2 -ResourceGroupName $env.resourceGroup -Vnet $VnetId + } | Should -Throw + } + } + + It 'SubnetIdScenario-ValidSubnet' { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + { + # valid subnet Id and the subnet exists without delegation + $Subnet = New-AzVirtualNetworkSubnetConfig -Name $env.SubnetName -AddressPrefix $DEFAULT_SUBNET_PREFIX + New-AzVirtualNetwork -Name $env.VNetName -ResourceGroupName $env.resourceGroup -Location $env.location -AddressPrefix $DEFAULT_VNET_PREFIX -Subnet $Subnet -Force + $SubnetId = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/$($env.VNetName)" + "/subnets/$($env.SubnetName)" + $Server = New-AzPostgreSqlFlexibleServer -Location $env.location -Name $env.serverName2 -ResourceGroupName $env.resourceGroup -Subnet $SubnetId + + ValidateSubnetVnet $Server $env.VNetName $env.SubnetName + RemoveServerVnet $env.serverName2 $env.VNetName $env.SubnetName + } | Should -Not -Throw + } + } + + It 'SubnetIdScenario-ValidSubnetDifferentRg' { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + { + # valid subnet Id and the subnet exists without delegation, different resource group + New-AzResourceGroup -Name PostgreSqlTest2 -Location $env.location -Force + $Subnet = New-AzVirtualNetworkSubnetConfig -Name $env.SubnetName -AddressPrefix $DEFAULT_SUBNET_PREFIX + $Vnet = New-AzVirtualNetwork -Name $env.VNetName -ResourceGroupName PostgreSqlTest2 -Location $env.location -AddressPrefix $DEFAULT_VNET_PREFIX -Subnet $Subnet -Force + $Subnet = Get-AzVirtualNetworkSubnetConfig -Name $env.SubnetName -VirtualNetwork $Vnet + $Server = New-AzPostgreSqlFlexibleServer -Location $env.location -Name $env.serverName3 -ResourceGroupName $env.resourceGroup -Subnet $Subnet.Id + + $Vnet = Get-AzVirtualNetwork -Name $env.VNetName -ResourceGroupName PostgreSqlTest2 + $Subnet = Get-AzVirtualNetworkSubnetConfig -Name $env.SubnetName -VirtualNetwork $Vnet + + $Server.DelegatedSubnetArgumentSubnetArmResourceId | Should -Be $Subnet.Id + $Delegation = Get-AzDelegation -Name Microsoft.DBforPostgreSql/flexibleServers -Subnet $Subnet + $Delegation.ServiceName | Should -Be $DELEGATION_SERVICE_NAME + + Remove-AzPostgreSqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName3 + WaitServerDelete + Remove-AzVirtualNetwork -Name $Vnet.Name -ResourceGroupName PostgreSqlTest2 -Force + } | Should -Not -Throw + } + } + + It 'SubnetIdScenario-ValidSubnetDelegation' { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + { + # valid subnet Id and the subnet exists with delegation + $Subnet = New-AzVirtualNetworkSubnetConfig -Name $env.SubnetName -AddressPrefix $DEFAULT_SUBNET_PREFIX + $Vnet = New-AzVirtualNetwork -Name $env.VNetName -ResourceGroupName $env.resourceGroup -Location $env.location -AddressPrefix $DEFAULT_VNET_PREFIX -Subnet $Subnet -Force + $Subnet = Add-AzDelegation -Name $DELEGATION_SERVICE_NAME -ServiceName $DELEGATION_SERVICE_NAME -Subnet $Subnet + $Vnet | Set-AzVirtualNetwork + $Subnet = Get-AzVirtualNetworkSubnetConfig -Name $env.SubnetName -VirtualNetwork $Vnet + $Server = New-AzPostgreSqlFlexibleServer -Location $env.location -Name $env.serverName2 -ResourceGroupName $env.resourceGroup -Subnet $Subnet.Id + + ValidateSubnetVnet $Server $env.VNetName $env.SubnetName + RemoveServerVnet $env.serverName2 $env.VNetName $env.SubnetName + } | Should -Not -Throw + } + } + + It 'SubnetIdScenario-ValidSubnetNotExist' { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + { + # valid subnet Id but the subnet doesn't exist + $SubnetId = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/nonexistingvnetforpowershelltest/subnets/nonexistingsubnetforpowershelltest" + $Server = New-AzPostgreSqlFlexibleServer -Location $env.location -Name $env.serverName3 -ResourceGroupName $env.resourceGroup -Subnet $SubnetId + + ValidateSubnetVnet $Server nonexistingvnetforpowershelltest nonexistingsubnetforpowershelltest + RemoveServerVnet $env.serverName3 nonexistingvnetforpowershelltest nonexistingsubnetforpowershelltest + } | Should -Not -Throw + } + } + + It 'SubnetIdScenario-InvalidSubnet' { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + { + # invalid subnet Id + $SubnetId = "/subscriptions/00000-000-000000000000/resourceGroups/providers/Microsoft.Network/VirtualNetworks/Wrong/subnetss/wrong" + New-AzPostgreSqlFlexibleServer -Location $env.location -Name $env.serverName2 -ResourceGroupName $env.resourceGroup -Subnet $SubnetId + } | Should -Throw + { + # invalid delegation on the subnet + $Subnet = New-AzVirtualNetworkSubnetConfig -Name $env.SubnetName -AddressPrefix $DEFAULT_SUBNET_PREFIX + $Vnet = New-AzVirtualNetwork -Name $env.VNetName -ResourceGroupName $env.resourceGroup -Location $env.location -AddressPrefix $DEFAULT_VNET_PREFIX -Subnet $Subnet -Force + $Subnet = Add-AzDelegation -Name "faultydelegation" -ServiceName "Microsoft.Sql/servers" -Subnet $Subnet + Set-AzVirtualNetwork -VirtualNetwork $Vnet + $Subnet = Get-AzVirtualNetworkSubnetConfig -Name $env.SubnetName -VirtualNetwork $Vnet + New-AzPostgreSqlFlexibleServer -Location $env.location -Name $env.serverName2 -ResourceGroupName $env.resourceGroup -Subnet $Subnet.Id | Should -Throw + Remove-AzDelegation -Name "faultydelegation" -Subnet $Subnet + Set-AzVirtualNetwork $Vnet + Remove-AzVirtualNetwork -Name $Vnet.Name -ResourceGroupName $env.resourceGroup + } + } + } + + It 'VnetSubnetScenario-ValidVnetSubnetNotExist' { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + { + # vnet name and subnet name resource do not exist + $Server = New-AzPostgreSqlFlexibleServer -Location $env.location -Name $env.serverName3 -ResourceGroupName $env.resourceGroup -Vnet $env.VNetName -Subnet $env.SubnetName -VnetPrefix $DEFAULT_VNET_PREFIX -SubnetPrefix $DEFAULT_SUBNET_PREFIX + + ValidateSubnetVnet $Server $env.VNetName $env.SubnetName + Remove-AzPostgreSqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName3 + } | Should -Not -Throw + } + } + It 'VnetSubnetScenario-ValidVnetSubnet' { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + { + # vnet name and subnet name, resource exist + $Server = New-AzPostgreSqlFlexibleServer -Location $env.location -Name $env.serverName2 -ResourceGroupName $env.resourceGroup -Vnet $env.VNetName -Subnet $env.SubnetName + + ValidateSubnetVnet $Server $env.VNetName $env.SubnetName + RemoveServerVnet $env.serverName2 $env.VNetName $env.SubnetName + } | Should -Not -Throw + } + } +} diff --git a/src/PostgreSql/test/New-AzPostgreSqlFlexibleServerFirewallRule.Recording.json b/src/PostgreSql/test/New-AzPostgreSqlFlexibleServerFirewallRule.Recording.json new file mode 100644 index 000000000000..c75b619910ae --- /dev/null +++ b/src/PostgreSql/test/New-AzPostgreSqlFlexibleServerFirewallRule.Recording.json @@ -0,0 +1,710 @@ +{ + "New-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"0.0.0.1\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "93" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/187b87b7-a172-4b22-9c65-e6adb252db0b?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/187b87b7-a172-4b22-9c65-e6adb252db0b?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "187b87b7-a172-4b22-9c65-e6adb252db0b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "2228d554-292b-4af1-8ab6-057103e6da11" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064446Z:2228d554-292b-4af1-8ab6-057103e6da11" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:44:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "98" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-11T06:44:45.89Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/187b87b7-a172-4b22-9c65-e6adb252db0b?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/187b87b7-a172-4b22-9c65-e6adb252db0b?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "e37a83a0-2c2e-4fb0-8e47-665bfb0a616e" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "54212612-7cae-4f14-ba99-f3baf58f29f8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "586b3d27-8b99-4e49-baf0-884e7192a3fd" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064546Z:586b3d27-8b99-4e49-baf0-884e7192a3fd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:45:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"187b87b7-a172-4b22-9c65-e6adb252db0b\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T06:44:45.89Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "e37a83a0-2c2e-4fb0-8e47-665bfb0a616e" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6e0a0382-1989-4417-b92b-61da8a4a6deb" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "bd26b347-9b91-477a-b103-1936d33704d3" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064546Z:bd26b347-9b91-477a-b103-1936d33704d3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:45:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "159" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/firewallRules\"}" + } + }, + "New-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "3db1c9d6-6dcb-4ecc-99b9-06d91b8482d8" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule_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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/11129c81-a10d-47df-979f-518b89eb5fb6?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/11129c81-a10d-47df-979f-518b89eb5fb6?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "11129c81-a10d-47df-979f-518b89eb5fb6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], + "x-ms-correlation-request-id": [ "76e9b764-6928-4085-8dd7-dfed52f2c2a5" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064546Z:76e9b764-6928-4085-8dd7-dfed52f2c2a5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:45:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "96" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-11T06:45:46.92Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/11129c81-a10d-47df-979f-518b89eb5fb6?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/11129c81-a10d-47df-979f-518b89eb5fb6?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "3db1c9d6-6dcb-4ecc-99b9-06d91b8482d8" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b351b328-63c8-4863-8c31-fc8c35adab9f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "c054926b-171e-45ef-9a29-405824feb3ed" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064647Z:c054926b-171e-45ef-9a29-405824feb3ed" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:46:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"11129c81-a10d-47df-979f-518b89eb5fb6\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T06:45:46.92Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/11129c81-a10d-47df-979f-518b89eb5fb6?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/11129c81-a10d-47df-979f-518b89eb5fb6?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "3db1c9d6-6dcb-4ecc-99b9-06d91b8482d8" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "85d18db3-4c5f-4870-9487-b1bea0aa0b7e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "cd9e081c-8cc4-4955-9324-a7525ecb58f4" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064647Z:cd9e081c-8cc4-4955-9324-a7525ecb58f4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:46:46 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+ClientIPAddress+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.1\",\r\n \"endIpAddress\": \"0.0.0.1\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "93" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/aea62ef0-2358-49d3-9f15-16ef75353c41?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/aea62ef0-2358-49d3-9f15-16ef75353c41?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "aea62ef0-2358-49d3-9f15-16ef75353c41" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "cfb84be8-6b69-4109-94b4-15598c43a2e6" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064648Z:cfb84be8-6b69-4109-94b4-15598c43a2e6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:46:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "98" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-11T06:46:48.01Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/aea62ef0-2358-49d3-9f15-16ef75353c41?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/aea62ef0-2358-49d3-9f15-16ef75353c41?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "24" ], + "x-ms-client-request-id": [ "17fd83ae-23c2-407f-9e4b-83f70d8d966d" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "042a606e-0eef-455e-98d9-04d80a0e805d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "a8284521-ebc5-4f15-93d1-88bcda61aa9b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064748Z:a8284521-ebc5-4f15-93d1-88bcda61aa9b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:47:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"aea62ef0-2358-49d3-9f15-16ef75353c41\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T06:46:48.01Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "25" ], + "x-ms-client-request-id": [ "17fd83ae-23c2-407f-9e4b-83f70d8d966d" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "094605b9-8d33-457e-86ac-34f931da8e7b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "fd7444e4-a39c-43f5-87e3-cbfb14015820" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064748Z:fd7444e4-a39c-43f5-87e3-cbfb14015820" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:47:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "159" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.1\",\"endIpAddress\":\"0.0.0.1\"},\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/firewallRules\"}" + } + }, + "New-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+ClientIPAddress+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "5e3c713e-27cc-47cc-b503-e70d3e527e40" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule_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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/e6c5e9ae-751b-420d-8905-4580877db672?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e6c5e9ae-751b-420d-8905-4580877db672?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e6c5e9ae-751b-420d-8905-4580877db672" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14997" ], + "x-ms-correlation-request-id": [ "4f66b66c-f444-4341-9b83-e10d5735cbb3" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064749Z:4f66b66c-f444-4341-9b83-e10d5735cbb3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:47:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "97" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-11T06:47:48.923Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e6c5e9ae-751b-420d-8905-4580877db672?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e6c5e9ae-751b-420d-8905-4580877db672?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "27" ], + "x-ms-client-request-id": [ "5e3c713e-27cc-47cc-b503-e70d3e527e40" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "bad6347d-28e7-4d23-b17c-ed57e8dcc29d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "9a112cb6-85ab-4684-b462-4c660b6db444" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064849Z:9a112cb6-85ab-4684-b462-4c660b6db444" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:48:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"e6c5e9ae-751b-420d-8905-4580877db672\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T06:47:48.923Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/e6c5e9ae-751b-420d-8905-4580877db672?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/e6c5e9ae-751b-420d-8905-4580877db672?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "28" ], + "x-ms-client-request-id": [ "5e3c713e-27cc-47cc-b503-e70d3e527e40" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e740908b-750d-47de-a2fb-522a31d9075b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "0ab6c766-b362-4723-9e87-142e8cd59944" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064849Z:0ab6c766-b362-4723-9e87-142e8cd59944" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:48:49 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+AllowAll+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/e04eba31-9804-4df6-a9f4-31553cf3addd?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e04eba31-9804-4df6-a9f4-31553cf3addd?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e04eba31-9804-4df6-a9f4-31553cf3addd" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], + "x-ms-correlation-request-id": [ "b94bec0a-1a1a-4bba-bde1-5365e04c6cf8" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064849Z:b94bec0a-1a1a-4bba-bde1-5365e04c6cf8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:48:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "98" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-11T06:48:49.75Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e04eba31-9804-4df6-a9f4-31553cf3addd?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e04eba31-9804-4df6-a9f4-31553cf3addd?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "1273aa52-7f89-4fe9-b7e1-33cfc4d9a506" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "28e1fb55-d578-4faf-955f-35e895118824" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-correlation-request-id": [ "4829c506-3be3-43d5-9707-809d4c7d3a8a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064950Z:4829c506-3be3-43d5-9707-809d4c7d3a8a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:49:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"e04eba31-9804-4df6-a9f4-31553cf3addd\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T06:48:49.75Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "31" ], + "x-ms-client-request-id": [ "1273aa52-7f89-4fe9-b7e1-33cfc4d9a506" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "21b784df-9646-42f6-a2e2-b506da70fd76" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "x-ms-correlation-request-id": [ "30288fc7-555d-4dde-85c6-23c448787ffc" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064950Z:30288fc7-555d-4dde-85c6-23c448787ffc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:49:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "167" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"255.255.255.255\"},\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/firewallRules\"}" + } + }, + "New-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+AllowAll+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "32" ], + "x-ms-client-request-id": [ "7428d90e-762f-46bb-a5b9-f7aa6858cfb7" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule_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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/0519e824-c85b-4a97-85c0-2d8520fdb2a2?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/0519e824-c85b-4a97-85c0-2d8520fdb2a2?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0519e824-c85b-4a97-85c0-2d8520fdb2a2" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14996" ], + "x-ms-correlation-request-id": [ "385b51ca-3e98-4d2c-939e-d0c6cf1486ce" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064950Z:385b51ca-3e98-4d2c-939e-d0c6cf1486ce" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:49:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "97" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-11T06:49:50.737Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/0519e824-c85b-4a97-85c0-2d8520fdb2a2?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/0519e824-c85b-4a97-85c0-2d8520fdb2a2?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "33" ], + "x-ms-client-request-id": [ "7428d90e-762f-46bb-a5b9-f7aa6858cfb7" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "28f81896-b605-48b1-9516-71fea1fba2e0" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "x-ms-correlation-request-id": [ "cd1944ab-dbed-4cee-a829-57cd3413b128" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065051Z:cd1944ab-dbed-4cee-a829-57cd3413b128" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:50:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"0519e824-c85b-4a97-85c0-2d8520fdb2a2\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T06:49:50.737Z\"}" + } + }, + "New-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/0519e824-c85b-4a97-85c0-2d8520fdb2a2?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/0519e824-c85b-4a97-85c0-2d8520fdb2a2?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "34" ], + "x-ms-client-request-id": [ "7428d90e-762f-46bb-a5b9-f7aa6858cfb7" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b2581582-f440-46ca-8c44-e72318aaad09" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], + "x-ms-correlation-request-id": [ "54cb5b8a-aae2-49d9-86e0-aeda164235fd" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065051Z:54cb5b8a-aae2-49d9-86e0-aeda164235fd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:50:50 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + } +} \ No newline at end of file diff --git a/src/PostgreSql/test/New-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 b/src/PostgreSql/test/New-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 new file mode 100644 index 000000000000..6562e16260e5 --- /dev/null +++ b/src/PostgreSql/test/New-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 @@ -0,0 +1,39 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzPostgreSqlFlexibleServerFirewallRule.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'New-AzPostgreSqlFlexibleServerFirewallRule' { + It 'CreateExpanded' { + $rule = New-AzPostgreSqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.flexibleServerName -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 + $rule.Name | Should -Be $env.firewallRuleName + $rule.StartIPAddress | Should -Be 0.0.0.0 + $rule.EndIPAddress | Should -Be 0.0.0.1 + Remove-AzPostgreSqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.flexibleServerName + } + + It 'ClientIPAddress' { + #Use only one parameter when only one IP + $rule = New-AzPostgreSqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.flexibleServerName -ClientIPAddress 0.0.0.1 + $rule.Name | Should -Be $env.firewallRuleName + $rule.StartIPAddress | Should -Be 0.0.0.1 + $rule.EndIPAddress | Should -Be 0.0.0.1 + Remove-AzPostgreSqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.flexibleServerName + } + + It 'AllowAll' { + $rule = New-AzPostgreSqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.flexibleServerName -AllowAll + $rule.Name | Should -Be $env.firewallRuleName + $rule.StartIPAddress | Should -Be 0.0.0.0 + $rule.EndIPAddress | Should -Be 255.255.255.255 + Remove-AzPostgreSqlFlexibleServerFirewallRule -Name $rule.Name -ResourceGroupName $env.resourceGroup -ServerName $env.flexibleServerName + } +} diff --git a/src/PostgreSql/test/New-AzPostgreSqlReplica.Recording.json b/src/PostgreSql/test/New-AzPostgreSqlReplica.Recording.json index ffc49c6f1ff3..da00072bf7f4 100644 --- a/src/PostgreSql/test/New-AzPostgreSqlReplica.Recording.json +++ b/src/PostgreSql/test/New-AzPostgreSqlReplica.Recording.json @@ -1,8 +1,8 @@ { - "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+1": { + "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "107" ], @@ -35,14 +35,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01+2": { + "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01", - "Content": "{\r\n \"properties\": {\r\n \"createMode\": \"Replica\",\r\n \"sourceServerId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\"\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01", + "Content": "{\r\n \"properties\": {\r\n \"createMode\": \"Replica\",\r\n \"sourceServerId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\"\r\n },\r\n \"location\": \"eastus2euap\"\r\n}", "Headers": { }, "ContentHeaders": { @@ -55,9 +55,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01" ], "x-ms-request-id": [ "e90e1781-70f6-4c66-a12a-6cb762d7b2d0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1186" ], @@ -75,10 +75,10 @@ "Content": "{\"operation\":\"CreateElasticServerContinuousCopy\",\"startTime\":\"2020-09-25T11:14:27.93Z\"}" } }, - "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01+3": { + "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "108", "109" ], @@ -115,10 +115,10 @@ "Content": "{\"name\":\"e90e1781-70f6-4c66-a12a-6cb762d7b2d0\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:14:27.93Z\"}" } }, - "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01+4": { + "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "108", "109", "110" ], @@ -155,10 +155,10 @@ "Content": "{\"name\":\"e90e1781-70f6-4c66-a12a-6cb762d7b2d0\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:14:27.93Z\"}" } }, - "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01+5": { + "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "108", "109", "110", "111" ], @@ -195,10 +195,10 @@ "Content": "{\"name\":\"e90e1781-70f6-4c66-a12a-6cb762d7b2d0\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:14:27.93Z\"}" } }, - "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01+6": { + "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "108", "109", "110", "111", "112" ], @@ -235,10 +235,10 @@ "Content": "{\"name\":\"e90e1781-70f6-4c66-a12a-6cb762d7b2d0\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:14:27.93Z\"}" } }, - "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01+7": { + "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "108", "109", "110", "111", "112", "113" ], @@ -275,10 +275,10 @@ "Content": "{\"name\":\"e90e1781-70f6-4c66-a12a-6cb762d7b2d0\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:14:27.93Z\"}" } }, - "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01+8": { + "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "108", "109", "110", "111", "112", "113", "114" ], @@ -315,10 +315,10 @@ "Content": "{\"name\":\"e90e1781-70f6-4c66-a12a-6cb762d7b2d0\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:14:27.93Z\"}" } }, - "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01+9": { + "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "108", "109", "110", "111", "112", "113", "114", "115" ], @@ -355,10 +355,10 @@ "Content": "{\"name\":\"e90e1781-70f6-4c66-a12a-6cb762d7b2d0\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:14:27.93Z\"}" } }, - "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01+10": { + "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "108", "109", "110", "111", "112", "113", "114", "115", "116" ], @@ -395,10 +395,10 @@ "Content": "{\"name\":\"e90e1781-70f6-4c66-a12a-6cb762d7b2d0\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:14:27.93Z\"}" } }, - "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01+11": { + "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "108", "109", "110", "111", "112", "113", "114", "115", "116", "117" ], @@ -435,10 +435,10 @@ "Content": "{\"name\":\"e90e1781-70f6-4c66-a12a-6cb762d7b2d0\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:14:27.93Z\"}" } }, - "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01+12": { + "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118" ], @@ -475,10 +475,10 @@ "Content": "{\"name\":\"e90e1781-70f6-4c66-a12a-6cb762d7b2d0\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:14:27.93Z\"}" } }, - "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01+13": { + "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118", "119" ], @@ -515,10 +515,10 @@ "Content": "{\"name\":\"e90e1781-70f6-4c66-a12a-6cb762d7b2d0\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:14:27.93Z\"}" } }, - "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01+14": { + "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01+14": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e90e1781-70f6-4c66-a12a-6cb762d7b2d0?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120" ], @@ -555,10 +555,10 @@ "Content": "{\"name\":\"e90e1781-70f6-4c66-a12a-6cb762d7b2d0\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:14:27.93Z\"}" } }, - "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01+15": { + "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01+15": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120", "121" ], @@ -591,13 +591,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Enabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100-replica.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:25:40.337+00:00\",\"replicationRole\":\"Replica\",\"masterServerId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"replicaCapacity\":0,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-replica\",\"name\":\"postgresql-test-100-replica\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Enabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100-replica.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:25:40.337+00:00\",\"replicationRole\":\"Replica\",\"masterServerId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"replicaCapacity\":0,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-replica\",\"name\":\"postgresql-test-100-replica\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01+16": { + "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01+16": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "122" ], @@ -616,9 +616,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/6466668d-7f53-4f75-836b-6e7dd8cb2575?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/6466668d-7f53-4f75-836b-6e7dd8cb2575?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6466668d-7f53-4f75-836b-6e7dd8cb2575?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6466668d-7f53-4f75-836b-6e7dd8cb2575?api-version=2017-12-01" ], "x-ms-request-id": [ "6466668d-7f53-4f75-836b-6e7dd8cb2575" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14989" ], @@ -636,10 +636,10 @@ "Content": "{\"operation\":\"DropElasticServer\",\"startTime\":\"2020-09-25T11:20:35.597Z\"}" } }, - "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6466668d-7f53-4f75-836b-6e7dd8cb2575?api-version=2017-12-01+17": { + "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6466668d-7f53-4f75-836b-6e7dd8cb2575?api-version=2017-12-01+17": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6466668d-7f53-4f75-836b-6e7dd8cb2575?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6466668d-7f53-4f75-836b-6e7dd8cb2575?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "122", "123" ], @@ -676,10 +676,10 @@ "Content": "{\"name\":\"6466668d-7f53-4f75-836b-6e7dd8cb2575\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:20:35.597Z\"}" } }, - "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/6466668d-7f53-4f75-836b-6e7dd8cb2575?api-version=2017-12-01+18": { + "New-AzPostgreSqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/6466668d-7f53-4f75-836b-6e7dd8cb2575?api-version=2017-12-01+18": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/6466668d-7f53-4f75-836b-6e7dd8cb2575?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/6466668d-7f53-4f75-836b-6e7dd8cb2575?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "122", "123", "124" ], diff --git a/src/PostgreSql/test/New-AzPostgreSqlReplica.Tests.ps1 b/src/PostgreSql/test/New-AzPostgreSqlReplica.Tests.ps1 index e08c3b1209ea..06e489caa736 100644 --- a/src/PostgreSql/test/New-AzPostgreSqlReplica.Tests.ps1 +++ b/src/PostgreSql/test/New-AzPostgreSqlReplica.Tests.ps1 @@ -16,7 +16,7 @@ Describe 'New-AzPostgreSqlReplica' { $replica = Get-AzPostgreSqlServer -ResourceGroupName $env.resourceGroup -ServerName $env.serverName | New-AzPostgreSqlReplica -Name $env.replicaName -ResourceGroupName $env.resourceGroup $replica.Name | Should -Be $env.replicaName $replica.SkuName | Should -Be $env.Sku - $replica.Location | Should -Be eastus + $replica.Location | Should -Be eastus2euap Remove-AzPostgreSqlServer -ResourceGroupName $env.resourceGroup -Name $env.replicaName } } diff --git a/src/PostgreSql/test/New-AzPostgreSqlServer.Recording.json b/src/PostgreSql/test/New-AzPostgreSqlServer.Recording.json index 959764380074..3efe09088682 100644 --- a/src/PostgreSql/test/New-AzPostgreSqlServer.Recording.json +++ b/src/PostgreSql/test/New-AzPostgreSqlServer.Recording.json @@ -1,9 +1,9 @@ { - "New-AzPostgreSqlServer+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-2?api-version=2017-12-01+1": { + "New-AzPostgreSqlServer+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-200?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-2?api-version=2017-12-01", - "Content": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5_4\"\r\n },\r\n \"properties\": {\r\n \"createMode\": \"Default\",\r\n \"administratorLogin\": \"pwsh\",\r\n \"administratorLoginPassword\": \"Pa88word!\"\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-200?api-version=2017-12-01", + "Content": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5_4\"\r\n },\r\n \"properties\": {\r\n \"createMode\": \"Default\",\r\n \"administratorLogin\": \"pwsh\",\r\n \"administratorLoginPassword\": \"Pa88word!\"\r\n },\r\n \"location\": \"eastus2euap\"\r\n}", "Headers": { }, "ContentHeaders": { @@ -16,9 +16,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/ab638a2c-616a-4164-bee6-c7f9d810208b?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/ab638a2c-616a-4164-bee6-c7f9d810208b?api-version=2017-12-01" ], "Retry-After": [ "60" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/ab638a2c-616a-4164-bee6-c7f9d810208b?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/ab638a2c-616a-4164-bee6-c7f9d810208b?api-version=2017-12-01" ], "x-ms-request-id": [ "ab638a2c-616a-4164-bee6-c7f9d810208b" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1185" ], @@ -36,10 +36,10 @@ "Content": "{\"operation\":\"UpsertElasticServer\",\"startTime\":\"2020-09-25T11:20:55.44Z\"}" } }, - "New-AzPostgreSqlServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/ab638a2c-616a-4164-bee6-c7f9d810208b?api-version=2017-12-01+2": { + "New-AzPostgreSqlServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/ab638a2c-616a-4164-bee6-c7f9d810208b?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/ab638a2c-616a-4164-bee6-c7f9d810208b?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/ab638a2c-616a-4164-bee6-c7f9d810208b?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "125", "126" ], @@ -76,10 +76,10 @@ "Content": "{\"name\":\"ab638a2c-616a-4164-bee6-c7f9d810208b\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:20:55.44Z\"}" } }, - "New-AzPostgreSqlServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/ab638a2c-616a-4164-bee6-c7f9d810208b?api-version=2017-12-01+3": { + "New-AzPostgreSqlServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/ab638a2c-616a-4164-bee6-c7f9d810208b?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/ab638a2c-616a-4164-bee6-c7f9d810208b?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/ab638a2c-616a-4164-bee6-c7f9d810208b?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "125", "126", "127" ], @@ -116,10 +116,10 @@ "Content": "{\"name\":\"ab638a2c-616a-4164-bee6-c7f9d810208b\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:20:55.44Z\"}" } }, - "New-AzPostgreSqlServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-2?api-version=2017-12-01+4": { + "New-AzPostgreSqlServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-200?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-2?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-200?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "125", "126", "127", "128" ], @@ -152,13 +152,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"pwsh\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100-2.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:30:55.74+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-2\",\"name\":\"postgresql-test-100-2\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"pwsh\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-200.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:30:55.74+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-200\",\"name\":\"postgresql-test-200\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "New-AzPostgreSqlServer+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-2?api-version=2017-12-01+5": { + "New-AzPostgreSqlServer+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-200?api-version=2017-12-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-2?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-200?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "129" ], @@ -177,9 +177,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/ee3ff3fd-1e48-4a6c-b4e7-22a60ef5958e?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/ee3ff3fd-1e48-4a6c-b4e7-22a60ef5958e?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/ee3ff3fd-1e48-4a6c-b4e7-22a60ef5958e?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/ee3ff3fd-1e48-4a6c-b4e7-22a60ef5958e?api-version=2017-12-01" ], "x-ms-request-id": [ "ee3ff3fd-1e48-4a6c-b4e7-22a60ef5958e" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14988" ], @@ -197,10 +197,10 @@ "Content": "{\"operation\":\"DropElasticServer\",\"startTime\":\"2020-09-25T11:22:58.293Z\"}" } }, - "New-AzPostgreSqlServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/ee3ff3fd-1e48-4a6c-b4e7-22a60ef5958e?api-version=2017-12-01+6": { + "New-AzPostgreSqlServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/ee3ff3fd-1e48-4a6c-b4e7-22a60ef5958e?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/ee3ff3fd-1e48-4a6c-b4e7-22a60ef5958e?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/ee3ff3fd-1e48-4a6c-b4e7-22a60ef5958e?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "129", "130" ], @@ -237,10 +237,10 @@ "Content": "{\"name\":\"ee3ff3fd-1e48-4a6c-b4e7-22a60ef5958e\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:22:58.293Z\"}" } }, - "New-AzPostgreSqlServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/ee3ff3fd-1e48-4a6c-b4e7-22a60ef5958e?api-version=2017-12-01+7": { + "New-AzPostgreSqlServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/ee3ff3fd-1e48-4a6c-b4e7-22a60ef5958e?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/ee3ff3fd-1e48-4a6c-b4e7-22a60ef5958e?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/ee3ff3fd-1e48-4a6c-b4e7-22a60ef5958e?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "129", "130", "131" ], diff --git a/src/PostgreSql/test/New-AzPostgreSqlVirtualNetworkRule.Recording.json b/src/PostgreSql/test/New-AzPostgreSqlVirtualNetworkRule.Recording.json index 47b1914c1328..ebba75c1b426 100644 --- a/src/PostgreSql/test/New-AzPostgreSqlVirtualNetworkRule.Recording.json +++ b/src/PostgreSql/test/New-AzPostgreSqlVirtualNetworkRule.Recording.json @@ -1,9 +1,9 @@ { - "New-AzPostgreSqlVirtualNetworkRule+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+1": { + "New-AzPostgreSqlVirtualNetworkRule+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", - "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1\"\r\n }\r\n}", "Headers": { }, "ContentHeaders": { @@ -16,9 +16,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/901381a8-cbcb-4b44-b6bf-ecd21bd661c8?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/901381a8-cbcb-4b44-b6bf-ecd21bd661c8?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/901381a8-cbcb-4b44-b6bf-ecd21bd661c8?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/901381a8-cbcb-4b44-b6bf-ecd21bd661c8?api-version=2017-12-01" ], "x-ms-request-id": [ "901381a8-cbcb-4b44-b6bf-ecd21bd661c8" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1184" ], @@ -36,10 +36,10 @@ "Content": "{\"operation\":\"UpsertElasticServerVnetFirewallRule\",\"startTime\":\"2020-09-25T11:23:14.717Z\"}" } }, - "New-AzPostgreSqlVirtualNetworkRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/901381a8-cbcb-4b44-b6bf-ecd21bd661c8?api-version=2017-12-01+2": { + "New-AzPostgreSqlVirtualNetworkRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/901381a8-cbcb-4b44-b6bf-ecd21bd661c8?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/901381a8-cbcb-4b44-b6bf-ecd21bd661c8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/901381a8-cbcb-4b44-b6bf-ecd21bd661c8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "132", "133" ], @@ -76,10 +76,10 @@ "Content": "{\"name\":\"901381a8-cbcb-4b44-b6bf-ecd21bd661c8\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:23:14.717Z\"}" } }, - "New-AzPostgreSqlVirtualNetworkRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+3": { + "New-AzPostgreSqlVirtualNetworkRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "132", "133", "134" ], @@ -112,13 +112,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBforPostgreSQL/servers/virtualNetworkRules\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBForPostgreSQL/servers/virtualNetworkRules\"}" } }, - "New-AzPostgreSqlVirtualNetworkRule+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+4": { + "New-AzPostgreSqlVirtualNetworkRule+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+4": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "135" ], @@ -137,9 +137,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/caf26192-34db-47cf-a3df-f3f5c4e5ee6f?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/caf26192-34db-47cf-a3df-f3f5c4e5ee6f?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/caf26192-34db-47cf-a3df-f3f5c4e5ee6f?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/caf26192-34db-47cf-a3df-f3f5c4e5ee6f?api-version=2017-12-01" ], "x-ms-request-id": [ "caf26192-34db-47cf-a3df-f3f5c4e5ee6f" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14987" ], @@ -157,10 +157,10 @@ "Content": "{\"operation\":\"DropElasticServerVnetFirewallRule\",\"startTime\":\"2020-09-25T11:23:46.903Z\"}" } }, - "New-AzPostgreSqlVirtualNetworkRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/caf26192-34db-47cf-a3df-f3f5c4e5ee6f?api-version=2017-12-01+5": { + "New-AzPostgreSqlVirtualNetworkRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/caf26192-34db-47cf-a3df-f3f5c4e5ee6f?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/caf26192-34db-47cf-a3df-f3f5c4e5ee6f?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/caf26192-34db-47cf-a3df-f3f5c4e5ee6f?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "135", "136" ], @@ -197,10 +197,10 @@ "Content": "{\"name\":\"caf26192-34db-47cf-a3df-f3f5c4e5ee6f\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:23:46.903Z\"}" } }, - "New-AzPostgreSqlVirtualNetworkRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/caf26192-34db-47cf-a3df-f3f5c4e5ee6f?api-version=2017-12-01+6": { + "New-AzPostgreSqlVirtualNetworkRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/caf26192-34db-47cf-a3df-f3f5c4e5ee6f?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/caf26192-34db-47cf-a3df-f3f5c4e5ee6f?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/caf26192-34db-47cf-a3df-f3f5c4e5ee6f?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "135", "136", "137" ], diff --git a/src/PostgreSql/test/New-AzPostgreSqlVirtualNetworkRule.Tests.ps1 b/src/PostgreSql/test/New-AzPostgreSqlVirtualNetworkRule.Tests.ps1 index 7d9efb3280b7..a30f8cc11e8f 100644 --- a/src/PostgreSql/test/New-AzPostgreSqlVirtualNetworkRule.Tests.ps1 +++ b/src/PostgreSql/test/New-AzPostgreSqlVirtualNetworkRule.Tests.ps1 @@ -13,7 +13,7 @@ while(-not $mockingPath) { Describe 'New-AzPostgreSqlVirtualNetworkRule' { It 'CreateExpanded' { - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1" + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1" $vnetRule = New-AzPostgreSqlVirtualNetworkRule -Name $env.VNetName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -SubnetId $ID $vnetRule.VirtualNetworkSubnetId | Should -Be $ID $vnetRule.Name | Should -Be $env.VNetName diff --git a/src/PostgreSql/test/Remove-AzPostgreSqlFirewallRule.Recording.json b/src/PostgreSql/test/Remove-AzPostgreSqlFirewallRule.Recording.json index 2c7ec80c858a..9be3ec1191d2 100644 --- a/src/PostgreSql/test/Remove-AzPostgreSqlFirewallRule.Recording.json +++ b/src/PostgreSql/test/Remove-AzPostgreSqlFirewallRule.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzPostgreSqlFirewallRule+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+1": { + "Remove-AzPostgreSqlFirewallRule+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"0.0.0.1\"\r\n }\r\n}", "Headers": { }, @@ -16,9 +16,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/c47d84ab-9882-4753-b3b8-c386b0fed0a0?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/c47d84ab-9882-4753-b3b8-c386b0fed0a0?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c47d84ab-9882-4753-b3b8-c386b0fed0a0?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c47d84ab-9882-4753-b3b8-c386b0fed0a0?api-version=2017-12-01" ], "x-ms-request-id": [ "c47d84ab-9882-4753-b3b8-c386b0fed0a0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1183" ], @@ -36,10 +36,10 @@ "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-09-25T11:24:04.39Z\"}" } }, - "Remove-AzPostgreSqlFirewallRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c47d84ab-9882-4753-b3b8-c386b0fed0a0?api-version=2017-12-01+2": { + "Remove-AzPostgreSqlFirewallRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c47d84ab-9882-4753-b3b8-c386b0fed0a0?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c47d84ab-9882-4753-b3b8-c386b0fed0a0?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c47d84ab-9882-4753-b3b8-c386b0fed0a0?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "138", "139" ], @@ -76,10 +76,10 @@ "Content": "{\"name\":\"c47d84ab-9882-4753-b3b8-c386b0fed0a0\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:24:04.39Z\"}" } }, - "Remove-AzPostgreSqlFirewallRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+3": { + "Remove-AzPostgreSqlFirewallRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "138", "139", "140" ], @@ -112,13 +112,13 @@ "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/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBForPostgreSQL/servers/firewallRules\"}" } }, - "Remove-AzPostgreSqlFirewallRule+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+4": { + "Remove-AzPostgreSqlFirewallRule+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+4": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "141" ], @@ -137,9 +137,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/6ca94acd-2cb9-4c29-96b2-e8c73b116c2c?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/6ca94acd-2cb9-4c29-96b2-e8c73b116c2c?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6ca94acd-2cb9-4c29-96b2-e8c73b116c2c?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6ca94acd-2cb9-4c29-96b2-e8c73b116c2c?api-version=2017-12-01" ], "x-ms-request-id": [ "6ca94acd-2cb9-4c29-96b2-e8c73b116c2c" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14986" ], @@ -157,10 +157,10 @@ "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-09-25T11:24:21.733Z\"}" } }, - "Remove-AzPostgreSqlFirewallRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6ca94acd-2cb9-4c29-96b2-e8c73b116c2c?api-version=2017-12-01+5": { + "Remove-AzPostgreSqlFirewallRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6ca94acd-2cb9-4c29-96b2-e8c73b116c2c?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6ca94acd-2cb9-4c29-96b2-e8c73b116c2c?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6ca94acd-2cb9-4c29-96b2-e8c73b116c2c?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "141", "142" ], @@ -197,10 +197,10 @@ "Content": "{\"name\":\"6ca94acd-2cb9-4c29-96b2-e8c73b116c2c\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:24:21.733Z\"}" } }, - "Remove-AzPostgreSqlFirewallRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/6ca94acd-2cb9-4c29-96b2-e8c73b116c2c?api-version=2017-12-01+6": { + "Remove-AzPostgreSqlFirewallRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/6ca94acd-2cb9-4c29-96b2-e8c73b116c2c?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/6ca94acd-2cb9-4c29-96b2-e8c73b116c2c?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/6ca94acd-2cb9-4c29-96b2-e8c73b116c2c?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "141", "142", "143" ], @@ -235,10 +235,10 @@ "Content": null } }, - "Remove-AzPostgreSqlFirewallRule+[NoContext]+DeleteViaIdentity+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+1": { + "Remove-AzPostgreSqlFirewallRule+[NoContext]+DeleteViaIdentity+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"0.0.0.1\"\r\n }\r\n}", "Headers": { }, @@ -252,9 +252,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/8b5ea346-fa29-41f1-a375-396573b77ce9?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/8b5ea346-fa29-41f1-a375-396573b77ce9?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/8b5ea346-fa29-41f1-a375-396573b77ce9?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/8b5ea346-fa29-41f1-a375-396573b77ce9?api-version=2017-12-01" ], "x-ms-request-id": [ "8b5ea346-fa29-41f1-a375-396573b77ce9" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1182" ], @@ -272,10 +272,10 @@ "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-09-25T11:24:38.983Z\"}" } }, - "Remove-AzPostgreSqlFirewallRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/8b5ea346-fa29-41f1-a375-396573b77ce9?api-version=2017-12-01+2": { + "Remove-AzPostgreSqlFirewallRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/8b5ea346-fa29-41f1-a375-396573b77ce9?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/8b5ea346-fa29-41f1-a375-396573b77ce9?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/8b5ea346-fa29-41f1-a375-396573b77ce9?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "144", "145" ], @@ -312,10 +312,10 @@ "Content": "{\"name\":\"8b5ea346-fa29-41f1-a375-396573b77ce9\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:24:38.983Z\"}" } }, - "Remove-AzPostgreSqlFirewallRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+3": { + "Remove-AzPostgreSqlFirewallRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "144", "145", "146" ], @@ -348,13 +348,13 @@ "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/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBForPostgreSQL/servers/firewallRules\"}" } }, - "Remove-AzPostgreSqlFirewallRule+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+4": { + "Remove-AzPostgreSqlFirewallRule+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+4": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "147" ], @@ -373,9 +373,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/8536a5ab-2699-49a4-8d16-34efd10c2b2a?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/8536a5ab-2699-49a4-8d16-34efd10c2b2a?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/8536a5ab-2699-49a4-8d16-34efd10c2b2a?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/8536a5ab-2699-49a4-8d16-34efd10c2b2a?api-version=2017-12-01" ], "x-ms-request-id": [ "8536a5ab-2699-49a4-8d16-34efd10c2b2a" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14985" ], @@ -393,10 +393,10 @@ "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-09-25T11:24:56.327Z\"}" } }, - "Remove-AzPostgreSqlFirewallRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/8536a5ab-2699-49a4-8d16-34efd10c2b2a?api-version=2017-12-01+5": { + "Remove-AzPostgreSqlFirewallRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/8536a5ab-2699-49a4-8d16-34efd10c2b2a?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/8536a5ab-2699-49a4-8d16-34efd10c2b2a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/8536a5ab-2699-49a4-8d16-34efd10c2b2a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "147", "148" ], @@ -433,10 +433,10 @@ "Content": "{\"name\":\"8536a5ab-2699-49a4-8d16-34efd10c2b2a\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:24:56.327Z\"}" } }, - "Remove-AzPostgreSqlFirewallRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/8536a5ab-2699-49a4-8d16-34efd10c2b2a?api-version=2017-12-01+6": { + "Remove-AzPostgreSqlFirewallRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/8536a5ab-2699-49a4-8d16-34efd10c2b2a?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/8536a5ab-2699-49a4-8d16-34efd10c2b2a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/8536a5ab-2699-49a4-8d16-34efd10c2b2a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "147", "148", "149" ], diff --git a/src/PostgreSql/test/Remove-AzPostgreSqlFirewallRule.Tests.ps1 b/src/PostgreSql/test/Remove-AzPostgreSqlFirewallRule.Tests.ps1 index 75f2bee9ef0d..0f6f43f27fb5 100644 --- a/src/PostgreSql/test/Remove-AzPostgreSqlFirewallRule.Tests.ps1 +++ b/src/PostgreSql/test/Remove-AzPostgreSqlFirewallRule.Tests.ps1 @@ -19,7 +19,7 @@ Describe 'Remove-AzPostgreSqlFirewallRule' { } | Should -Not -Throw } - It 'DeleteViaIdentity' { + It 'DeleteViaIdentity' -Skip { { New-AzPostgreSqlFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBforPostgreSQL/servers/$($env.serverName)/firewallRules/$($env.firewallRuleName)" diff --git a/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServer.Recording.json b/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServer.Recording.json new file mode 100644 index 000000000000..b935ade5f795 --- /dev/null +++ b/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServer.Recording.json @@ -0,0 +1,298 @@ +{ + "Remove-AzPostgreSqlFlexibleServer+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-100?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": "{\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D2s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 131072\r\n },\r\n \"administratorLogin\": \"mysql_test\",\r\n \"administratorLoginPassword\": \"Pasword01!!2020\",\r\n \"version\": \"12\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "372" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/f78a219c-4acf-4eae-b935-9a788f5e6b77?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f78a219c-4acf-4eae-b935-9a788f5e6b77?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e894d32d-0c8d-4a88-8362-79cd2e98b7fc" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], + "x-ms-correlation-request-id": [ "0a05d391-712b-4286-8205-a3cfa9f21606" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065052Z:0a05d391-712b-4286-8205-a3cfa9f21606" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:50:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-11-11T06:50:52.347Z\"}" + } + }, + "Remove-AzPostgreSqlFlexibleServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f78a219c-4acf-4eae-b935-9a788f5e6b77?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f78a219c-4acf-4eae-b935-9a788f5e6b77?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "36" ], + "x-ms-client-request-id": [ "059d1de3-b74e-4def-84b4-2a8c7ad8cb2c" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "28f809a0-04fe-4f01-90ab-07289cf7d027" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "x-ms-correlation-request-id": [ "d9a8abe8-15e0-4e17-b7a0-d5dd8ff3e114" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065152Z:d9a8abe8-15e0-4e17-b7a0-d5dd8ff3e114" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:51:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f78a219c-4acf-4eae-b935-9a788f5e6b77\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T06:50:52.347Z\"}" + } + }, + "Remove-AzPostgreSqlFlexibleServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-100?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "37" ], + "x-ms-client-request-id": [ "059d1de3-b74e-4def-84b4-2a8c7ad8cb2c" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "aa6ef87e-34db-4226-aead-21a26123781e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "x-ms-correlation-request-id": [ "54f071d3-bb29-4c49-a350-bd2dc0561f87" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065153Z:54f071d3-bb29-4c49-a350-bd2dc0561f87" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:51:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1113" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-test-200.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"shyHamster5\",\"publicNetworkAccess\":\"Disabled\",\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/VNETesql-test-100/subnets/Subnetesql-test-100\"},\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"3\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-11T06:48:31.9060234+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-test-200\",\"name\":\"postgresql-test-200\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "Remove-AzPostgreSqlFlexibleServer+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200-2?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "be7212b4-206c-490e-a780-0d1fef28210c" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14995" ], + "x-ms-request-id": [ "c0cb51fc-6168-41ed-b15b-cbf837f25727" ], + "x-ms-correlation-request-id": [ "c0cb51fc-6168-41ed-b15b-cbf837f25727" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065153Z:c0cb51fc-6168-41ed-b15b-cbf837f25727" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 11 Nov 2020 06:51:52 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null + } + }, + "Remove-AzPostgreSqlFlexibleServer+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200-2?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "be7212b4-206c-490e-a780-0d1fef28210c" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14995" ], + "x-ms-request-id": [ "c0cb51fc-6168-41ed-b15b-cbf837f25727" ], + "x-ms-correlation-request-id": [ "c0cb51fc-6168-41ed-b15b-cbf837f25727" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065153Z:c0cb51fc-6168-41ed-b15b-cbf837f25727" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 11 Nov 2020 06:51:52 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null + } + }, + "Remove-AzPostgreSqlFlexibleServer+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200-2?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "be7212b4-206c-490e-a780-0d1fef28210c" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14995" ], + "x-ms-request-id": [ "c0cb51fc-6168-41ed-b15b-cbf837f25727" ], + "x-ms-correlation-request-id": [ "c0cb51fc-6168-41ed-b15b-cbf837f25727" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065153Z:c0cb51fc-6168-41ed-b15b-cbf837f25727" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 11 Nov 2020 06:51:52 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null + } + }, + "Remove-AzPostgreSqlFlexibleServer+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200-2?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "be7212b4-206c-490e-a780-0d1fef28210c" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14995" ], + "x-ms-request-id": [ "c0cb51fc-6168-41ed-b15b-cbf837f25727" ], + "x-ms-correlation-request-id": [ "c0cb51fc-6168-41ed-b15b-cbf837f25727" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065153Z:c0cb51fc-6168-41ed-b15b-cbf837f25727" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 11 Nov 2020 06:51:52 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null + } + }, + "Remove-AzPostgreSqlFlexibleServer+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-200?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "39" ], + "x-ms-client-request-id": [ "ef660717-cab6-4349-b74a-3bd4559346d3" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServer_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14994" ], + "x-ms-request-id": [ "ee0dde3c-208f-4b7a-ae35-ea91778ac851" ], + "x-ms-correlation-request-id": [ "ee0dde3c-208f-4b7a-ae35-ea91778ac851" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065153Z:ee0dde3c-208f-4b7a-ae35-ea91778ac851" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 11 Nov 2020 06:51:53 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null + } + } +} \ No newline at end of file diff --git a/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServer.Tests.ps1 b/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServer.Tests.ps1 new file mode 100644 index 000000000000..a9a5ddb714ee --- /dev/null +++ b/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServer.Tests.ps1 @@ -0,0 +1,37 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzPostgreSqlFlexibleServer.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Remove-AzPostgreSqlFlexibleServer' { + It 'Delete' { + { + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + #[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine")] + $password = 'Pasword01!!2020' | ConvertTo-SecureString -AsPlainText -Force + New-AzPostgreSqlFlexibleServer -Location $env.location -ResourceGroupName $env.resourceGroup -Name $env.serverName2 -AdministratorUserName mysql_test -AdministratorLoginPassword $password + } + Remove-AzPostgreSqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName2 + } | Should -Not -Throw + } + + It 'DeleteViaIdentity' { + { + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForPostgreSql/flexibleServers/$($env.serverName2)" + If ($TestMode -eq 'live' -or $TestMode -eq 'record') { + #[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine")] + $password = 'Pasword01!!2020' | ConvertTo-SecureString -AsPlainText -Force + New-AzPostgreSqlFlexibleServer -Location $env.location -ResourceGroupName $env.resourceGroup -Name $env.serverName2 -AdministratorUserName mysql_test -AdministratorLoginPassword $password + } + Remove-AzPostgreSqlFlexibleServer -InputObject $ID + } | Should -Not -Throw + } +} diff --git a/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServerFirewallRule.Recording.json b/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServerFirewallRule.Recording.json new file mode 100644 index 000000000000..9fbd1344d434 --- /dev/null +++ b/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServerFirewallRule.Recording.json @@ -0,0 +1,474 @@ +{ + "Remove-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"0.0.0.1\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "93" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/de386837-d2af-4b0b-b4d0-47e49abff83b?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/de386837-d2af-4b0b-b4d0-47e49abff83b?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "de386837-d2af-4b0b-b4d0-47e49abff83b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], + "x-ms-correlation-request-id": [ "018e2aeb-1ed1-4bb7-892c-37a9265eaacd" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065153Z:018e2aeb-1ed1-4bb7-892c-37a9265eaacd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:51:53 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "99" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-11T06:51:53.813Z\"}" + } + }, + "Remove-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/de386837-d2af-4b0b-b4d0-47e49abff83b?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/de386837-d2af-4b0b-b4d0-47e49abff83b?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "41" ], + "x-ms-client-request-id": [ "d56d8ddc-48d1-4944-a10c-4428aed60c4a" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ab641ed3-8ef8-42d3-b8d4-57a03396cdd2" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "x-ms-correlation-request-id": [ "3520cabb-499c-4822-a552-0b693a9f11b4" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065254Z:3520cabb-499c-4822-a552-0b693a9f11b4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:52:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"de386837-d2af-4b0b-b4d0-47e49abff83b\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T06:51:53.813Z\"}" + } + }, + "Remove-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "42" ], + "x-ms-client-request-id": [ "d56d8ddc-48d1-4944-a10c-4428aed60c4a" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "33127f88-2a3e-40f3-80ec-dfc0bcfa1793" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], + "x-ms-correlation-request-id": [ "8ba58c0e-2572-4fe3-a9e6-89e0be66a7da" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065254Z:8ba58c0e-2572-4fe3-a9e6-89e0be66a7da" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:52:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "159" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/firewallRules\"}" + } + }, + "Remove-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "43" ], + "x-ms-client-request-id": [ "f30bdb34-c00f-4172-9a00-de85d8340695" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule_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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/d62ab1fe-77eb-4e8d-8b26-62b9714818aa?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/d62ab1fe-77eb-4e8d-8b26-62b9714818aa?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "d62ab1fe-77eb-4e8d-8b26-62b9714818aa" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14993" ], + "x-ms-correlation-request-id": [ "b69e5ab8-944d-480a-99d4-8302e0a85ee5" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065254Z:b69e5ab8-944d-480a-99d4-8302e0a85ee5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:52:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "97" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-11T06:52:54.753Z\"}" + } + }, + "Remove-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/d62ab1fe-77eb-4e8d-8b26-62b9714818aa?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/d62ab1fe-77eb-4e8d-8b26-62b9714818aa?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "44" ], + "x-ms-client-request-id": [ "f30bdb34-c00f-4172-9a00-de85d8340695" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5e25dcaa-9062-421f-932e-313923e5e64c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], + "x-ms-correlation-request-id": [ "90c6a01d-0e2e-4123-baea-4d3475a5eaa3" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065355Z:90c6a01d-0e2e-4123-baea-4d3475a5eaa3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:53:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"d62ab1fe-77eb-4e8d-8b26-62b9714818aa\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T06:52:54.753Z\"}" + } + }, + "Remove-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/d62ab1fe-77eb-4e8d-8b26-62b9714818aa?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/d62ab1fe-77eb-4e8d-8b26-62b9714818aa?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "45" ], + "x-ms-client-request-id": [ "f30bdb34-c00f-4172-9a00-de85d8340695" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "04defab5-33a1-460b-8a32-156f083a62b8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], + "x-ms-correlation-request-id": [ "1bf9d406-a1dd-44d8-b2d3-7295f2211bc4" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065355Z:1bf9d406-a1dd-44d8-b2d3-7295f2211bc4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:53:54 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Remove-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+DeleteViaIdentity+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"0.0.0.1\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "93" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/679aed21-2184-4b08-9ed9-047e09425b76?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/679aed21-2184-4b08-9ed9-047e09425b76?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "679aed21-2184-4b08-9ed9-047e09425b76" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1193" ], + "x-ms-correlation-request-id": [ "ecc7783e-677d-4c10-9c2d-f399f447386a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065355Z:ecc7783e-677d-4c10-9c2d-f399f447386a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:53:55 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "99" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-11T06:53:55.613Z\"}" + } + }, + "Remove-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/679aed21-2184-4b08-9ed9-047e09425b76?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/679aed21-2184-4b08-9ed9-047e09425b76?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "47" ], + "x-ms-client-request-id": [ "3088a6c0-36dc-47d8-88ee-d5d680088cad" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f324c5bb-4b16-4bd9-9dc7-410fad8b4b8b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11967" ], + "x-ms-correlation-request-id": [ "e9cdb7bc-fed8-49a1-9506-f3d0300458c7" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065456Z:e9cdb7bc-fed8-49a1-9506-f3d0300458c7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:54:55 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"679aed21-2184-4b08-9ed9-047e09425b76\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T06:53:55.613Z\"}" + } + }, + "Remove-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "48" ], + "x-ms-client-request-id": [ "3088a6c0-36dc-47d8-88ee-d5d680088cad" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "d3d2bf92-cd1c-406a-a4e4-68dc53006a52" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11966" ], + "x-ms-correlation-request-id": [ "107ff525-6297-4864-b63b-81dfd3d8228d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065456Z:107ff525-6297-4864-b63b-81dfd3d8228d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:54:56 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "159" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/firewallRules\"}" + } + }, + "Remove-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "49" ], + "x-ms-client-request-id": [ "b5690d84-6cad-4efa-b629-748f9761ab54" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule_DeleteViaIdentity" ], + "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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/8aec89c5-e542-45ee-8ed2-d1e86ddfdf63?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/8aec89c5-e542-45ee-8ed2-d1e86ddfdf63?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8aec89c5-e542-45ee-8ed2-d1e86ddfdf63" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14992" ], + "x-ms-correlation-request-id": [ "6a379741-939a-46f5-b438-a58e08ba7412" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065456Z:6a379741-939a-46f5-b438-a58e08ba7412" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:54:56 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "97" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-11T06:54:56.493Z\"}" + } + }, + "Remove-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/8aec89c5-e542-45ee-8ed2-d1e86ddfdf63?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/8aec89c5-e542-45ee-8ed2-d1e86ddfdf63?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "50" ], + "x-ms-client-request-id": [ "b5690d84-6cad-4efa-b629-748f9761ab54" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "04039b2b-9165-4df1-9246-eb2c2d84e760" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11965" ], + "x-ms-correlation-request-id": [ "1f272cab-0603-4ce1-bea5-7a1a6a40695d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065559Z:1f272cab-0603-4ce1-bea5-7a1a6a40695d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:55:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"8aec89c5-e542-45ee-8ed2-d1e86ddfdf63\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T06:54:56.493Z\"}" + } + }, + "Remove-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/8aec89c5-e542-45ee-8ed2-d1e86ddfdf63?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/8aec89c5-e542-45ee-8ed2-d1e86ddfdf63?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "51" ], + "x-ms-client-request-id": [ "b5690d84-6cad-4efa-b629-748f9761ab54" ], + "CommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzPostgreSqlFlexibleServerFirewallRule_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3042a09b-ecd8-486b-a3ba-fec7213ae5d0" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11964" ], + "x-ms-correlation-request-id": [ "b1720bd1-5c65-449f-b44a-31063eee2a3d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065559Z:b1720bd1-5c65-449f-b44a-31063eee2a3d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:55:58 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + } +} \ No newline at end of file diff --git a/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 b/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 new file mode 100644 index 000000000000..369f2615a4ef --- /dev/null +++ b/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 @@ -0,0 +1,25 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzPostgreSqlFlexibleServerFirewallRule.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Remove-AzPostgreSqlFlexibleServerFirewallRule' { + It 'Delete' { + New-AzPostgreSqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.flexibleServerName -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 + Remove-AzPostgreSqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.flexibleServerName + } + + It 'DeleteViaIdentity' { + New-AzPostgreSqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.flexibleServerName -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForPostgreSql/flexibleServers/$($env.flexibleServerName)/firewallRules/$($env.firewallRuleName)" + Remove-AzPostgreSqlFlexibleServerFirewallRule -InputObject $ID + } +} diff --git a/src/PostgreSql/test/Remove-AzPostgreSqlServer.Recording.json b/src/PostgreSql/test/Remove-AzPostgreSqlServer.Recording.json index 9888ce724b54..84cf2e2b87da 100644 --- a/src/PostgreSql/test/Remove-AzPostgreSqlServer.Recording.json +++ b/src/PostgreSql/test/Remove-AzPostgreSqlServer.Recording.json @@ -1,9 +1,9 @@ { - "Remove-AzPostgreSqlServer+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-2?api-version=2017-12-01+1": { + "Remove-AzPostgreSqlServer+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-200?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-2?api-version=2017-12-01", - "Content": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5_4\"\r\n },\r\n \"properties\": {\r\n \"createMode\": \"Default\",\r\n \"administratorLogin\": \"pwsh\",\r\n \"administratorLoginPassword\": \"Pa88word!\"\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-200?api-version=2017-12-01", + "Content": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5_4\"\r\n },\r\n \"properties\": {\r\n \"createMode\": \"Default\",\r\n \"administratorLogin\": \"pwsh\",\r\n \"administratorLoginPassword\": \"Pa88word!\"\r\n },\r\n \"location\": \"eastus2euap\"\r\n}", "Headers": { }, "ContentHeaders": { @@ -16,9 +16,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/aa2e4c2e-8d5c-444d-bf04-c321ea4d76fb?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/aa2e4c2e-8d5c-444d-bf04-c321ea4d76fb?api-version=2017-12-01" ], "Retry-After": [ "60" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/aa2e4c2e-8d5c-444d-bf04-c321ea4d76fb?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/aa2e4c2e-8d5c-444d-bf04-c321ea4d76fb?api-version=2017-12-01" ], "x-ms-request-id": [ "aa2e4c2e-8d5c-444d-bf04-c321ea4d76fb" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1181" ], @@ -36,10 +36,10 @@ "Content": "{\"operation\":\"UpsertElasticServer\",\"startTime\":\"2020-09-25T11:25:18.407Z\"}" } }, - "Remove-AzPostgreSqlServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/aa2e4c2e-8d5c-444d-bf04-c321ea4d76fb?api-version=2017-12-01+2": { + "Remove-AzPostgreSqlServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/aa2e4c2e-8d5c-444d-bf04-c321ea4d76fb?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/aa2e4c2e-8d5c-444d-bf04-c321ea4d76fb?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/aa2e4c2e-8d5c-444d-bf04-c321ea4d76fb?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "150", "151" ], @@ -76,10 +76,10 @@ "Content": "{\"name\":\"aa2e4c2e-8d5c-444d-bf04-c321ea4d76fb\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:25:18.407Z\"}" } }, - "Remove-AzPostgreSqlServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/aa2e4c2e-8d5c-444d-bf04-c321ea4d76fb?api-version=2017-12-01+3": { + "Remove-AzPostgreSqlServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/aa2e4c2e-8d5c-444d-bf04-c321ea4d76fb?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/aa2e4c2e-8d5c-444d-bf04-c321ea4d76fb?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/aa2e4c2e-8d5c-444d-bf04-c321ea4d76fb?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "150", "151", "152" ], @@ -116,10 +116,10 @@ "Content": "{\"name\":\"aa2e4c2e-8d5c-444d-bf04-c321ea4d76fb\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:25:18.407Z\"}" } }, - "Remove-AzPostgreSqlServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-2?api-version=2017-12-01+4": { + "Remove-AzPostgreSqlServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-200?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-2?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-200?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "150", "151", "152", "153" ], @@ -152,13 +152,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"pwsh\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100-2.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:35:18.733+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-2\",\"name\":\"postgresql-test-100-2\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"pwsh\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-200.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:35:18.733+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-200\",\"name\":\"postgresql-test-200\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "Remove-AzPostgreSqlServer+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-2?api-version=2017-12-01+5": { + "Remove-AzPostgreSqlServer+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-200?api-version=2017-12-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-2?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-200?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "154" ], @@ -177,9 +177,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/ea3c5dcf-05bd-4b1b-917f-cd3324883459?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/ea3c5dcf-05bd-4b1b-917f-cd3324883459?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/ea3c5dcf-05bd-4b1b-917f-cd3324883459?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/ea3c5dcf-05bd-4b1b-917f-cd3324883459?api-version=2017-12-01" ], "x-ms-request-id": [ "ea3c5dcf-05bd-4b1b-917f-cd3324883459" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14984" ], @@ -197,10 +197,10 @@ "Content": "{\"operation\":\"DropElasticServer\",\"startTime\":\"2020-09-25T11:27:21.377Z\"}" } }, - "Remove-AzPostgreSqlServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/ea3c5dcf-05bd-4b1b-917f-cd3324883459?api-version=2017-12-01+6": { + "Remove-AzPostgreSqlServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/ea3c5dcf-05bd-4b1b-917f-cd3324883459?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/ea3c5dcf-05bd-4b1b-917f-cd3324883459?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/ea3c5dcf-05bd-4b1b-917f-cd3324883459?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "154", "155" ], @@ -237,10 +237,10 @@ "Content": "{\"name\":\"ea3c5dcf-05bd-4b1b-917f-cd3324883459\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:27:21.377Z\"}" } }, - "Remove-AzPostgreSqlServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/ea3c5dcf-05bd-4b1b-917f-cd3324883459?api-version=2017-12-01+7": { + "Remove-AzPostgreSqlServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/ea3c5dcf-05bd-4b1b-917f-cd3324883459?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/ea3c5dcf-05bd-4b1b-917f-cd3324883459?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/ea3c5dcf-05bd-4b1b-917f-cd3324883459?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "154", "155", "156" ], @@ -275,11 +275,11 @@ "Content": null } }, - "Remove-AzPostgreSqlServer+[NoContext]+DeleteViaIdentity+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresqldelete?api-version=2017-12-01+1": { + "Remove-AzPostgreSqlServer+[NoContext]+DeleteViaIdentity+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresqldelete?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresqldelete?api-version=2017-12-01", - "Content": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5_4\"\r\n },\r\n \"properties\": {\r\n \"createMode\": \"Default\",\r\n \"administratorLogin\": \"pwsh\",\r\n \"administratorLoginPassword\": \"Pa88word!\"\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresqldelete?api-version=2017-12-01", + "Content": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5_4\"\r\n },\r\n \"properties\": {\r\n \"createMode\": \"Default\",\r\n \"administratorLogin\": \"pwsh\",\r\n \"administratorLoginPassword\": \"Pa88word!\"\r\n },\r\n \"location\": \"eastus2euap\"\r\n}", "Headers": { }, "ContentHeaders": { @@ -292,9 +292,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/2b47f057-8051-4c3f-9f56-9439c4e880ef?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/2b47f057-8051-4c3f-9f56-9439c4e880ef?api-version=2017-12-01" ], "Retry-After": [ "60" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/2b47f057-8051-4c3f-9f56-9439c4e880ef?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/2b47f057-8051-4c3f-9f56-9439c4e880ef?api-version=2017-12-01" ], "x-ms-request-id": [ "2b47f057-8051-4c3f-9f56-9439c4e880ef" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1180" ], @@ -312,10 +312,10 @@ "Content": "{\"operation\":\"UpsertElasticServer\",\"startTime\":\"2020-09-25T11:27:43.883Z\"}" } }, - "Remove-AzPostgreSqlServer+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/2b47f057-8051-4c3f-9f56-9439c4e880ef?api-version=2017-12-01+2": { + "Remove-AzPostgreSqlServer+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/2b47f057-8051-4c3f-9f56-9439c4e880ef?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/2b47f057-8051-4c3f-9f56-9439c4e880ef?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/2b47f057-8051-4c3f-9f56-9439c4e880ef?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "157", "158" ], @@ -352,10 +352,10 @@ "Content": "{\"name\":\"2b47f057-8051-4c3f-9f56-9439c4e880ef\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:27:43.883Z\"}" } }, - "Remove-AzPostgreSqlServer+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/2b47f057-8051-4c3f-9f56-9439c4e880ef?api-version=2017-12-01+3": { + "Remove-AzPostgreSqlServer+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/2b47f057-8051-4c3f-9f56-9439c4e880ef?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/2b47f057-8051-4c3f-9f56-9439c4e880ef?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/2b47f057-8051-4c3f-9f56-9439c4e880ef?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "157", "158", "159" ], @@ -392,10 +392,10 @@ "Content": "{\"name\":\"2b47f057-8051-4c3f-9f56-9439c4e880ef\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:27:43.883Z\"}" } }, - "Remove-AzPostgreSqlServer+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresqldelete?api-version=2017-12-01+4": { + "Remove-AzPostgreSqlServer+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresqldelete?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresqldelete?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresqldelete?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "157", "158", "159", "160" ], @@ -428,13 +428,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"pwsh\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresqldelete.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:37:44.18+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresqldelete\",\"name\":\"postgresqldelete\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"pwsh\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresqldelete.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:37:44.18+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresqldelete\",\"name\":\"postgresqldelete\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "Remove-AzPostgreSqlServer+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresqldelete?api-version=2017-12-01+5": { + "Remove-AzPostgreSqlServer+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresqldelete?api-version=2017-12-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresqldelete?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresqldelete?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "161" ], @@ -453,9 +453,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/5475f3fb-6422-4483-8d3e-3a7943efe886?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/5475f3fb-6422-4483-8d3e-3a7943efe886?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/5475f3fb-6422-4483-8d3e-3a7943efe886?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/5475f3fb-6422-4483-8d3e-3a7943efe886?api-version=2017-12-01" ], "x-ms-request-id": [ "5475f3fb-6422-4483-8d3e-3a7943efe886" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14983" ], @@ -473,10 +473,10 @@ "Content": "{\"operation\":\"DropElasticServer\",\"startTime\":\"2020-09-25T11:29:46.773Z\"}" } }, - "Remove-AzPostgreSqlServer+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/5475f3fb-6422-4483-8d3e-3a7943efe886?api-version=2017-12-01+6": { + "Remove-AzPostgreSqlServer+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/5475f3fb-6422-4483-8d3e-3a7943efe886?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/5475f3fb-6422-4483-8d3e-3a7943efe886?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/5475f3fb-6422-4483-8d3e-3a7943efe886?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "161", "162" ], @@ -513,10 +513,10 @@ "Content": "{\"name\":\"5475f3fb-6422-4483-8d3e-3a7943efe886\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:29:46.773Z\"}" } }, - "Remove-AzPostgreSqlServer+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/5475f3fb-6422-4483-8d3e-3a7943efe886?api-version=2017-12-01+7": { + "Remove-AzPostgreSqlServer+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/5475f3fb-6422-4483-8d3e-3a7943efe886?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/5475f3fb-6422-4483-8d3e-3a7943efe886?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/5475f3fb-6422-4483-8d3e-3a7943efe886?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "161", "162", "163" ], diff --git a/src/PostgreSql/test/Remove-AzPostgreSqlServer.Tests.ps1 b/src/PostgreSql/test/Remove-AzPostgreSqlServer.Tests.ps1 index 16771b83d6b3..40fd6413c916 100644 --- a/src/PostgreSql/test/Remove-AzPostgreSqlServer.Tests.ps1 +++ b/src/PostgreSql/test/Remove-AzPostgreSqlServer.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Remove-AzPostgreSqlServer' { } | Should -Not -Throw } - It 'DeleteViaIdentity' { + It 'DeleteViaIdentity' -Skip { { #[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine")] $password = 'Pa88word!' | ConvertTo-SecureString -AsPlainText -Force diff --git a/src/PostgreSql/test/Remove-AzPostgreSqlVirtualNetworkRule.Recording.json b/src/PostgreSql/test/Remove-AzPostgreSqlVirtualNetworkRule.Recording.json index 2c3f7218091e..7183de3e8fdb 100644 --- a/src/PostgreSql/test/Remove-AzPostgreSqlVirtualNetworkRule.Recording.json +++ b/src/PostgreSql/test/Remove-AzPostgreSqlVirtualNetworkRule.Recording.json @@ -1,9 +1,9 @@ { - "Remove-AzPostgreSqlVirtualNetworkRule+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+1": { + "Remove-AzPostgreSqlVirtualNetworkRule+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", - "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1\"\r\n }\r\n}", "Headers": { }, "ContentHeaders": { @@ -16,9 +16,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/d476b08d-de51-4942-9ae0-9d15b2f32361?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/d476b08d-de51-4942-9ae0-9d15b2f32361?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/d476b08d-de51-4942-9ae0-9d15b2f32361?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/d476b08d-de51-4942-9ae0-9d15b2f32361?api-version=2017-12-01" ], "x-ms-request-id": [ "d476b08d-de51-4942-9ae0-9d15b2f32361" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1179" ], @@ -36,10 +36,10 @@ "Content": "{\"operation\":\"UpsertElasticServerVnetFirewallRule\",\"startTime\":\"2020-09-25T11:30:03.337Z\"}" } }, - "Remove-AzPostgreSqlVirtualNetworkRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/d476b08d-de51-4942-9ae0-9d15b2f32361?api-version=2017-12-01+2": { + "Remove-AzPostgreSqlVirtualNetworkRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/d476b08d-de51-4942-9ae0-9d15b2f32361?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/d476b08d-de51-4942-9ae0-9d15b2f32361?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/d476b08d-de51-4942-9ae0-9d15b2f32361?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "164", "165" ], @@ -76,10 +76,10 @@ "Content": "{\"name\":\"d476b08d-de51-4942-9ae0-9d15b2f32361\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:30:03.337Z\"}" } }, - "Remove-AzPostgreSqlVirtualNetworkRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+3": { + "Remove-AzPostgreSqlVirtualNetworkRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "164", "165", "166" ], @@ -112,13 +112,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBforPostgreSQL/servers/virtualNetworkRules\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBForPostgreSQL/servers/virtualNetworkRules\"}" } }, - "Remove-AzPostgreSqlVirtualNetworkRule+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+4": { + "Remove-AzPostgreSqlVirtualNetworkRule+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+4": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "167" ], @@ -137,9 +137,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/ba48bd1f-6faf-48b6-b022-10ee1b96ad72?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/ba48bd1f-6faf-48b6-b022-10ee1b96ad72?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/ba48bd1f-6faf-48b6-b022-10ee1b96ad72?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/ba48bd1f-6faf-48b6-b022-10ee1b96ad72?api-version=2017-12-01" ], "x-ms-request-id": [ "ba48bd1f-6faf-48b6-b022-10ee1b96ad72" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14982" ], @@ -157,10 +157,10 @@ "Content": "{\"operation\":\"DropElasticServerVnetFirewallRule\",\"startTime\":\"2020-09-25T11:30:35.523Z\"}" } }, - "Remove-AzPostgreSqlVirtualNetworkRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/ba48bd1f-6faf-48b6-b022-10ee1b96ad72?api-version=2017-12-01+5": { + "Remove-AzPostgreSqlVirtualNetworkRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/ba48bd1f-6faf-48b6-b022-10ee1b96ad72?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/ba48bd1f-6faf-48b6-b022-10ee1b96ad72?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/ba48bd1f-6faf-48b6-b022-10ee1b96ad72?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "167", "168" ], @@ -197,10 +197,10 @@ "Content": "{\"name\":\"ba48bd1f-6faf-48b6-b022-10ee1b96ad72\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:30:35.523Z\"}" } }, - "Remove-AzPostgreSqlVirtualNetworkRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/ba48bd1f-6faf-48b6-b022-10ee1b96ad72?api-version=2017-12-01+6": { + "Remove-AzPostgreSqlVirtualNetworkRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/ba48bd1f-6faf-48b6-b022-10ee1b96ad72?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/ba48bd1f-6faf-48b6-b022-10ee1b96ad72?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/ba48bd1f-6faf-48b6-b022-10ee1b96ad72?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "167", "168", "169" ], @@ -235,11 +235,11 @@ "Content": null } }, - "Remove-AzPostgreSqlVirtualNetworkRule+[NoContext]+DeleteViaIdentity+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+1": { + "Remove-AzPostgreSqlVirtualNetworkRule+[NoContext]+DeleteViaIdentity+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", - "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1\"\r\n }\r\n}", "Headers": { }, "ContentHeaders": { @@ -252,9 +252,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/6e016ede-aa82-4ef9-a706-65bf0f299ee2?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/6e016ede-aa82-4ef9-a706-65bf0f299ee2?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6e016ede-aa82-4ef9-a706-65bf0f299ee2?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6e016ede-aa82-4ef9-a706-65bf0f299ee2?api-version=2017-12-01" ], "x-ms-request-id": [ "6e016ede-aa82-4ef9-a706-65bf0f299ee2" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1178" ], @@ -272,10 +272,10 @@ "Content": "{\"operation\":\"UpsertElasticServerVnetFirewallRule\",\"startTime\":\"2020-09-25T11:30:52.773Z\"}" } }, - "Remove-AzPostgreSqlVirtualNetworkRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6e016ede-aa82-4ef9-a706-65bf0f299ee2?api-version=2017-12-01+2": { + "Remove-AzPostgreSqlVirtualNetworkRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6e016ede-aa82-4ef9-a706-65bf0f299ee2?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6e016ede-aa82-4ef9-a706-65bf0f299ee2?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6e016ede-aa82-4ef9-a706-65bf0f299ee2?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "170", "171" ], @@ -312,10 +312,10 @@ "Content": "{\"name\":\"6e016ede-aa82-4ef9-a706-65bf0f299ee2\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:30:52.773Z\"}" } }, - "Remove-AzPostgreSqlVirtualNetworkRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+3": { + "Remove-AzPostgreSqlVirtualNetworkRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "170", "171", "172" ], @@ -348,13 +348,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBforPostgreSQL/servers/virtualNetworkRules\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBForPostgreSQL/servers/virtualNetworkRules\"}" } }, - "Remove-AzPostgreSqlVirtualNetworkRule+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+4": { + "Remove-AzPostgreSqlVirtualNetworkRule+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+4": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "173" ], @@ -373,9 +373,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/6671ff01-d649-400b-ab32-38f951ef6299?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/6671ff01-d649-400b-ab32-38f951ef6299?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6671ff01-d649-400b-ab32-38f951ef6299?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6671ff01-d649-400b-ab32-38f951ef6299?api-version=2017-12-01" ], "x-ms-request-id": [ "6671ff01-d649-400b-ab32-38f951ef6299" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14981" ], @@ -393,10 +393,10 @@ "Content": "{\"operation\":\"DropElasticServerVnetFirewallRule\",\"startTime\":\"2020-09-25T11:31:25.133Z\"}" } }, - "Remove-AzPostgreSqlVirtualNetworkRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6671ff01-d649-400b-ab32-38f951ef6299?api-version=2017-12-01+5": { + "Remove-AzPostgreSqlVirtualNetworkRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6671ff01-d649-400b-ab32-38f951ef6299?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6671ff01-d649-400b-ab32-38f951ef6299?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6671ff01-d649-400b-ab32-38f951ef6299?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "173", "174" ], @@ -433,10 +433,10 @@ "Content": "{\"name\":\"6671ff01-d649-400b-ab32-38f951ef6299\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:31:25.133Z\"}" } }, - "Remove-AzPostgreSqlVirtualNetworkRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/6671ff01-d649-400b-ab32-38f951ef6299?api-version=2017-12-01+6": { + "Remove-AzPostgreSqlVirtualNetworkRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/6671ff01-d649-400b-ab32-38f951ef6299?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/6671ff01-d649-400b-ab32-38f951ef6299?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/6671ff01-d649-400b-ab32-38f951ef6299?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "173", "174", "175" ], diff --git a/src/PostgreSql/test/Remove-AzPostgreSqlVirtualNetworkRule.Tests.ps1 b/src/PostgreSql/test/Remove-AzPostgreSqlVirtualNetworkRule.Tests.ps1 index 9de060cfb880..9e367fa15a1d 100644 --- a/src/PostgreSql/test/Remove-AzPostgreSqlVirtualNetworkRule.Tests.ps1 +++ b/src/PostgreSql/test/Remove-AzPostgreSqlVirtualNetworkRule.Tests.ps1 @@ -13,15 +13,15 @@ while(-not $mockingPath) { Describe 'Remove-AzPostgreSqlVirtualNetworkRule' { It 'Delete' { - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1" + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1" New-AzPostgreSqlVirtualNetworkRule -Name $env.VNetName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -SubnetId $ID { Remove-AzPostgreSqlVirtualNetworkRule -Name $env.VNetName -ResourceGroupName $env.resourceGroup-ServerName $env.serverName } | Should -Not -Throw } - It 'DeleteViaIdentity' { - $VnetID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1" + It 'DeleteViaIdentity' -Skip { + $VnetID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1" New-AzPostgreSqlVirtualNetworkRule -Name $env.VNetName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -SubnetId $VnetID $RuleID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBforPostgreSQL/servers/$($env.serverName)/virtualNetworkRules/$($env.VNetName)" { diff --git a/src/PostgreSql/test/Restart-AzPostgreSqlFlexibleServer.Recording.json b/src/PostgreSql/test/Restart-AzPostgreSqlFlexibleServer.Recording.json new file mode 100644 index 000000000000..dea729ccb413 --- /dev/null +++ b/src/PostgreSql/test/Restart-AzPostgreSqlFlexibleServer.Recording.json @@ -0,0 +1,324 @@ +{ + "Restart-AzPostgreSqlFlexibleServer+[NoContext]+Restart+$POST+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/restart?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/restart?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "52fdb816-0e8e-4f9f-ae41-ec88ae19a2a0" ], + "CommandName": [ "Restart-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Restart-AzPostgreSqlFlexibleServer_Restart" ], + "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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/8b4dd334-f0d0-49d6-a6fc-2c82432a6450?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/8b4dd334-f0d0-49d6-a6fc-2c82432a6450?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8b4dd334-f0d0-49d6-a6fc-2c82432a6450" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "d394cede-2351-417a-844a-2332f5c0471d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T203908Z:d394cede-2351-417a-844a-2332f5c0471d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:39:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "87" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"RestartServerManagementOperation\",\"startTime\":\"2020-11-11T20:39:07.837Z\"}" + } + }, + "Restart-AzPostgreSqlFlexibleServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/8b4dd334-f0d0-49d6-a6fc-2c82432a6450?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/8b4dd334-f0d0-49d6-a6fc-2c82432a6450?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "52fdb816-0e8e-4f9f-ae41-ec88ae19a2a0" ], + "CommandName": [ "Restart-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Restart-AzPostgreSqlFlexibleServer_Restart" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8b92a379-0742-4646-ae18-d44d9296a9f3" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "88d4035c-33c7-4251-99d0-95c9cfd43d6a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204008Z:88d4035c-33c7-4251-99d0-95c9cfd43d6a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:40:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"8b4dd334-f0d0-49d6-a6fc-2c82432a6450\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T20:39:07.837Z\"}" + } + }, + "Restart-AzPostgreSqlFlexibleServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/8b4dd334-f0d0-49d6-a6fc-2c82432a6450?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/8b4dd334-f0d0-49d6-a6fc-2c82432a6450?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "52fdb816-0e8e-4f9f-ae41-ec88ae19a2a0" ], + "CommandName": [ "Restart-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Restart-AzPostgreSqlFlexibleServer_Restart" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "bc4adcaf-9f0b-4a63-a46f-a9ac97bac587" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "4fcfd472-9073-4e49-990d-ccbe440d5963" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204108Z:4fcfd472-9073-4e49-990d-ccbe440d5963" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:41:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"8b4dd334-f0d0-49d6-a6fc-2c82432a6450\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T20:39:07.837Z\"}" + } + }, + "Restart-AzPostgreSqlFlexibleServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/8b4dd334-f0d0-49d6-a6fc-2c82432a6450?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/8b4dd334-f0d0-49d6-a6fc-2c82432a6450?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "52fdb816-0e8e-4f9f-ae41-ec88ae19a2a0" ], + "CommandName": [ "Restart-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Restart-AzPostgreSqlFlexibleServer_Restart" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "77aed6ad-ce74-43fe-8e0c-bdeb07b47621" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "f29baa0b-da2e-446f-bcce-90aa0383fe29" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204109Z:f29baa0b-da2e-446f-bcce-90aa0383fe29" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:41:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "48" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"postgresql-flexible-test-100\",\"type\":\"PostgreSQL\"}" + } + }, + "Restart-AzPostgreSqlFlexibleServer+[NoContext]+RestartViaIdentity+$POST+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/restart?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/restart?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "90a2b379-8790-4df0-910c-079b11eec74e" ], + "CommandName": [ "Restart-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Restart-AzPostgreSqlFlexibleServer_RestartViaIdentity" ], + "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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/32cd6b29-57ad-4f46-a743-fb23b263341b?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/32cd6b29-57ad-4f46-a743-fb23b263341b?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "32cd6b29-57ad-4f46-a743-fb23b263341b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "70915cc4-c6d2-440f-9fc0-834845bff5c2" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204109Z:70915cc4-c6d2-440f-9fc0-834845bff5c2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:41:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "87" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"RestartServerManagementOperation\",\"startTime\":\"2020-11-11T20:41:09.377Z\"}" + } + }, + "Restart-AzPostgreSqlFlexibleServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/32cd6b29-57ad-4f46-a743-fb23b263341b?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/32cd6b29-57ad-4f46-a743-fb23b263341b?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "90a2b379-8790-4df0-910c-079b11eec74e" ], + "CommandName": [ "Restart-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Restart-AzPostgreSqlFlexibleServer_RestartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0e2330e5-6ab8-4171-9c55-014c92ef1b76" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "50f70512-acff-4834-b782-312602b4c823" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204210Z:50f70512-acff-4834-b782-312602b4c823" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:42:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"32cd6b29-57ad-4f46-a743-fb23b263341b\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T20:41:09.377Z\"}" + } + }, + "Restart-AzPostgreSqlFlexibleServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/32cd6b29-57ad-4f46-a743-fb23b263341b?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/32cd6b29-57ad-4f46-a743-fb23b263341b?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "90a2b379-8790-4df0-910c-079b11eec74e" ], + "CommandName": [ "Restart-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Restart-AzPostgreSqlFlexibleServer_RestartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6fb607c6-0753-42ee-b3c0-c76caac34258" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "a23c0025-e1af-4a33-a515-4db98fd03d7c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204310Z:a23c0025-e1af-4a33-a515-4db98fd03d7c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:43:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"32cd6b29-57ad-4f46-a743-fb23b263341b\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T20:41:09.377Z\"}" + } + }, + "Restart-AzPostgreSqlFlexibleServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/32cd6b29-57ad-4f46-a743-fb23b263341b?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/32cd6b29-57ad-4f46-a743-fb23b263341b?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "23" ], + "x-ms-client-request-id": [ "90a2b379-8790-4df0-910c-079b11eec74e" ], + "CommandName": [ "Restart-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Restart-AzPostgreSqlFlexibleServer_RestartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "fe553573-7311-4471-8199-39687059939d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "2bd4bbee-e56b-4db7-bd4e-b3e7dea467bc" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204310Z:2bd4bbee-e56b-4db7-bd4e-b3e7dea467bc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:43:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "48" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"postgresql-flexible-test-100\",\"type\":\"PostgreSQL\"}" + } + } +} \ No newline at end of file diff --git a/src/PostgreSql/test/Restart-AzPostgreSqlFlexibleServer.Tests.ps1 b/src/PostgreSql/test/Restart-AzPostgreSqlFlexibleServer.Tests.ps1 new file mode 100644 index 000000000000..74fce6bdcae0 --- /dev/null +++ b/src/PostgreSql/test/Restart-AzPostgreSqlFlexibleServer.Tests.ps1 @@ -0,0 +1,27 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Restart-AzPostgreSqlFlexibleServer.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Restart-AzPostgreSqlFlexibleServer' { + It 'Restart' { + { + Restart-AzPostgreSqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.flexibleServerName + } | Should -Not -Throw + } + + It 'RestartViaIdentity' { + { + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForPostgreSql/flexibleServers/$($env.flexibleServerName)/restart" + Restart-AzPostgreSqlFlexibleServer -InputObject $ID + } | Should -Not -Throw + } +} diff --git a/src/PostgreSql/test/Restart-AzPostgreSqlServer.Recording.json b/src/PostgreSql/test/Restart-AzPostgreSqlServer.Recording.json index c7894efa15d7..ccf2e27f88f7 100644 --- a/src/PostgreSql/test/Restart-AzPostgreSqlServer.Recording.json +++ b/src/PostgreSql/test/Restart-AzPostgreSqlServer.Recording.json @@ -1,8 +1,8 @@ { - "Restart-AzPostgreSqlServer+[NoContext]+Restart+$POST+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/restart?api-version=2017-12-01+1": { + "Restart-AzPostgreSqlServer+[NoContext]+Restart+$POST+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/restart?api-version=2017-12-01+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/restart?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/restart?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "176" ], @@ -21,9 +21,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01" ], "x-ms-request-id": [ "6657b98a-0363-4cc7-89ac-3a1906ebec9c" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], @@ -41,10 +41,10 @@ "Content": "{\"operation\":\"RestartElasticServer\",\"startTime\":\"2020-09-25T11:31:42.713Z\"}" } }, - "Restart-AzPostgreSqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01+2": { + "Restart-AzPostgreSqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "176", "177" ], @@ -81,10 +81,10 @@ "Content": "{\"name\":\"6657b98a-0363-4cc7-89ac-3a1906ebec9c\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:31:42.713Z\"}" } }, - "Restart-AzPostgreSqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01+3": { + "Restart-AzPostgreSqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "176", "177", "178" ], @@ -121,10 +121,10 @@ "Content": "{\"name\":\"6657b98a-0363-4cc7-89ac-3a1906ebec9c\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:31:42.713Z\"}" } }, - "Restart-AzPostgreSqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01+4": { + "Restart-AzPostgreSqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "176", "177", "178", "179" ], @@ -161,10 +161,10 @@ "Content": "{\"name\":\"6657b98a-0363-4cc7-89ac-3a1906ebec9c\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:31:42.713Z\"}" } }, - "Restart-AzPostgreSqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01+5": { + "Restart-AzPostgreSqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "176", "177", "178", "179", "180" ], @@ -201,10 +201,10 @@ "Content": "{\"name\":\"6657b98a-0363-4cc7-89ac-3a1906ebec9c\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:31:42.713Z\"}" } }, - "Restart-AzPostgreSqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01+6": { + "Restart-AzPostgreSqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "176", "177", "178", "179", "180", "181" ], @@ -241,10 +241,10 @@ "Content": "{\"name\":\"6657b98a-0363-4cc7-89ac-3a1906ebec9c\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:31:42.713Z\"}" } }, - "Restart-AzPostgreSqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01+7": { + "Restart-AzPostgreSqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "176", "177", "178", "179", "180", "181", "182" ], @@ -281,10 +281,10 @@ "Content": "{\"name\":\"6657b98a-0363-4cc7-89ac-3a1906ebec9c\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:31:42.713Z\"}" } }, - "Restart-AzPostgreSqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01+8": { + "Restart-AzPostgreSqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "176", "177", "178", "179", "180", "181", "182", "183" ], @@ -321,10 +321,10 @@ "Content": "{\"name\":\"6657b98a-0363-4cc7-89ac-3a1906ebec9c\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:31:42.713Z\"}" } }, - "Restart-AzPostgreSqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01+9": { + "Restart-AzPostgreSqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "176", "177", "178", "179", "180", "181", "182", "183", "184" ], @@ -361,10 +361,10 @@ "Content": "{\"name\":\"6657b98a-0363-4cc7-89ac-3a1906ebec9c\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:31:42.713Z\"}" } }, - "Restart-AzPostgreSqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01+10": { + "Restart-AzPostgreSqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/6657b98a-0363-4cc7-89ac-3a1906ebec9c?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "176", "177", "178", "179", "180", "181", "182", "183", "184", "185" ], @@ -399,10 +399,10 @@ "Content": null } }, - "Restart-AzPostgreSqlServer+[NoContext]+RestartViaIdentity+$POST+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/restart?api-version=2017-12-01+1": { + "Restart-AzPostgreSqlServer+[NoContext]+RestartViaIdentity+$POST+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/restart?api-version=2017-12-01+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/restart?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/restart?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "186" ], @@ -421,9 +421,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01" ], "x-ms-request-id": [ "06fe70cb-50ec-442f-a66b-e02a36765c41" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], @@ -441,10 +441,10 @@ "Content": "{\"operation\":\"RestartElasticServer\",\"startTime\":\"2020-09-25T11:33:46.387Z\"}" } }, - "Restart-AzPostgreSqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01+2": { + "Restart-AzPostgreSqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "186", "187" ], @@ -481,10 +481,10 @@ "Content": "{\"name\":\"06fe70cb-50ec-442f-a66b-e02a36765c41\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:33:46.387Z\"}" } }, - "Restart-AzPostgreSqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01+3": { + "Restart-AzPostgreSqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "186", "187", "188" ], @@ -521,10 +521,10 @@ "Content": "{\"name\":\"06fe70cb-50ec-442f-a66b-e02a36765c41\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:33:46.387Z\"}" } }, - "Restart-AzPostgreSqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01+4": { + "Restart-AzPostgreSqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "186", "187", "188", "189" ], @@ -561,10 +561,10 @@ "Content": "{\"name\":\"06fe70cb-50ec-442f-a66b-e02a36765c41\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:33:46.387Z\"}" } }, - "Restart-AzPostgreSqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01+5": { + "Restart-AzPostgreSqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "186", "187", "188", "189", "190" ], @@ -601,10 +601,10 @@ "Content": "{\"name\":\"06fe70cb-50ec-442f-a66b-e02a36765c41\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:33:46.387Z\"}" } }, - "Restart-AzPostgreSqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01+6": { + "Restart-AzPostgreSqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "186", "187", "188", "189", "190", "191" ], @@ -641,10 +641,10 @@ "Content": "{\"name\":\"06fe70cb-50ec-442f-a66b-e02a36765c41\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:33:46.387Z\"}" } }, - "Restart-AzPostgreSqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01+7": { + "Restart-AzPostgreSqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "186", "187", "188", "189", "190", "191", "192" ], @@ -681,10 +681,10 @@ "Content": "{\"name\":\"06fe70cb-50ec-442f-a66b-e02a36765c41\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:33:46.387Z\"}" } }, - "Restart-AzPostgreSqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01+8": { + "Restart-AzPostgreSqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "186", "187", "188", "189", "190", "191", "192", "193" ], @@ -721,10 +721,10 @@ "Content": "{\"name\":\"06fe70cb-50ec-442f-a66b-e02a36765c41\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:33:46.387Z\"}" } }, - "Restart-AzPostgreSqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01+9": { + "Restart-AzPostgreSqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "186", "187", "188", "189", "190", "191", "192", "193", "194" ], @@ -761,10 +761,10 @@ "Content": "{\"name\":\"06fe70cb-50ec-442f-a66b-e02a36765c41\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:33:46.387Z\"}" } }, - "Restart-AzPostgreSqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01+10": { + "Restart-AzPostgreSqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/06fe70cb-50ec-442f-a66b-e02a36765c41?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "186", "187", "188", "189", "190", "191", "192", "193", "194", "195" ], diff --git a/src/PostgreSql/test/Restart-AzPostgreSqlServer.Tests.ps1 b/src/PostgreSql/test/Restart-AzPostgreSqlServer.Tests.ps1 index 5ab805859e30..c0044b080ebd 100644 --- a/src/PostgreSql/test/Restart-AzPostgreSqlServer.Tests.ps1 +++ b/src/PostgreSql/test/Restart-AzPostgreSqlServer.Tests.ps1 @@ -18,7 +18,7 @@ Describe 'Restart-AzPostgreSqlServer' { } | Should -Not -Throw } - It 'RestartViaIdentity' { + It 'RestartViaIdentity' -Skip { { $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBforPostgreSQL/servers/$($env.serverName)/restart" Restart-AzPostgreSqlServer -InputObject $ID diff --git a/src/PostgreSql/test/Restore-AzPostgreSqlFlexibleServer.Recording.json b/src/PostgreSql/test/Restore-AzPostgreSqlFlexibleServer.Recording.json new file mode 100644 index 000000000000..56136e31182a --- /dev/null +++ b/src/PostgreSql/test/Restore-AzPostgreSqlFlexibleServer.Recording.json @@ -0,0 +1,358 @@ +{ + "Restore-AzPostgreSqlFlexibleServer+[NoContext]+PointInTimeRestore+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-100-restore?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-100-restore?api-version=2020-02-14-preview", + "Content": "{\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"sourceServerName\": \"postgresql-flexible-test-100\",\r\n \"pointInTimeUTC\": \"2020-11-11T22:33:58.6974190-08:00\",\r\n \"createMode\": \"PointInTimeRestore\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "199" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/f7ec74f0-fe23-413b-9fe5-61cb35db2c0d?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f7ec74f0-fe23-413b-9fe5-61cb35db2c0d?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "652d4b40-23a0-43e1-878b-62495364929f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "9166a5b8-a1c0-4e66-90d9-326ce8a42803" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T064400Z:9166a5b8-a1c0-4e66-90d9-326ce8a42803" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:44:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "89" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"RestoreSnapshotManagementOperation\",\"startTime\":\"2020-11-12T06:44:00.093Z\"}" + } + }, + "Restore-AzPostgreSqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f7ec74f0-fe23-413b-9fe5-61cb35db2c0d?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f7ec74f0-fe23-413b-9fe5-61cb35db2c0d?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "fa268d63-92c3-4504-abc6-e372d541f9ba" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "511a0dc4-22de-4653-909f-2c9845a30738" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "83759e3d-45ee-4111-ba90-2bcfb457546f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T064500Z:83759e3d-45ee-4111-ba90-2bcfb457546f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:45:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f7ec74f0-fe23-413b-9fe5-61cb35db2c0d\",\"status\":\"InProgress\",\"startTime\":\"2020-11-12T06:44:00.093Z\"}" + } + }, + "Restore-AzPostgreSqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f7ec74f0-fe23-413b-9fe5-61cb35db2c0d?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f7ec74f0-fe23-413b-9fe5-61cb35db2c0d?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "fa268d63-92c3-4504-abc6-e372d541f9ba" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "87c48a90-f694-4dd1-8204-81e87780fa5e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "fa604234-14d4-4421-8a36-4249aae99120" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T064601Z:fa604234-14d4-4421-8a36-4249aae99120" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:46:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f7ec74f0-fe23-413b-9fe5-61cb35db2c0d\",\"status\":\"InProgress\",\"startTime\":\"2020-11-12T06:44:00.093Z\"}" + } + }, + "Restore-AzPostgreSqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f7ec74f0-fe23-413b-9fe5-61cb35db2c0d?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f7ec74f0-fe23-413b-9fe5-61cb35db2c0d?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "fa268d63-92c3-4504-abc6-e372d541f9ba" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9f5c07a7-cc83-492f-a8cb-c46627b63c89" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "9138843d-16b9-4109-8fa7-a33434a6924a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T064701Z:9138843d-16b9-4109-8fa7-a33434a6924a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:47:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f7ec74f0-fe23-413b-9fe5-61cb35db2c0d\",\"status\":\"InProgress\",\"startTime\":\"2020-11-12T06:44:00.093Z\"}" + } + }, + "Restore-AzPostgreSqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f7ec74f0-fe23-413b-9fe5-61cb35db2c0d?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f7ec74f0-fe23-413b-9fe5-61cb35db2c0d?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "fa268d63-92c3-4504-abc6-e372d541f9ba" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "53c9d4cf-bf2c-47ae-b1a0-1f10f7ff2e3b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "e12c9686-22d8-45fb-9ded-e5923be43a12" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T064802Z:e12c9686-22d8-45fb-9ded-e5923be43a12" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:48:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f7ec74f0-fe23-413b-9fe5-61cb35db2c0d\",\"status\":\"InProgress\",\"startTime\":\"2020-11-12T06:44:00.093Z\"}" + } + }, + "Restore-AzPostgreSqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f7ec74f0-fe23-413b-9fe5-61cb35db2c0d?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f7ec74f0-fe23-413b-9fe5-61cb35db2c0d?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "fa268d63-92c3-4504-abc6-e372d541f9ba" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8955cc34-f59b-4420-926b-ccdfffbe3ae5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "0e852938-dbeb-46a4-90ae-36977d2a75f2" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T064902Z:0e852938-dbeb-46a4-90ae-36977d2a75f2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:49:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f7ec74f0-fe23-413b-9fe5-61cb35db2c0d\",\"status\":\"InProgress\",\"startTime\":\"2020-11-12T06:44:00.093Z\"}" + } + }, + "Restore-AzPostgreSqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f7ec74f0-fe23-413b-9fe5-61cb35db2c0d?api-version=2020-02-14-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f7ec74f0-fe23-413b-9fe5-61cb35db2c0d?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "fa268d63-92c3-4504-abc6-e372d541f9ba" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4de40ad7-3d83-48ae-ba9a-976f76efd8a1" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "96cf066c-4102-41fa-aecf-9043023cee75" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T065003Z:96cf066c-4102-41fa-aecf-9043023cee75" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:50:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f7ec74f0-fe23-413b-9fe5-61cb35db2c0d\",\"status\":\"InProgress\",\"startTime\":\"2020-11-12T06:44:00.093Z\"}" + } + }, + "Restore-AzPostgreSqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f7ec74f0-fe23-413b-9fe5-61cb35db2c0d?api-version=2020-02-14-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f7ec74f0-fe23-413b-9fe5-61cb35db2c0d?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "fa268d63-92c3-4504-abc6-e372d541f9ba" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "15539fcb-5445-4b5f-ad0a-b910dd34d364" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "cce4e2ca-fc70-42fb-9220-7e0a19fe1d11" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T065103Z:cce4e2ca-fc70-42fb-9220-7e0a19fe1d11" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:51:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f7ec74f0-fe23-413b-9fe5-61cb35db2c0d\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-12T06:44:00.093Z\"}" + } + }, + "Restore-AzPostgreSqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-100-restore?api-version=2020-02-14-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test-100-restore?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "fa268d63-92c3-4504-abc6-e372d541f9ba" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "89c147f9-613f-4dc8-b697-8a18767a873b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "6075f5fb-39e9-49b4-9d6c-9cf998d94372" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T065103Z:6075f5fb-39e9-49b4-9d6c-9cf998d94372" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:51:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "900" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-test-100-restore.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"adminuser\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"1\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":7},\"earliestRestoreDate\":\"2020-11-12T06:51:03.9165911+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-test-100-restore\",\"name\":\"postgresql-test-100-restore\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + } +} \ No newline at end of file diff --git a/src/PostgreSql/test/Restore-AzPostgreSqlFlexibleServer.Tests.ps1 b/src/PostgreSql/test/Restore-AzPostgreSqlFlexibleServer.Tests.ps1 new file mode 100644 index 000000000000..71171bcaff26 --- /dev/null +++ b/src/PostgreSql/test/Restore-AzPostgreSqlFlexibleServer.Tests.ps1 @@ -0,0 +1,21 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Restore-AzPostgreSqlFlexibleServer.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Restore-AzPostgreSqlFlexibleServer' { + It 'PointInTimeRestore' { + { + $restorePointInTime = (Get-Date).AddMinutes(-10) + Restore-AzPostgreSqlFlexibleServer -SourceServerName $env.flexibleServerName -Location $env.location -Name $env.restoreName -ResourceGroupName $env.resourceGroup -RestorePointInTime $restorePointInTime + } | Should -Not -Throw + } +} diff --git a/src/PostgreSql/test/Restore-AzPostgreSqlServer.Recording.json b/src/PostgreSql/test/Restore-AzPostgreSqlServer.Recording.json index 088b8f875d60..f41ea28ff074 100644 --- a/src/PostgreSql/test/Restore-AzPostgreSqlServer.Recording.json +++ b/src/PostgreSql/test/Restore-AzPostgreSqlServer.Recording.json @@ -1,8 +1,8 @@ { - "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+1": { + "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "196" ], @@ -35,14 +35,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01+2": { + "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01", - "Content": "{\r\n \"properties\": {\r\n \"createMode\": \"Replica\",\r\n \"sourceServerId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\"\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01", + "Content": "{\r\n \"properties\": {\r\n \"createMode\": \"Replica\",\r\n \"sourceServerId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\"\r\n },\r\n \"location\": \"eastus2euap\"\r\n}", "Headers": { }, "ContentHeaders": { @@ -55,9 +55,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01" ], "x-ms-request-id": [ "04bf9aff-46cc-48c5-a470-2a8c7f5d16c8" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1177" ], @@ -75,10 +75,10 @@ "Content": "{\"operation\":\"CreateElasticServerContinuousCopy\",\"startTime\":\"2020-09-25T11:35:56.307Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01+3": { + "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "197", "198" ], @@ -115,10 +115,10 @@ "Content": "{\"name\":\"04bf9aff-46cc-48c5-a470-2a8c7f5d16c8\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:35:56.307Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01+4": { + "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "197", "198", "199" ], @@ -155,10 +155,10 @@ "Content": "{\"name\":\"04bf9aff-46cc-48c5-a470-2a8c7f5d16c8\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:35:56.307Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01+5": { + "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "197", "198", "199", "200" ], @@ -195,10 +195,10 @@ "Content": "{\"name\":\"04bf9aff-46cc-48c5-a470-2a8c7f5d16c8\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:35:56.307Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01+6": { + "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "197", "198", "199", "200", "201" ], @@ -235,10 +235,10 @@ "Content": "{\"name\":\"04bf9aff-46cc-48c5-a470-2a8c7f5d16c8\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:35:56.307Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01+7": { + "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "197", "198", "199", "200", "201", "202" ], @@ -275,10 +275,10 @@ "Content": "{\"name\":\"04bf9aff-46cc-48c5-a470-2a8c7f5d16c8\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:35:56.307Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01+8": { + "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "197", "198", "199", "200", "201", "202", "203" ], @@ -315,10 +315,10 @@ "Content": "{\"name\":\"04bf9aff-46cc-48c5-a470-2a8c7f5d16c8\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:35:56.307Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01+9": { + "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "197", "198", "199", "200", "201", "202", "203", "204" ], @@ -355,10 +355,10 @@ "Content": "{\"name\":\"04bf9aff-46cc-48c5-a470-2a8c7f5d16c8\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:35:56.307Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01+10": { + "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "197", "198", "199", "200", "201", "202", "203", "204", "205" ], @@ -395,10 +395,10 @@ "Content": "{\"name\":\"04bf9aff-46cc-48c5-a470-2a8c7f5d16c8\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:35:56.307Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01+11": { + "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "197", "198", "199", "200", "201", "202", "203", "204", "205", "206" ], @@ -435,10 +435,10 @@ "Content": "{\"name\":\"04bf9aff-46cc-48c5-a470-2a8c7f5d16c8\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:35:56.307Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01+12": { + "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "197", "198", "199", "200", "201", "202", "203", "204", "205", "206", "207" ], @@ -475,10 +475,10 @@ "Content": "{\"name\":\"04bf9aff-46cc-48c5-a470-2a8c7f5d16c8\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:35:56.307Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01+13": { + "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "197", "198", "199", "200", "201", "202", "203", "204", "205", "206", "207", "208" ], @@ -515,10 +515,10 @@ "Content": "{\"name\":\"04bf9aff-46cc-48c5-a470-2a8c7f5d16c8\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:35:56.307Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01+14": { + "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01+14": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/04bf9aff-46cc-48c5-a470-2a8c7f5d16c8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "197", "198", "199", "200", "201", "202", "203", "204", "205", "206", "207", "208", "209" ], @@ -555,10 +555,10 @@ "Content": "{\"name\":\"04bf9aff-46cc-48c5-a470-2a8c7f5d16c8\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:35:56.307Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01+15": { + "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01+15": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-replica?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "197", "198", "199", "200", "201", "202", "203", "204", "205", "206", "207", "208", "209", "210" ], @@ -591,14 +591,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Enabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100-replica.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:47:10.137+00:00\",\"replicationRole\":\"Replica\",\"masterServerId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"replicaCapacity\":0,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-replica\",\"name\":\"postgresql-test-100-replica\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Enabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100-replica.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:47:10.137+00:00\",\"replicationRole\":\"Replica\",\"masterServerId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"replicaCapacity\":0,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-replica\",\"name\":\"postgresql-test-100-replica\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+16": { + "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+16": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", - "Content": "{\r\n \"properties\": {\r\n \"createMode\": \"GeoRestore\",\r\n \"sourceServerId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-replica\"\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", + "Content": "{\r\n \"properties\": {\r\n \"createMode\": \"GeoRestore\",\r\n \"sourceServerId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-replica\"\r\n },\r\n \"location\": \"eastus2euap\"\r\n}", "Headers": { }, "ContentHeaders": { @@ -611,9 +611,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/30c7d1f9-0ff6-4392-8c4a-78bc4477ad83?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/30c7d1f9-0ff6-4392-8c4a-78bc4477ad83?api-version=2017-12-01" ], "Retry-After": [ "10" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/30c7d1f9-0ff6-4392-8c4a-78bc4477ad83?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/30c7d1f9-0ff6-4392-8c4a-78bc4477ad83?api-version=2017-12-01" ], "x-ms-request-id": [ "30c7d1f9-0ff6-4392-8c4a-78bc4477ad83" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1176" ], @@ -628,13 +628,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"operation\":\"RestoreElasticServer\",\"startTime\":\"2020-09-25T11:42:03.47Z\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"Master\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/30c7d1f9-0ff6-4392-8c4a-78bc4477ad83?api-version=2017-12-01+17": { + "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/30c7d1f9-0ff6-4392-8c4a-78bc4477ad83?api-version=2017-12-01+17": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/30c7d1f9-0ff6-4392-8c4a-78bc4477ad83?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/30c7d1f9-0ff6-4392-8c4a-78bc4477ad83?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "211", "212" ], @@ -668,13 +668,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"name\":\"30c7d1f9-0ff6-4392-8c4a-78bc4477ad83\",\"status\":\"Failed\",\"startTime\":\"2020-09-25T11:42:03.47Z\",\"error\":{\"code\":\"SubscriptionDoesNotHaveServer\",\"message\":\"Subscription \u00279e223dbe-3399-4e19-88eb-0975f02ac87f\u0027 does not have the server \u0027postgresql-test-100-replica\u0027.\"}}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"Master\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+18": { + "Restore-AzPostgreSqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+18": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "211", "212", "213" ], @@ -707,13 +707,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"Master\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"Master\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+1": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "214" ], @@ -746,14 +746,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"Master\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"Master\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-restore-2?api-version=2017-12-01+2": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-restore-2?api-version=2017-12-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-restore-2?api-version=2017-12-01", - "Content": "{\r\n \"properties\": {\r\n \"createMode\": \"PointInTimeRestore\",\r\n \"sourceServerId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\r\n \"restorePointInTime\": \"2020-09-25T19:32:14.5943302+08:00\"\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-restore-2?api-version=2017-12-01", + "Content": "{\r\n \"properties\": {\r\n \"createMode\": \"PointInTimeRestore\",\r\n \"sourceServerId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\r\n \"restorePointInTime\": \"2020-09-25T19:32:14.5943302+08:00\"\r\n },\r\n \"location\": \"eastus2euap\"\r\n}", "Headers": { }, "ContentHeaders": { @@ -766,9 +766,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01" ], "Retry-After": [ "10" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01" ], "x-ms-request-id": [ "e4bb851b-cf32-4cee-912e-1d2cb5af1024" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1175" ], @@ -786,10 +786,10 @@ "Content": "{\"operation\":\"RestoreElasticServer\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+3": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216" ], @@ -826,10 +826,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+4": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217" ], @@ -866,10 +866,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+5": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218" ], @@ -906,10 +906,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+6": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219" ], @@ -946,10 +946,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+7": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220" ], @@ -986,10 +986,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+8": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221" ], @@ -1026,10 +1026,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+9": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222" ], @@ -1066,10 +1066,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+10": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223" ], @@ -1106,10 +1106,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+11": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224" ], @@ -1146,10 +1146,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+12": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225" ], @@ -1186,10 +1186,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+13": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226" ], @@ -1226,10 +1226,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+14": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+14": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227" ], @@ -1266,10 +1266,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+15": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+15": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228" ], @@ -1306,10 +1306,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+16": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+16": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229" ], @@ -1346,10 +1346,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+17": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+17": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230" ], @@ -1386,10 +1386,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+18": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+18": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231" ], @@ -1426,10 +1426,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+19": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+19": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232" ], @@ -1466,10 +1466,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+20": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+20": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233" ], @@ -1506,10 +1506,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+21": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+21": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234" ], @@ -1546,10 +1546,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+22": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+22": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235" ], @@ -1586,10 +1586,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+23": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+23": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236" ], @@ -1626,10 +1626,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+24": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+24": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236", "237" ], @@ -1666,10 +1666,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+25": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+25": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236", "237", "238" ], @@ -1706,10 +1706,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+26": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+26": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236", "237", "238", "239" ], @@ -1746,10 +1746,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+27": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+27": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236", "237", "238", "239", "240" ], @@ -1786,10 +1786,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+28": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+28": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236", "237", "238", "239", "240", "241" ], @@ -1826,10 +1826,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+29": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+29": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236", "237", "238", "239", "240", "241", "242" ], @@ -1866,10 +1866,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+30": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+30": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236", "237", "238", "239", "240", "241", "242", "243" ], @@ -1906,10 +1906,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+31": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+31": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236", "237", "238", "239", "240", "241", "242", "243", "244" ], @@ -1946,10 +1946,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+32": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+32": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236", "237", "238", "239", "240", "241", "242", "243", "244", "245" ], @@ -1986,10 +1986,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+33": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+33": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236", "237", "238", "239", "240", "241", "242", "243", "244", "245", "246" ], @@ -2026,10 +2026,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+34": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+34": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236", "237", "238", "239", "240", "241", "242", "243", "244", "245", "246", "247" ], @@ -2066,10 +2066,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+35": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+35": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236", "237", "238", "239", "240", "241", "242", "243", "244", "245", "246", "247", "248" ], @@ -2106,10 +2106,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+36": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+36": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236", "237", "238", "239", "240", "241", "242", "243", "244", "245", "246", "247", "248", "249" ], @@ -2146,10 +2146,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+37": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+37": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236", "237", "238", "239", "240", "241", "242", "243", "244", "245", "246", "247", "248", "249", "250" ], @@ -2186,10 +2186,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+38": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+38": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236", "237", "238", "239", "240", "241", "242", "243", "244", "245", "246", "247", "248", "249", "250", "251" ], @@ -2226,10 +2226,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+39": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+39": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236", "237", "238", "239", "240", "241", "242", "243", "244", "245", "246", "247", "248", "249", "250", "251", "252" ], @@ -2266,10 +2266,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+40": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+40": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236", "237", "238", "239", "240", "241", "242", "243", "244", "245", "246", "247", "248", "249", "250", "251", "252", "253" ], @@ -2306,10 +2306,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"InProgress\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+41": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01+41": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/e4bb851b-cf32-4cee-912e-1d2cb5af1024?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236", "237", "238", "239", "240", "241", "242", "243", "244", "245", "246", "247", "248", "249", "250", "251", "252", "253", "254" ], @@ -2346,10 +2346,10 @@ "Content": "{\"name\":\"e4bb851b-cf32-4cee-912e-1d2cb5af1024\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:42:20.11Z\"}" } }, - "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-restore-2?api-version=2017-12-01+42": { + "Restore-AzPostgreSqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-restore-2?api-version=2017-12-01+42": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-restore-2?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-restore-2?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236", "237", "238", "239", "240", "241", "242", "243", "244", "245", "246", "247", "248", "249", "250", "251", "252", "253", "254", "255" ], @@ -2382,7 +2382,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100-restore-2.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:52:20.423+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100-restore-2\",\"name\":\"postgresql-test-100-restore-2\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100-restore-2.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:52:20.423+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100-restore-2\",\"name\":\"postgresql-test-100-restore-2\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } } } \ No newline at end of file diff --git a/src/PostgreSql/test/Restore-AzPostgreSqlServer.Tests.ps1 b/src/PostgreSql/test/Restore-AzPostgreSqlServer.Tests.ps1 index 877e4f0f72f5..81aba671b82b 100644 --- a/src/PostgreSql/test/Restore-AzPostgreSqlServer.Tests.ps1 +++ b/src/PostgreSql/test/Restore-AzPostgreSqlServer.Tests.ps1 @@ -14,10 +14,8 @@ while(-not $mockingPath) { # !Important: some test cases are skipped and require to be recorded again # See https://github.com/Azure/autorest.powershell/issues/580 Describe 'Restore-AzPostgreSqlServer' { - It 'GeoRestore' -Skip { + It 'GeoRestore' { $replica = Get-AzPostgreSqlServer -ResourceGroupName $env.resourceGroup -ServerName $env.serverName | New-AzPostgreSqlReplica -Name $env.replicaName -ResourceGroupName $env.resourceGroup - # Possible bug: above line should be - # $replica = Get-AzPostgreSqlServer -ResourceGroupName $env.resourceGroup -ServerName $env.serverName | Get-AzPostgreSqlReplica -Name $env.replicaName -ResourceGroupName $env.resourceGroup $restoreServer = Restore-AzPostgreSqlServer -Name $env.serverName -ResourceGroupName $env.resourceGroup -InputObject $replica -UseGeoRestore $restoreServer.Name | Should -Be $env.serverName $restoreServer.SkuName | Should -Be $env.Sku diff --git a/src/PostgreSql/test/Start-AzPostgreSqlFlexibleServer.Recording.json b/src/PostgreSql/test/Start-AzPostgreSqlFlexibleServer.Recording.json new file mode 100644 index 000000000000..80a1fae6258e --- /dev/null +++ b/src/PostgreSql/test/Start-AzPostgreSqlFlexibleServer.Recording.json @@ -0,0 +1,646 @@ +{ + "Start-AzPostgreSqlFlexibleServer+[NoContext]+Start+$POST+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/stop?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/stop?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "24" ], + "x-ms-client-request-id": [ "d549100c-5500-49c0-9a9d-f80c62e4b099" ], + "CommandName": [ "Stop-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzPostgreSqlFlexibleServer_Stop" ], + "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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/4d248a66-f94b-49e0-b43a-e9f8bcb95dfe?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/4d248a66-f94b-49e0-b43a-e9f8bcb95dfe?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4d248a66-f94b-49e0-b43a-e9f8bcb95dfe" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "4c1b721c-db3f-4787-b1fd-a19b61a2344c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204311Z:4c1b721c-db3f-4787-b1fd-a19b61a2344c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:43:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"StopServerManagementOperation\",\"startTime\":\"2020-11-11T20:43:11.457Z\"}" + } + }, + "Start-AzPostgreSqlFlexibleServer+[NoContext]+Start+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/4d248a66-f94b-49e0-b43a-e9f8bcb95dfe?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/4d248a66-f94b-49e0-b43a-e9f8bcb95dfe?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "25" ], + "x-ms-client-request-id": [ "d549100c-5500-49c0-9a9d-f80c62e4b099" ], + "CommandName": [ "Stop-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzPostgreSqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "966371b8-52e2-4846-8c5e-8d8209fb1dd1" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "ab631300-fc89-43a2-a836-d6de86fa468a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204412Z:ab631300-fc89-43a2-a836-d6de86fa468a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:44:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"4d248a66-f94b-49e0-b43a-e9f8bcb95dfe\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T20:43:11.457Z\"}" + } + }, + "Start-AzPostgreSqlFlexibleServer+[NoContext]+Start+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/4d248a66-f94b-49e0-b43a-e9f8bcb95dfe?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/4d248a66-f94b-49e0-b43a-e9f8bcb95dfe?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "d549100c-5500-49c0-9a9d-f80c62e4b099" ], + "CommandName": [ "Stop-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzPostgreSqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "fc34f737-6d2a-4202-8de3-a09377e9a691" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-correlation-request-id": [ "e6bc5007-021e-4f3e-8d18-ed68f0e6511f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204512Z:e6bc5007-021e-4f3e-8d18-ed68f0e6511f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:45:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"4d248a66-f94b-49e0-b43a-e9f8bcb95dfe\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T20:43:11.457Z\"}" + } + }, + "Start-AzPostgreSqlFlexibleServer+[NoContext]+Start+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/4d248a66-f94b-49e0-b43a-e9f8bcb95dfe?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/4d248a66-f94b-49e0-b43a-e9f8bcb95dfe?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "27" ], + "x-ms-client-request-id": [ "d549100c-5500-49c0-9a9d-f80c62e4b099" ], + "CommandName": [ "Stop-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzPostgreSqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "90262198-ae1b-4478-afcc-be9841facb9f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "x-ms-correlation-request-id": [ "966366de-0bf1-4369-b6bb-729c686166a1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204512Z:966366de-0bf1-4369-b6bb-729c686166a1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:45:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "48" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"postgresql-flexible-test-100\",\"type\":\"PostgreSQL\"}" + } + }, + "Start-AzPostgreSqlFlexibleServer+[NoContext]+Start+$POST+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/start?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/start?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "28" ], + "x-ms-client-request-id": [ "ba2fa535-d8cb-46f7-8786-627fa60053e5" ], + "CommandName": [ "Start-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Start-AzPostgreSqlFlexibleServer_Start" ], + "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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/ee4fcd78-741b-492e-9c6e-5cba3f637214?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/ee4fcd78-741b-492e-9c6e-5cba3f637214?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ee4fcd78-741b-492e-9c6e-5cba3f637214" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], + "x-ms-correlation-request-id": [ "7ce0b443-75a0-4ff6-8e06-2d6fa0e2b447" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204513Z:7ce0b443-75a0-4ff6-8e06-2d6fa0e2b447" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:45:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "85" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"StartServerManagementOperation\",\"startTime\":\"2020-11-11T20:45:13.003Z\"}" + } + }, + "Start-AzPostgreSqlFlexibleServer+[NoContext]+Start+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/ee4fcd78-741b-492e-9c6e-5cba3f637214?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/ee4fcd78-741b-492e-9c6e-5cba3f637214?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "29" ], + "x-ms-client-request-id": [ "ba2fa535-d8cb-46f7-8786-627fa60053e5" ], + "CommandName": [ "Start-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Start-AzPostgreSqlFlexibleServer_Start" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b9a8bdb0-a419-4953-9665-cd116d90f456" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "x-ms-correlation-request-id": [ "89e365af-cfb0-477f-b7c3-21adca727752" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204613Z:89e365af-cfb0-477f-b7c3-21adca727752" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:46:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ee4fcd78-741b-492e-9c6e-5cba3f637214\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T20:45:13.003Z\"}" + } + }, + "Start-AzPostgreSqlFlexibleServer+[NoContext]+Start+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/ee4fcd78-741b-492e-9c6e-5cba3f637214?api-version=2020-02-14-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/ee4fcd78-741b-492e-9c6e-5cba3f637214?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "ba2fa535-d8cb-46f7-8786-627fa60053e5" ], + "CommandName": [ "Start-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Start-AzPostgreSqlFlexibleServer_Start" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "35c25883-bb94-4ae1-be20-d69409015461" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], + "x-ms-correlation-request-id": [ "ac37f688-57e9-4385-b696-20d3df8eebcf" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204713Z:ac37f688-57e9-4385-b696-20d3df8eebcf" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:47:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ee4fcd78-741b-492e-9c6e-5cba3f637214\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T20:45:13.003Z\"}" + } + }, + "Start-AzPostgreSqlFlexibleServer+[NoContext]+Start+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/ee4fcd78-741b-492e-9c6e-5cba3f637214?api-version=2020-02-14-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/ee4fcd78-741b-492e-9c6e-5cba3f637214?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "31" ], + "x-ms-client-request-id": [ "ba2fa535-d8cb-46f7-8786-627fa60053e5" ], + "CommandName": [ "Start-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Start-AzPostgreSqlFlexibleServer_Start" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "664e891c-f6ea-4166-b599-e5a9bb01fc3c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "x-ms-correlation-request-id": [ "7a8c3a71-2b88-4fbe-a016-916dc606bcbe" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204714Z:7a8c3a71-2b88-4fbe-a016-916dc606bcbe" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:47:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "48" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"postgresql-flexible-test-100\",\"type\":\"PostgreSQL\"}" + } + }, + "Start-AzPostgreSqlFlexibleServer+[NoContext]+StartViaIdentity+$POST+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/stop?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/stop?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "32" ], + "x-ms-client-request-id": [ "fdb2fa7f-ad8f-409c-ba54-9ad67b41fc18" ], + "CommandName": [ "Stop-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzPostgreSqlFlexibleServer_Stop" ], + "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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/a28149f1-786c-4265-8fe8-12fccdfc069a?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/a28149f1-786c-4265-8fe8-12fccdfc069a?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a28149f1-786c-4265-8fe8-12fccdfc069a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], + "x-ms-correlation-request-id": [ "ab808310-1790-46d5-85a7-925390f74147" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204714Z:ab808310-1790-46d5-85a7-925390f74147" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:47:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"StopServerManagementOperation\",\"startTime\":\"2020-11-11T20:47:14.227Z\"}" + } + }, + "Start-AzPostgreSqlFlexibleServer+[NoContext]+StartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/a28149f1-786c-4265-8fe8-12fccdfc069a?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/a28149f1-786c-4265-8fe8-12fccdfc069a?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "33" ], + "x-ms-client-request-id": [ "fdb2fa7f-ad8f-409c-ba54-9ad67b41fc18" ], + "CommandName": [ "Stop-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzPostgreSqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a59e3545-5ffa-4682-b0be-b79833ea661a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "x-ms-correlation-request-id": [ "dcf16920-33a8-42aa-90ad-0a043b475bf7" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204814Z:dcf16920-33a8-42aa-90ad-0a043b475bf7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:48:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"a28149f1-786c-4265-8fe8-12fccdfc069a\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T20:47:14.227Z\"}" + } + }, + "Start-AzPostgreSqlFlexibleServer+[NoContext]+StartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/a28149f1-786c-4265-8fe8-12fccdfc069a?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/a28149f1-786c-4265-8fe8-12fccdfc069a?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "34" ], + "x-ms-client-request-id": [ "fdb2fa7f-ad8f-409c-ba54-9ad67b41fc18" ], + "CommandName": [ "Stop-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzPostgreSqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0bae0164-1bd3-4943-9320-62357d0aab2a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "x-ms-correlation-request-id": [ "7db075bb-12a5-4716-84d5-85b0968a1cde" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204915Z:7db075bb-12a5-4716-84d5-85b0968a1cde" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:49:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"a28149f1-786c-4265-8fe8-12fccdfc069a\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T20:47:14.227Z\"}" + } + }, + "Start-AzPostgreSqlFlexibleServer+[NoContext]+StartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/a28149f1-786c-4265-8fe8-12fccdfc069a?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/a28149f1-786c-4265-8fe8-12fccdfc069a?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "35" ], + "x-ms-client-request-id": [ "fdb2fa7f-ad8f-409c-ba54-9ad67b41fc18" ], + "CommandName": [ "Stop-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzPostgreSqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e69bbbe3-14bd-4866-b4c1-9a0403d0fecc" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], + "x-ms-correlation-request-id": [ "55449649-47ed-426b-9521-8c20d1752f14" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204915Z:55449649-47ed-426b-9521-8c20d1752f14" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:49:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "48" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"postgresql-flexible-test-100\",\"type\":\"PostgreSQL\"}" + } + }, + "Start-AzPostgreSqlFlexibleServer+[NoContext]+StartViaIdentity+$POST+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/start?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/start?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "36" ], + "x-ms-client-request-id": [ "859c57e1-909b-4aba-b4d2-d15dedb2f427" ], + "CommandName": [ "Start-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Start-AzPostgreSqlFlexibleServer_StartViaIdentity" ], + "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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/ffa23f9c-9648-420e-a2a1-6113a0682996?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/ffa23f9c-9648-420e-a2a1-6113a0682996?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ffa23f9c-9648-420e-a2a1-6113a0682996" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], + "x-ms-correlation-request-id": [ "f940ef29-fc58-483e-892f-8e6642306701" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204915Z:f940ef29-fc58-483e-892f-8e6642306701" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:49:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "85" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"StartServerManagementOperation\",\"startTime\":\"2020-11-11T20:49:15.607Z\"}" + } + }, + "Start-AzPostgreSqlFlexibleServer+[NoContext]+StartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/ffa23f9c-9648-420e-a2a1-6113a0682996?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/ffa23f9c-9648-420e-a2a1-6113a0682996?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "37" ], + "x-ms-client-request-id": [ "859c57e1-909b-4aba-b4d2-d15dedb2f427" ], + "CommandName": [ "Start-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Start-AzPostgreSqlFlexibleServer_StartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "64121510-a6f6-49d6-b20f-1a1bd7a45bef" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "x-ms-correlation-request-id": [ "b6d20568-591c-43cf-9185-a327c71f120f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T205016Z:b6d20568-591c-43cf-9185-a327c71f120f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:50:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ffa23f9c-9648-420e-a2a1-6113a0682996\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T20:49:15.607Z\"}" + } + }, + "Start-AzPostgreSqlFlexibleServer+[NoContext]+StartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/ffa23f9c-9648-420e-a2a1-6113a0682996?api-version=2020-02-14-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/ffa23f9c-9648-420e-a2a1-6113a0682996?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "859c57e1-909b-4aba-b4d2-d15dedb2f427" ], + "CommandName": [ "Start-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Start-AzPostgreSqlFlexibleServer_StartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ba4566ea-5c6a-4a01-bf99-5ca6e948b0e2" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], + "x-ms-correlation-request-id": [ "d2d52133-506f-4c00-8cdb-c1d94d03e0b0" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T205116Z:d2d52133-506f-4c00-8cdb-c1d94d03e0b0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:51:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ffa23f9c-9648-420e-a2a1-6113a0682996\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T20:49:15.607Z\"}" + } + }, + "Start-AzPostgreSqlFlexibleServer+[NoContext]+StartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/ffa23f9c-9648-420e-a2a1-6113a0682996?api-version=2020-02-14-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/ffa23f9c-9648-420e-a2a1-6113a0682996?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "39" ], + "x-ms-client-request-id": [ "859c57e1-909b-4aba-b4d2-d15dedb2f427" ], + "CommandName": [ "Start-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Start-AzPostgreSqlFlexibleServer_StartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c567b26e-9d20-48c5-9dd3-6519ce89f324" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], + "x-ms-correlation-request-id": [ "8784ba09-a9ec-4200-a411-e02c77b3b0e4" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T205116Z:8784ba09-a9ec-4200-a411-e02c77b3b0e4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:51:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "48" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"postgresql-flexible-test-100\",\"type\":\"PostgreSQL\"}" + } + } +} \ No newline at end of file diff --git a/src/PostgreSql/test/Start-AzPostgreSqlFlexibleServer.Tests.ps1 b/src/PostgreSql/test/Start-AzPostgreSqlFlexibleServer.Tests.ps1 new file mode 100644 index 000000000000..58b4c15fccfa --- /dev/null +++ b/src/PostgreSql/test/Start-AzPostgreSqlFlexibleServer.Tests.ps1 @@ -0,0 +1,29 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Start-AzPostgreSqlFlexibleServer.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Start-AzPostgreSqlFlexibleServer' { + It 'Start' { + { + Stop-AzPostgreSqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.flexibleServerName + Start-AzPostgreSqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.flexibleServerName + } | Should -Not -Throw + } + + It 'StartViaIdentity' { + { + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForPostgreSql/flexibleServers/$($env.flexibleServerName)/start" + Stop-AzPostgreSqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.flexibleServerName + Start-AzPostgreSqlFlexibleServer -InputObject $ID + } | Should -Not -Throw + } +} diff --git a/src/PostgreSql/test/Stop-AzPostgreSqlFlexibleServer.Recording.json b/src/PostgreSql/test/Stop-AzPostgreSqlFlexibleServer.Recording.json new file mode 100644 index 000000000000..77b411460b39 --- /dev/null +++ b/src/PostgreSql/test/Stop-AzPostgreSqlFlexibleServer.Recording.json @@ -0,0 +1,646 @@ +{ + "Stop-AzPostgreSqlFlexibleServer+[NoContext]+Stop+$POST+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/stop?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/stop?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "7900b8cd-4505-4469-9807-e4e4678e5b7e" ], + "CommandName": [ "Stop-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzPostgreSqlFlexibleServer_Stop" ], + "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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/8f0592f6-a0d3-4cd7-97b1-6b0f6956fed9?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/8f0592f6-a0d3-4cd7-97b1-6b0f6956fed9?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8f0592f6-a0d3-4cd7-97b1-6b0f6956fed9" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "afbc525a-e6dd-4e6b-8d4a-16797467f38d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T211910Z:afbc525a-e6dd-4e6b-8d4a-16797467f38d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:19:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "83" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"StopServerManagementOperation\",\"startTime\":\"2020-11-11T21:19:10.58Z\"}" + } + }, + "Stop-AzPostgreSqlFlexibleServer+[NoContext]+Stop+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/8f0592f6-a0d3-4cd7-97b1-6b0f6956fed9?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/8f0592f6-a0d3-4cd7-97b1-6b0f6956fed9?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "7900b8cd-4505-4469-9807-e4e4678e5b7e" ], + "CommandName": [ "Stop-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzPostgreSqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "1ac1412a-8694-47ae-aedf-6b83f7b1271c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "d8f25e96-e872-496c-ae94-cbb8a1bce79f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T212011Z:d8f25e96-e872-496c-ae94-cbb8a1bce79f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:20:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"8f0592f6-a0d3-4cd7-97b1-6b0f6956fed9\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T21:19:10.58Z\"}" + } + }, + "Stop-AzPostgreSqlFlexibleServer+[NoContext]+Stop+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/8f0592f6-a0d3-4cd7-97b1-6b0f6956fed9?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/8f0592f6-a0d3-4cd7-97b1-6b0f6956fed9?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "7900b8cd-4505-4469-9807-e4e4678e5b7e" ], + "CommandName": [ "Stop-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzPostgreSqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2387b772-67f6-4f56-ab85-338fcb636e64" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "ded5f4dc-9567-4181-8e9a-795a4e5daad1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T212111Z:ded5f4dc-9567-4181-8e9a-795a4e5daad1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:21:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"8f0592f6-a0d3-4cd7-97b1-6b0f6956fed9\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T21:19:10.58Z\"}" + } + }, + "Stop-AzPostgreSqlFlexibleServer+[NoContext]+Stop+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/8f0592f6-a0d3-4cd7-97b1-6b0f6956fed9?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/8f0592f6-a0d3-4cd7-97b1-6b0f6956fed9?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "7900b8cd-4505-4469-9807-e4e4678e5b7e" ], + "CommandName": [ "Stop-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzPostgreSqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4fe2e425-6d1f-481b-a522-d6d64eef3d4e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "1539210f-10bc-4c72-ab96-8296abf62210" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T212111Z:1539210f-10bc-4c72-ab96-8296abf62210" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:21:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "48" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"postgresql-flexible-test-100\",\"type\":\"PostgreSQL\"}" + } + }, + "Stop-AzPostgreSqlFlexibleServer+[NoContext]+Stop+$POST+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/start?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/start?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "e3d55d7f-025a-41ac-a41a-efcc9b862189" ], + "CommandName": [ "Start-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Start-AzPostgreSqlFlexibleServer_Start" ], + "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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/a96b8acc-fcee-4a7e-81f2-77b68ddc3fc2?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/a96b8acc-fcee-4a7e-81f2-77b68ddc3fc2?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a96b8acc-fcee-4a7e-81f2-77b68ddc3fc2" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "5e2dc23e-03e9-48a4-a7b7-59db345c7a29" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T212112Z:5e2dc23e-03e9-48a4-a7b7-59db345c7a29" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:21:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "85" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"StartServerManagementOperation\",\"startTime\":\"2020-11-11T21:21:12.253Z\"}" + } + }, + "Stop-AzPostgreSqlFlexibleServer+[NoContext]+Stop+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/a96b8acc-fcee-4a7e-81f2-77b68ddc3fc2?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/a96b8acc-fcee-4a7e-81f2-77b68ddc3fc2?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "e3d55d7f-025a-41ac-a41a-efcc9b862189" ], + "CommandName": [ "Start-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Start-AzPostgreSqlFlexibleServer_Start" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4e4a6826-2a68-41f0-8513-6b53d6923f0b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "ce00446c-5759-40ff-a0e8-ededa6db18a6" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T212212Z:ce00446c-5759-40ff-a0e8-ededa6db18a6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:22:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"a96b8acc-fcee-4a7e-81f2-77b68ddc3fc2\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T21:21:12.253Z\"}" + } + }, + "Stop-AzPostgreSqlFlexibleServer+[NoContext]+Stop+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/a96b8acc-fcee-4a7e-81f2-77b68ddc3fc2?api-version=2020-02-14-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/a96b8acc-fcee-4a7e-81f2-77b68ddc3fc2?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "e3d55d7f-025a-41ac-a41a-efcc9b862189" ], + "CommandName": [ "Start-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Start-AzPostgreSqlFlexibleServer_Start" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "62350f70-91ce-4c97-8611-1f6d1cee5e89" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "69babf99-8faf-496d-b581-79d9f40d4505" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T212313Z:69babf99-8faf-496d-b581-79d9f40d4505" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:23:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"a96b8acc-fcee-4a7e-81f2-77b68ddc3fc2\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T21:21:12.253Z\"}" + } + }, + "Stop-AzPostgreSqlFlexibleServer+[NoContext]+Stop+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/a96b8acc-fcee-4a7e-81f2-77b68ddc3fc2?api-version=2020-02-14-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/a96b8acc-fcee-4a7e-81f2-77b68ddc3fc2?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "e3d55d7f-025a-41ac-a41a-efcc9b862189" ], + "CommandName": [ "Start-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Start-AzPostgreSqlFlexibleServer_Start" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2eb0c15e-d05e-41a4-b97f-d21980dd55f8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "0e1f78a1-43ad-40ee-b1d9-b34adcc8cd17" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T212313Z:0e1f78a1-43ad-40ee-b1d9-b34adcc8cd17" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:23:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "48" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"postgresql-flexible-test-100\",\"type\":\"PostgreSQL\"}" + } + }, + "Stop-AzPostgreSqlFlexibleServer+[NoContext]+StopViaIdentity+$POST+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/stop?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/stop?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "0fc7e1d7-16e8-44af-8322-0247220552db" ], + "CommandName": [ "Stop-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzPostgreSqlFlexibleServer_StopViaIdentity" ], + "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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/18ba3d05-211a-4e9c-8ce4-d23bd065a7af?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/18ba3d05-211a-4e9c-8ce4-d23bd065a7af?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "18ba3d05-211a-4e9c-8ce4-d23bd065a7af" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "7f896294-a806-4472-bd5e-2706ae33658a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T212313Z:7f896294-a806-4472-bd5e-2706ae33658a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:23:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"StopServerManagementOperation\",\"startTime\":\"2020-11-11T21:23:13.623Z\"}" + } + }, + "Stop-AzPostgreSqlFlexibleServer+[NoContext]+StopViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/18ba3d05-211a-4e9c-8ce4-d23bd065a7af?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/18ba3d05-211a-4e9c-8ce4-d23bd065a7af?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "0fc7e1d7-16e8-44af-8322-0247220552db" ], + "CommandName": [ "Stop-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzPostgreSqlFlexibleServer_StopViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3cab235e-e7f8-41d7-ae93-81137c016414" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "22191515-426a-4fac-86a3-2a23c0e1ae76" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T212414Z:22191515-426a-4fac-86a3-2a23c0e1ae76" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:24:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"18ba3d05-211a-4e9c-8ce4-d23bd065a7af\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T21:23:13.623Z\"}" + } + }, + "Stop-AzPostgreSqlFlexibleServer+[NoContext]+StopViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/18ba3d05-211a-4e9c-8ce4-d23bd065a7af?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/18ba3d05-211a-4e9c-8ce4-d23bd065a7af?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "0fc7e1d7-16e8-44af-8322-0247220552db" ], + "CommandName": [ "Stop-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzPostgreSqlFlexibleServer_StopViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6bc05ac3-f319-48f3-9db1-b4e140a04017" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "75d50bb4-dd7e-4a80-9000-c1df5b3dc7e8" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T212514Z:75d50bb4-dd7e-4a80-9000-c1df5b3dc7e8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:25:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"18ba3d05-211a-4e9c-8ce4-d23bd065a7af\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T21:23:13.623Z\"}" + } + }, + "Stop-AzPostgreSqlFlexibleServer+[NoContext]+StopViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/18ba3d05-211a-4e9c-8ce4-d23bd065a7af?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/18ba3d05-211a-4e9c-8ce4-d23bd065a7af?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "0fc7e1d7-16e8-44af-8322-0247220552db" ], + "CommandName": [ "Stop-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzPostgreSqlFlexibleServer_StopViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "57017a85-7399-45c7-b17d-e6426c2ca680" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "8b6114b5-12f6-4c27-8c2b-a0d44f6c5a6b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T212514Z:8b6114b5-12f6-4c27-8c2b-a0d44f6c5a6b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:25:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "48" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"postgresql-flexible-test-100\",\"type\":\"PostgreSQL\"}" + } + }, + "Stop-AzPostgreSqlFlexibleServer+[NoContext]+StopViaIdentity+$POST+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/start?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/start?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "e3d55d7f-025a-41ac-a41a-efcc9b862189" ], + "CommandName": [ "Start-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Start-AzPostgreSqlFlexibleServer_Start" ], + "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/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/a96b8acc-fcee-4a7e-81f2-77b68ddc3fc2?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/a96b8acc-fcee-4a7e-81f2-77b68ddc3fc2?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a96b8acc-fcee-4a7e-81f2-77b68ddc3fc2" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "5e2dc23e-03e9-48a4-a7b7-59db345c7a29" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T212112Z:5e2dc23e-03e9-48a4-a7b7-59db345c7a29" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:21:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "85" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"StartServerManagementOperation\",\"startTime\":\"2020-11-11T21:21:12.253Z\"}" + } + }, + "Stop-AzPostgreSqlFlexibleServer+[NoContext]+StopViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/a96b8acc-fcee-4a7e-81f2-77b68ddc3fc2?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/a96b8acc-fcee-4a7e-81f2-77b68ddc3fc2?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "e3d55d7f-025a-41ac-a41a-efcc9b862189" ], + "CommandName": [ "Start-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Start-AzPostgreSqlFlexibleServer_Start" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4e4a6826-2a68-41f0-8513-6b53d6923f0b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "ce00446c-5759-40ff-a0e8-ededa6db18a6" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T212212Z:ce00446c-5759-40ff-a0e8-ededa6db18a6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:22:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"a96b8acc-fcee-4a7e-81f2-77b68ddc3fc2\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T21:21:12.253Z\"}" + } + }, + "Stop-AzPostgreSqlFlexibleServer+[NoContext]+StopViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/a96b8acc-fcee-4a7e-81f2-77b68ddc3fc2?api-version=2020-02-14-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/a96b8acc-fcee-4a7e-81f2-77b68ddc3fc2?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "e3d55d7f-025a-41ac-a41a-efcc9b862189" ], + "CommandName": [ "Start-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Start-AzPostgreSqlFlexibleServer_Start" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "62350f70-91ce-4c97-8611-1f6d1cee5e89" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "69babf99-8faf-496d-b581-79d9f40d4505" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T212313Z:69babf99-8faf-496d-b581-79d9f40d4505" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:23:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"a96b8acc-fcee-4a7e-81f2-77b68ddc3fc2\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T21:21:12.253Z\"}" + } + }, + "Stop-AzPostgreSqlFlexibleServer+[NoContext]+StopViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/a96b8acc-fcee-4a7e-81f2-77b68ddc3fc2?api-version=2020-02-14-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/a96b8acc-fcee-4a7e-81f2-77b68ddc3fc2?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "e3d55d7f-025a-41ac-a41a-efcc9b862189" ], + "CommandName": [ "Start-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Start-AzPostgreSqlFlexibleServer_Start" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2eb0c15e-d05e-41a4-b97f-d21980dd55f8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "0e1f78a1-43ad-40ee-b1d9-b34adcc8cd17" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T212313Z:0e1f78a1-43ad-40ee-b1d9-b34adcc8cd17" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:23:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "48" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"postgresql-flexible-test-100\",\"type\":\"PostgreSQL\"}" + } + } +} \ No newline at end of file diff --git a/src/PostgreSql/test/Stop-AzPostgreSqlFlexibleServer.Tests.ps1 b/src/PostgreSql/test/Stop-AzPostgreSqlFlexibleServer.Tests.ps1 new file mode 100644 index 000000000000..3101005ee6de --- /dev/null +++ b/src/PostgreSql/test/Stop-AzPostgreSqlFlexibleServer.Tests.ps1 @@ -0,0 +1,29 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Stop-AzPostgreSqlFlexibleServer.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Stop-AzPostgreSqlFlexibleServer' { + It 'Stop' { + { + Stop-AzPostgreSqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.flexibleServerName + Start-AzPostgreSqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.flexibleServerName + } | Should -Not -Throw + } + + It 'StopViaIdentity' { + { + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForPostgreSql/flexibleServers/$($env.flexibleServerName)/stop" + Stop-AzPostgreSqlFlexibleServer -InputObject $ID + Start-AzPostgreSqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.flexibleServerName + } | Should -Not -Throw + } +} diff --git a/src/PostgreSql/test/Update-AzPostgreSqlConfiguration.Recording.json b/src/PostgreSql/test/Update-AzPostgreSqlConfiguration.Recording.json index 8bbdd354b16f..e89a04a29dca 100644 --- a/src/PostgreSql/test/Update-AzPostgreSqlConfiguration.Recording.json +++ b/src/PostgreSql/test/Update-AzPostgreSqlConfiguration.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzPostgreSqlConfiguration+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/intervalstyle?api-version=2017-12-01+1": { + "Update-AzPostgreSqlConfiguration+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/intervalstyle?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/intervalstyle?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/intervalstyle?api-version=2017-12-01", "Content": "{\r\n \"properties\": {\r\n \"value\": \"SQL_STANDARD\"\r\n }\r\n}", "Headers": { }, @@ -16,9 +16,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/2d654607-bcd3-49f8-9b11-c35061b9266e?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/2d654607-bcd3-49f8-9b11-c35061b9266e?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/2d654607-bcd3-49f8-9b11-c35061b9266e?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/2d654607-bcd3-49f8-9b11-c35061b9266e?api-version=2017-12-01" ], "x-ms-request-id": [ "2d654607-bcd3-49f8-9b11-c35061b9266e" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1174" ], @@ -36,10 +36,10 @@ "Content": "{\"operation\":\"UpdateElasticServerConfig\",\"startTime\":\"2020-09-25T11:49:08.207Z\"}" } }, - "Update-AzPostgreSqlConfiguration+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/2d654607-bcd3-49f8-9b11-c35061b9266e?api-version=2017-12-01+2": { + "Update-AzPostgreSqlConfiguration+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/2d654607-bcd3-49f8-9b11-c35061b9266e?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/2d654607-bcd3-49f8-9b11-c35061b9266e?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/2d654607-bcd3-49f8-9b11-c35061b9266e?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "256", "257" ], @@ -76,10 +76,10 @@ "Content": "{\"name\":\"2d654607-bcd3-49f8-9b11-c35061b9266e\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:49:08.207Z\"}" } }, - "Update-AzPostgreSqlConfiguration+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/intervalstyle?api-version=2017-12-01+3": { + "Update-AzPostgreSqlConfiguration+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/intervalstyle?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/intervalstyle?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/intervalstyle?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "256", "257", "258" ], @@ -112,13 +112,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"value\":\"SQL_STANDARD\",\"description\":\"Sets the display format for interval values.\",\"defaultValue\":\"postgres\",\"dataType\":\"Enumeration\",\"allowedValues\":\"postgres,postgres_verbose,sql_standard,iso_8601\",\"source\":\"user-override\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/intervalstyle\",\"name\":\"intervalstyle\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"}" + "Content": "{\"properties\":{\"value\":\"SQL_STANDARD\",\"description\":\"Sets the display format for interval values.\",\"defaultValue\":\"postgres\",\"dataType\":\"Enumeration\",\"allowedValues\":\"postgres,postgres_verbose,sql_standard,iso_8601\",\"source\":\"user-override\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/intervalstyle\",\"name\":\"intervalstyle\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"}" } }, - "Update-AzPostgreSqlConfiguration+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/deadlock_timeout?api-version=2017-12-01+1": { + "Update-AzPostgreSqlConfiguration+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/deadlock_timeout?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/deadlock_timeout?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/deadlock_timeout?api-version=2017-12-01", "Content": "{\r\n \"properties\": {\r\n \"value\": \"2000\"\r\n }\r\n}", "Headers": { }, @@ -132,9 +132,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/351e8bf3-49e4-43d8-82c2-b4b767cd83c4?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/351e8bf3-49e4-43d8-82c2-b4b767cd83c4?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/351e8bf3-49e4-43d8-82c2-b4b767cd83c4?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/351e8bf3-49e4-43d8-82c2-b4b767cd83c4?api-version=2017-12-01" ], "x-ms-request-id": [ "351e8bf3-49e4-43d8-82c2-b4b767cd83c4" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1173" ], @@ -152,10 +152,10 @@ "Content": "{\"operation\":\"UpdateElasticServerConfig\",\"startTime\":\"2020-09-25T11:49:24.707Z\"}" } }, - "Update-AzPostgreSqlConfiguration+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/351e8bf3-49e4-43d8-82c2-b4b767cd83c4?api-version=2017-12-01+2": { + "Update-AzPostgreSqlConfiguration+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/351e8bf3-49e4-43d8-82c2-b4b767cd83c4?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/351e8bf3-49e4-43d8-82c2-b4b767cd83c4?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/351e8bf3-49e4-43d8-82c2-b4b767cd83c4?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "259", "260" ], @@ -192,10 +192,10 @@ "Content": "{\"name\":\"351e8bf3-49e4-43d8-82c2-b4b767cd83c4\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:49:24.707Z\"}" } }, - "Update-AzPostgreSqlConfiguration+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/deadlock_timeout?api-version=2017-12-01+3": { + "Update-AzPostgreSqlConfiguration+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/deadlock_timeout?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/deadlock_timeout?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/deadlock_timeout?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "259", "260", "261" ], @@ -228,7 +228,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"value\":\"2000\",\"description\":\"Sets the amount of time, in milliseconds, to wait on a lock before checking for deadlock.\",\"defaultValue\":\"1000\",\"dataType\":\"Integer\",\"allowedValues\":\"1-2147483647\",\"source\":\"user-override\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/configurations/deadlock_timeout\",\"name\":\"deadlock_timeout\",\"type\":\"Microsoft.DBforPostgreSQL/servers/configurations\"}" + "Content": "{\"properties\":{\"value\":\"2000\",\"description\":\"Sets the amount of time, in milliseconds, to wait on a lock before checking for deadlock.\",\"defaultValue\":\"1000\",\"dataType\":\"Integer\",\"allowedValues\":\"1-2147483647\",\"source\":\"user-override\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/configurations/deadlock_timeout\",\"name\":\"deadlock_timeout\",\"type\":\"Microsoft.DBForPostgreSQL/servers/configurations\"}" } } } \ No newline at end of file diff --git a/src/PostgreSql/test/Update-AzPostgreSqlConfiguration.Tests.ps1 b/src/PostgreSql/test/Update-AzPostgreSqlConfiguration.Tests.ps1 index a0f4ec1cce97..0ba8009411de 100644 --- a/src/PostgreSql/test/Update-AzPostgreSqlConfiguration.Tests.ps1 +++ b/src/PostgreSql/test/Update-AzPostgreSqlConfiguration.Tests.ps1 @@ -18,7 +18,7 @@ Describe 'Update-AzPostgreSqlConfiguration' { } It 'UpdateViaIdentityExpanded' { - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBforPostgreSQL/servers/$($env.serverName)/configurations/deadlock_timeout" + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForPostgreSQL/servers/$($env.serverName)/configurations/deadlock_timeout" $config = Update-AzPostgreSqlConfiguration -InputObject $ID -Value 2000 $config.Value | Should -Be 2000 } diff --git a/src/PostgreSql/test/Update-AzPostgreSqlFirewallRule.Recording.json b/src/PostgreSql/test/Update-AzPostgreSqlFirewallRule.Recording.json index fb5d075d7f0b..e817cdf09f79 100644 --- a/src/PostgreSql/test/Update-AzPostgreSqlFirewallRule.Recording.json +++ b/src/PostgreSql/test/Update-AzPostgreSqlFirewallRule.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+1": { + "Update-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"0.0.0.1\"\r\n }\r\n}", "Headers": { }, @@ -16,9 +16,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/9ccf456f-9710-4d4c-9001-b97cc5442557?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/9ccf456f-9710-4d4c-9001-b97cc5442557?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/9ccf456f-9710-4d4c-9001-b97cc5442557?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/9ccf456f-9710-4d4c-9001-b97cc5442557?api-version=2017-12-01" ], "x-ms-request-id": [ "9ccf456f-9710-4d4c-9001-b97cc5442557" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1172" ], @@ -36,10 +36,10 @@ "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-09-25T11:49:41.41Z\"}" } }, - "Update-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/9ccf456f-9710-4d4c-9001-b97cc5442557?api-version=2017-12-01+2": { + "Update-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/9ccf456f-9710-4d4c-9001-b97cc5442557?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/9ccf456f-9710-4d4c-9001-b97cc5442557?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/9ccf456f-9710-4d4c-9001-b97cc5442557?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "262", "263" ], @@ -76,10 +76,10 @@ "Content": "{\"name\":\"9ccf456f-9710-4d4c-9001-b97cc5442557\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:49:41.41Z\"}" } }, - "Update-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+3": { + "Update-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "262", "263", "264" ], @@ -112,13 +112,13 @@ "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/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBForPostgreSQL/servers/firewallRules\"}" } }, - "Update-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+4": { + "Update-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.2\",\r\n \"endIpAddress\": \"0.0.0.2\"\r\n }\r\n}", "Headers": { }, @@ -132,9 +132,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/79cb1e83-5460-4f0c-9213-9d5b2d404a4f?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/79cb1e83-5460-4f0c-9213-9d5b2d404a4f?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/79cb1e83-5460-4f0c-9213-9d5b2d404a4f?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/79cb1e83-5460-4f0c-9213-9d5b2d404a4f?api-version=2017-12-01" ], "x-ms-request-id": [ "79cb1e83-5460-4f0c-9213-9d5b2d404a4f" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1171" ], @@ -152,10 +152,10 @@ "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-09-25T11:49:58.91Z\"}" } }, - "Update-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/79cb1e83-5460-4f0c-9213-9d5b2d404a4f?api-version=2017-12-01+5": { + "Update-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/79cb1e83-5460-4f0c-9213-9d5b2d404a4f?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/79cb1e83-5460-4f0c-9213-9d5b2d404a4f?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/79cb1e83-5460-4f0c-9213-9d5b2d404a4f?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "265", "266" ], @@ -192,10 +192,10 @@ "Content": "{\"name\":\"79cb1e83-5460-4f0c-9213-9d5b2d404a4f\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:49:58.91Z\"}" } }, - "Update-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+6": { + "Update-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "265", "266", "267" ], @@ -228,13 +228,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.2\",\"endIpAddress\":\"0.0.0.2\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.2\",\"endIpAddress\":\"0.0.0.2\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBForPostgreSQL/servers/firewallRules\"}" } }, - "Update-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+7": { + "Update-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+7": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "268" ], @@ -253,9 +253,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/7f599f51-7188-4b25-9e0d-da6a522a15e0?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/7f599f51-7188-4b25-9e0d-da6a522a15e0?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/7f599f51-7188-4b25-9e0d-da6a522a15e0?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/7f599f51-7188-4b25-9e0d-da6a522a15e0?api-version=2017-12-01" ], "x-ms-request-id": [ "7f599f51-7188-4b25-9e0d-da6a522a15e0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14980" ], @@ -273,10 +273,10 @@ "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-09-25T11:50:18.77Z\"}" } }, - "Update-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/7f599f51-7188-4b25-9e0d-da6a522a15e0?api-version=2017-12-01+8": { + "Update-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/7f599f51-7188-4b25-9e0d-da6a522a15e0?api-version=2017-12-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/7f599f51-7188-4b25-9e0d-da6a522a15e0?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/7f599f51-7188-4b25-9e0d-da6a522a15e0?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "268", "269" ], @@ -313,10 +313,10 @@ "Content": "{\"name\":\"7f599f51-7188-4b25-9e0d-da6a522a15e0\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:50:18.77Z\"}" } }, - "Update-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/7f599f51-7188-4b25-9e0d-da6a522a15e0?api-version=2017-12-01+9": { + "Update-AzPostgreSqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/7f599f51-7188-4b25-9e0d-da6a522a15e0?api-version=2017-12-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/7f599f51-7188-4b25-9e0d-da6a522a15e0?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/7f599f51-7188-4b25-9e0d-da6a522a15e0?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "268", "269", "270" ], @@ -351,10 +351,10 @@ "Content": null } }, - "Update-AzPostgreSqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+1": { + "Update-AzPostgreSqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"0.0.0.1\"\r\n }\r\n}", "Headers": { }, @@ -368,9 +368,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/ec6c0819-dd1b-42c4-b5f5-445833f5ca13?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/ec6c0819-dd1b-42c4-b5f5-445833f5ca13?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/ec6c0819-dd1b-42c4-b5f5-445833f5ca13?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/ec6c0819-dd1b-42c4-b5f5-445833f5ca13?api-version=2017-12-01" ], "x-ms-request-id": [ "ec6c0819-dd1b-42c4-b5f5-445833f5ca13" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1170" ], @@ -388,10 +388,10 @@ "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-09-25T11:50:38.19Z\"}" } }, - "Update-AzPostgreSqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/ec6c0819-dd1b-42c4-b5f5-445833f5ca13?api-version=2017-12-01+2": { + "Update-AzPostgreSqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/ec6c0819-dd1b-42c4-b5f5-445833f5ca13?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/ec6c0819-dd1b-42c4-b5f5-445833f5ca13?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/ec6c0819-dd1b-42c4-b5f5-445833f5ca13?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "271", "272" ], @@ -428,10 +428,10 @@ "Content": "{\"name\":\"ec6c0819-dd1b-42c4-b5f5-445833f5ca13\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:50:38.19Z\"}" } }, - "Update-AzPostgreSqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+3": { + "Update-AzPostgreSqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "271", "272", "273" ], @@ -464,13 +464,13 @@ "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/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBForPostgreSQL/servers/firewallRules\"}" } }, - "Update-AzPostgreSqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+4": { + "Update-AzPostgreSqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.2\",\r\n \"endIpAddress\": \"0.0.0.3\"\r\n }\r\n}", "Headers": { }, @@ -484,9 +484,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/61c29b02-7b63-4208-9f95-6fa09cfc2b2f?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/61c29b02-7b63-4208-9f95-6fa09cfc2b2f?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/61c29b02-7b63-4208-9f95-6fa09cfc2b2f?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/61c29b02-7b63-4208-9f95-6fa09cfc2b2f?api-version=2017-12-01" ], "x-ms-request-id": [ "61c29b02-7b63-4208-9f95-6fa09cfc2b2f" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1169" ], @@ -504,10 +504,10 @@ "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-09-25T11:50:55.69Z\"}" } }, - "Update-AzPostgreSqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/61c29b02-7b63-4208-9f95-6fa09cfc2b2f?api-version=2017-12-01+5": { + "Update-AzPostgreSqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/61c29b02-7b63-4208-9f95-6fa09cfc2b2f?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/61c29b02-7b63-4208-9f95-6fa09cfc2b2f?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/61c29b02-7b63-4208-9f95-6fa09cfc2b2f?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "274", "275" ], @@ -544,10 +544,10 @@ "Content": "{\"name\":\"61c29b02-7b63-4208-9f95-6fa09cfc2b2f\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:50:55.69Z\"}" } }, - "Update-AzPostgreSqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+6": { + "Update-AzPostgreSqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "274", "275", "276" ], @@ -580,13 +580,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.2\",\"endIpAddress\":\"0.0.0.3\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.2\",\"endIpAddress\":\"0.0.0.3\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01\",\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBForPostgreSQL/servers/firewallRules\"}" } }, - "Update-AzPostgreSqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+7": { + "Update-AzPostgreSqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01+7": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/firewallRules/postgresqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "277" ], @@ -605,9 +605,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/c062c433-77f7-405b-9706-8035ba09e6e9?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/c062c433-77f7-405b-9706-8035ba09e6e9?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c062c433-77f7-405b-9706-8035ba09e6e9?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c062c433-77f7-405b-9706-8035ba09e6e9?api-version=2017-12-01" ], "x-ms-request-id": [ "c062c433-77f7-405b-9706-8035ba09e6e9" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14979" ], @@ -625,10 +625,10 @@ "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-09-25T11:51:13.02Z\"}" } }, - "Update-AzPostgreSqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c062c433-77f7-405b-9706-8035ba09e6e9?api-version=2017-12-01+8": { + "Update-AzPostgreSqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c062c433-77f7-405b-9706-8035ba09e6e9?api-version=2017-12-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/c062c433-77f7-405b-9706-8035ba09e6e9?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/c062c433-77f7-405b-9706-8035ba09e6e9?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "277", "278" ], @@ -665,10 +665,10 @@ "Content": "{\"name\":\"c062c433-77f7-405b-9706-8035ba09e6e9\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:51:13.02Z\"}" } }, - "Update-AzPostgreSqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/c062c433-77f7-405b-9706-8035ba09e6e9?api-version=2017-12-01+9": { + "Update-AzPostgreSqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/c062c433-77f7-405b-9706-8035ba09e6e9?api-version=2017-12-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/c062c433-77f7-405b-9706-8035ba09e6e9?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/c062c433-77f7-405b-9706-8035ba09e6e9?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "277", "278", "279" ], diff --git a/src/PostgreSql/test/Update-AzPostgreSqlFirewallRule.Tests.ps1 b/src/PostgreSql/test/Update-AzPostgreSqlFirewallRule.Tests.ps1 index 234e8b7bcde5..92638b0b1a57 100644 --- a/src/PostgreSql/test/Update-AzPostgreSqlFirewallRule.Tests.ps1 +++ b/src/PostgreSql/test/Update-AzPostgreSqlFirewallRule.Tests.ps1 @@ -22,7 +22,7 @@ Describe 'Update-AzPostgreSqlFirewallRule' { It 'UpdateViaIdentityExpanded' { New-AzPostgreSqlFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBforPostgreSQL/servers/$($env.serverName)/firewallRules/$($env.firewallRuleName)" + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForPostgreSQL/servers/$($env.serverName)/firewallRules/$($env.firewallRuleName)" $rule = Update-AzPostgreSqlFirewallRule -InputObject $ID -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 $rule.StartIPAddress | Should -Be 0.0.0.2 $rule.EndIPAddress | Should -Be 0.0.0.3 diff --git a/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServer.Recording.json b/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServer.Recording.json new file mode 100644 index 000000000000..87eb3d48f9a0 --- /dev/null +++ b/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServer.Recording.json @@ -0,0 +1,234 @@ +{ + "Update-AzPostgreSqlFlexibleServer+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview", + "Content": "{\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 15\r\n }\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "93" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/0af22222-36e4-4758-ad48-43c36809a9bb?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/0af22222-36e4-4758-ad48-43c36809a9bb?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "799402b2-112c-456d-976b-e6326fed6b48" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "adcd40df-03e3-4c35-b61a-778e38a7d56c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T232710Z:adcd40df-03e3-4c35-b61a-778e38a7d56c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:27:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "87" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-11-12T23:27:09.98Z\"}" + } + }, + "Update-AzPostgreSqlFlexibleServer+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/0af22222-36e4-4758-ad48-43c36809a9bb?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/0af22222-36e4-4758-ad48-43c36809a9bb?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "74ffaf63-1e82-49db-9e00-ba1313d3ac1d" ], + "CommandName": [ "Az.PostgreSql.internal\\Update-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Update-AzPostgreSqlFlexibleServer_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "276defb9-1452-4cc2-87ea-5bb36dc66802" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "ea55b73d-131b-429b-b71a-8d2f3ba77e2f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T232810Z:ea55b73d-131b-429b-b71a-8d2f3ba77e2f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:28:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"0af22222-36e4-4758-ad48-43c36809a9bb\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-12T23:27:09.98Z\"}" + } + }, + "Update-AzPostgreSqlFlexibleServer+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "74ffaf63-1e82-49db-9e00-ba1313d3ac1d" ], + "CommandName": [ "Az.PostgreSql.internal\\Update-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Update-AzPostgreSqlFlexibleServer_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "95c4e95f-4524-4b55-b493-245af07d2a61" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "e94cbb56-92f0-486e-9c17-cab3e26ba59d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T232811Z:e94cbb56-92f0-486e-9c17-cab3e26ba59d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:28:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "880" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-flexible-test-100.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"adminuser\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"2\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":15},\"earliestRestoreDate\":\"2020-11-11T20:47:55.6257742+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-flexible-test-100\",\"name\":\"postgresql-flexible-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "Update-AzPostgreSqlFlexibleServer+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview", + "Content": "{\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 20\r\n }\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "93" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/bf3f527a-1849-4298-a5f0-88f017099834?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/bf3f527a-1849-4298-a5f0-88f017099834?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5bc89b38-97ef-4f11-9c85-89f26811db85" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "32c163ee-bf63-47a0-95c4-551dd76a0ec1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T232811Z:32c163ee-bf63-47a0-95c4-551dd76a0ec1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:28:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-11-12T23:28:11.747Z\"}" + } + }, + "Update-AzPostgreSqlFlexibleServer+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/bf3f527a-1849-4298-a5f0-88f017099834?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/bf3f527a-1849-4298-a5f0-88f017099834?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "5bed3a83-5ab3-4387-aba0-bd3c19baa533" ], + "CommandName": [ "Az.PostgreSql.internal\\Update-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Update-AzPostgreSqlFlexibleServer_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4db9457c-11ac-410a-8e91-c6857aefdf12" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "38e647f7-4037-4380-b679-071568429284" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T232912Z:38e647f7-4037-4380-b679-071568429284" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:29:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"bf3f527a-1849-4298-a5f0-88f017099834\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-12T23:28:11.747Z\"}" + } + }, + "Update-AzPostgreSqlFlexibleServer+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "5bed3a83-5ab3-4387-aba0-bd3c19baa533" ], + "CommandName": [ "Az.PostgreSql.internal\\Update-AzPostgreSqlFlexibleServer" ], + "FullCommandName": [ "Update-AzPostgreSqlFlexibleServer_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "d5566920-48f8-44ad-88df-0bb0983c7538" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "cd442d85-548e-4854-9f63-1be10faaf239" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T232912Z:cd442d85-548e-4854-9f63-1be10faaf239" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:29:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "880" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-flexible-test-100.postgres.database.azure.com\",\"version\":\"12\",\"standbyCount\":0,\"haEnabled\":\"Disabled\",\"administratorLogin\":\"adminuser\",\"publicNetworkAccess\":\"Enabled\",\"logBackupStorageSku\":\"Standard_ZRS\",\"haState\":\"NotEnabled\",\"state\":\"Ready\",\"availabilityZone\":\"2\",\"storageProfile\":{\"storageMB\":131072,\"backupRetentionDays\":20},\"earliestRestoreDate\":\"2020-11-11T20:47:55.6257742+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-flexible-test-100\",\"name\":\"postgresql-flexible-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + } +} \ No newline at end of file diff --git a/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServer.Tests.ps1 b/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServer.Tests.ps1 new file mode 100644 index 000000000000..e79291febdec --- /dev/null +++ b/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServer.Tests.ps1 @@ -0,0 +1,29 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzPostgreSqlFlexibleServer.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Update-AzPostgreSqlFlexibleServer' { + It 'UpdateExpanded' { + { + $server = Update-AzPostgreSqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.flexibleServerName -BackupRetentionDay 15 + $server.StorageProfileBackupRetentionDay | Should -Be 15 + } | Should -Not -Throw + } + + It 'UpdateViaIdentityExpanded' { + { + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBforPostgreSql/flexibleServers/$($env.flexibleServerName)/" + $server = Update-AzPostgreSqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.flexibleServerName -BackupRetentionDay 20 + $server.StorageProfileBackupRetentionDay | Should -Be 20 + } | Should -Not -Throw + } +} diff --git a/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerConfiguration.Recording.json b/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerConfiguration.Recording.json new file mode 100644 index 000000000000..e9d510ae3ecf --- /dev/null +++ b/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerConfiguration.Recording.json @@ -0,0 +1,234 @@ +{ + "Update-AzPostgreSqlFlexibleServerConfiguration+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/configurations/work_mem?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/configurations/work_mem?api-version=2020-02-14-preview", + "Content": "{\r\n \"properties\": {\r\n \"value\": \"10240\",\r\n \"source\": \"user-override\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "82" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/4f49a233-b3c9-4f43-859e-1260748f24ca?api-version=2020-02-14-preview" ], + "Retry-After": [ "10" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/4f49a233-b3c9-4f43-859e-1260748f24ca?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4f49a233-b3c9-4f43-859e-1260748f24ca" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "92ab334d-6910-419d-8a43-a57f5c0c05f8" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T231243Z:92ab334d-6910-419d-8a43-a57f5c0c05f8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:12:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "93" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpdateConfigurationManagementOperation\",\"startTime\":\"2020-11-12T23:12:43.627Z\"}" + } + }, + "Update-AzPostgreSqlFlexibleServerConfiguration+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/4f49a233-b3c9-4f43-859e-1260748f24ca?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/4f49a233-b3c9-4f43-859e-1260748f24ca?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "1a0b9b8b-d1c9-4c1d-8185-b40d24551769" ], + "CommandName": [ "Az.PostgreSql.internal\\Update-AzPostgreSqlFlexibleServerConfiguration" ], + "FullCommandName": [ "Update-AzPostgreSqlFlexibleServerConfiguration_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "10" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5e06dda6-88b1-48f3-9998-06d47e10f79e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "ac1e4b9e-932f-42c9-8459-a833f95a2797" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T231254Z:ac1e4b9e-932f-42c9-8459-a833f95a2797" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:12:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"4f49a233-b3c9-4f43-859e-1260748f24ca\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-12T23:12:43.627Z\"}" + } + }, + "Update-AzPostgreSqlFlexibleServerConfiguration+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/configurations/work_mem?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/configurations/work_mem?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "1a0b9b8b-d1c9-4c1d-8185-b40d24551769" ], + "CommandName": [ "Az.PostgreSql.internal\\Update-AzPostgreSqlFlexibleServerConfiguration" ], + "FullCommandName": [ "Update-AzPostgreSqlFlexibleServerConfiguration_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b3860315-5650-4cd3-8594-75c9e50b8660" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "1d2b4602-7d31-4cea-b013-65d85d1252dc" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T231254Z:1d2b4602-7d31-4cea-b013-65d85d1252dc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:12:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "529" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"value\":\"10240\",\"description\":\"Sets the amount of memory to be used by internal sort operations and hash tables before writing to temporary disk files.\",\"defaultValue\":\"4096\",\"dataType\":\"Integer\",\"allowedValues\":\"4096-2097151\",\"source\":\"user-override\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/work_mem\",\"name\":\"work_mem\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"}" + } + }, + "Update-AzPostgreSqlFlexibleServerConfiguration+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/configurations/work_mem?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/configurations/work_mem?api-version=2020-02-14-preview", + "Content": "{\r\n \"properties\": {\r\n \"value\": \"4096\",\r\n \"source\": \"user-override\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "81" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/45063307-4cbb-49c5-875b-ac9b1be719da?api-version=2020-02-14-preview" ], + "Retry-After": [ "10" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/45063307-4cbb-49c5-875b-ac9b1be719da?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "45063307-4cbb-49c5-875b-ac9b1be719da" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], + "x-ms-correlation-request-id": [ "8d316f4e-43ea-42be-86cd-9f0fe5361cca" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T231350Z:8d316f4e-43ea-42be-86cd-9f0fe5361cca" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:13:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "93" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpdateConfigurationManagementOperation\",\"startTime\":\"2020-11-12T23:13:50.087Z\"}" + } + }, + "Update-AzPostgreSqlFlexibleServerConfiguration+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/45063307-4cbb-49c5-875b-ac9b1be719da?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/45063307-4cbb-49c5-875b-ac9b1be719da?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "0d2522dd-c339-4bb3-bec1-5358822630ae" ], + "CommandName": [ "Az.PostgreSql.internal\\Update-AzPostgreSqlFlexibleServerConfiguration" ], + "FullCommandName": [ "Update-AzPostgreSqlFlexibleServerConfiguration_UpdateViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "10" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e0eaecb6-295b-4ac4-97cc-2f574eb66a7d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "7470c303-7a7d-46c7-806b-50707464fae2" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T231400Z:7470c303-7a7d-46c7-806b-50707464fae2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:13:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"45063307-4cbb-49c5-875b-ac9b1be719da\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-12T23:13:50.087Z\"}" + } + }, + "Update-AzPostgreSqlFlexibleServerConfiguration+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/configurations/work_mem?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/configurations/work_mem?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "0d2522dd-c339-4bb3-bec1-5358822630ae" ], + "CommandName": [ "Az.PostgreSql.internal\\Update-AzPostgreSqlFlexibleServerConfiguration" ], + "FullCommandName": [ "Update-AzPostgreSqlFlexibleServerConfiguration_UpdateViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ae44c7a3-26ef-4e0e-b726-8b8c1c1c2e00" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "a6044050-eb0a-487b-956d-364531d90c10" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T231400Z:a6044050-eb0a-487b-956d-364531d90c10" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:14:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "529" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"value\":\"4096\",\"description\":\"Sets the amount of memory to be used by internal sort operations and hash tables before writing to temporary disk files.\",\"defaultValue\":\"4096\",\"dataType\":\"Integer\",\"allowedValues\":\"4096-2097151\",\"source\":\"system-default\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/serversv2/postgresql-flexible-test-100/configurations/work_mem\",\"name\":\"work_mem\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/configurations\"}" + } + } +} \ No newline at end of file diff --git a/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerConfiguration.Tests.ps1 b/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerConfiguration.Tests.ps1 new file mode 100644 index 000000000000..2977b59c314a --- /dev/null +++ b/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerConfiguration.Tests.ps1 @@ -0,0 +1,27 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzPostgreSqlFlexibleServerConfiguration.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Update-AzPostgreSqlFlexibleServerConfiguration' { + It 'UpdateExpanded' { + $config = Update-AzPostgreSqlFlexibleServerConfiguration -Name work_mem -ResourceGroupName $env.resourceGroup -ServerName $env.flexibleServerName -Value 10240 + $config.Value | Should -Be 10240 + $config.DefaultValue | Should -Be 4096 + } + + It 'UpdateViaIdentityExpanded' { + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForPostgreSql/flexibleServers/$($env.flexibleServerName)/configurations/work_mem" + $config = Update-AzPostgreSqlFlexibleServerConfiguration -InputObject $ID -Value 4096 + $config.Value | Should -Be 4096 + $config.DefaultValue | Should -Be 4096 + } +} diff --git a/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerFirewallRule.Recording.json b/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerFirewallRule.Recording.json new file mode 100644 index 000000000000..01a0cb2a2d4f --- /dev/null +++ b/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerFirewallRule.Recording.json @@ -0,0 +1,582 @@ +{ + "Update-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"0.0.0.1\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "93" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/8d811bc8-fb0d-4944-aa41-d6f76e9be39e?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/8d811bc8-fb0d-4944-aa41-d6f76e9be39e?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8d811bc8-fb0d-4944-aa41-d6f76e9be39e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], + "x-ms-correlation-request-id": [ "c459562a-eac5-4f8d-9f6e-f3d5836f9bcc" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T231437Z:c459562a-eac5-4f8d-9f6e-f3d5836f9bcc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:14:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "99" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-12T23:14:37.497Z\"}" + } + }, + "Update-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/8d811bc8-fb0d-4944-aa41-d6f76e9be39e?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/8d811bc8-fb0d-4944-aa41-d6f76e9be39e?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "3abbc022-9fc3-4719-ba09-71a0566d22af" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b3592a54-8657-42c2-9f84-e978cfb7e185" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "559f31db-5e68-4562-bf2f-899fb0ccc6f9" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T231538Z:559f31db-5e68-4562-bf2f-899fb0ccc6f9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:15:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"8d811bc8-fb0d-4944-aa41-d6f76e9be39e\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-12T23:14:37.497Z\"}" + } + }, + "Update-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "3abbc022-9fc3-4719-ba09-71a0566d22af" ], + "CommandName": [ "Az.PostgreSql.internal\\New-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzPostgreSqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "73831a64-eca9-4c8d-bddd-0b9f401c9485" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "75e30b63-ea48-4a5d-9902-72549dd7906e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T231538Z:75e30b63-ea48-4a5d-9902-72549dd7906e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:15:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "159" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/firewallRules\"}" + } + }, + "Update-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.2\",\r\n \"endIpAddress\": \"0.0.0.3\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "93" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/2036f09b-622f-4e78-bcaa-666ff5efaa8e?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/2036f09b-622f-4e78-bcaa-666ff5efaa8e?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2036f09b-622f-4e78-bcaa-666ff5efaa8e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], + "x-ms-correlation-request-id": [ "63ceb51f-c169-41ad-8bf4-0b84be455401" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T231538Z:63ceb51f-c169-41ad-8bf4-0b84be455401" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:15:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "99" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-12T23:15:38.517Z\"}" + } + }, + "Update-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/2036f09b-622f-4e78-bcaa-666ff5efaa8e?api-version=2020-02-14-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/2036f09b-622f-4e78-bcaa-666ff5efaa8e?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "212f8565-919f-4c3a-b64d-319dab78fe75" ], + "CommandName": [ "Az.PostgreSql.internal\\Update-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Update-AzPostgreSqlFlexibleServerFirewallRule_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "be038722-2001-47bf-8f0b-1e6393679086" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-correlation-request-id": [ "1ca0ebd8-1064-4e2c-b5d3-b02efd178d3c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T231639Z:1ca0ebd8-1064-4e2c-b5d3-b02efd178d3c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:16:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"2036f09b-622f-4e78-bcaa-666ff5efaa8e\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-12T23:15:38.517Z\"}" + } + }, + "Update-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "212f8565-919f-4c3a-b64d-319dab78fe75" ], + "CommandName": [ "Az.PostgreSql.internal\\Update-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Update-AzPostgreSqlFlexibleServerFirewallRule_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "af205ca0-9962-49b3-9e20-502d9d7fb4d9" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "x-ms-correlation-request-id": [ "85a4b1cd-0263-4236-b91d-d701f6d64e80" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T231639Z:85a4b1cd-0263-4236-b91d-d701f6d64e80" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:16:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "159" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.2\",\"endIpAddress\":\"0.0.0.3\"},\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/firewallRules\"}" + } + }, + "Update-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+ClientIPAddress+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.2\",\r\n \"endIpAddress\": \"0.0.0.2\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "93" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/04a22503-26bd-48d1-ae3b-c33e10cecf5c?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/04a22503-26bd-48d1-ae3b-c33e10cecf5c?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "04a22503-26bd-48d1-ae3b-c33e10cecf5c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1193" ], + "x-ms-correlation-request-id": [ "ab3997ca-9e1e-45b8-b138-7d0abeadd92e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T231639Z:ab3997ca-9e1e-45b8-b138-7d0abeadd92e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:16:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "99" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-12T23:16:39.523Z\"}" + } + }, + "Update-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/04a22503-26bd-48d1-ae3b-c33e10cecf5c?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/04a22503-26bd-48d1-ae3b-c33e10cecf5c?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "17dde2c7-bb7d-4ea8-84a4-7c5a7d164b66" ], + "CommandName": [ "Az.PostgreSql.internal\\Update-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Update-AzPostgreSqlFlexibleServerFirewallRule_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9e53951d-5ba2-4b10-9a62-63dac0a7023a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "x-ms-correlation-request-id": [ "1b5c82cb-ab49-46c5-be67-64c8f8d36acd" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T231740Z:1b5c82cb-ab49-46c5-be67-64c8f8d36acd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:17:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"04a22503-26bd-48d1-ae3b-c33e10cecf5c\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-12T23:16:39.523Z\"}" + } + }, + "Update-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "17dde2c7-bb7d-4ea8-84a4-7c5a7d164b66" ], + "CommandName": [ "Az.PostgreSql.internal\\Update-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Update-AzPostgreSqlFlexibleServerFirewallRule_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "87b3f784-64cd-4255-a130-95938116f059" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], + "x-ms-correlation-request-id": [ "13ef521a-8b5b-4532-8c9d-ab02ea1ff9b4" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T231740Z:13ef521a-8b5b-4532-8c9d-ab02ea1ff9b4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:17:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "159" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.2\",\"endIpAddress\":\"0.0.0.2\"},\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/firewallRules\"}" + } + }, + "Update-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.4\",\r\n \"endIpAddress\": \"0.0.0.5\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "93" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/5ec82055-979b-43b1-8d3d-524584126bd5?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/5ec82055-979b-43b1-8d3d-524584126bd5?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5ec82055-979b-43b1-8d3d-524584126bd5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1192" ], + "x-ms-correlation-request-id": [ "a08f3e9f-61df-4641-b946-fcbd83957780" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T231741Z:a08f3e9f-61df-4641-b946-fcbd83957780" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:17:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "98" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-12T23:17:40.99Z\"}" + } + }, + "Update-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/5ec82055-979b-43b1-8d3d-524584126bd5?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/5ec82055-979b-43b1-8d3d-524584126bd5?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "23" ], + "x-ms-client-request-id": [ "60cf821d-6895-49e7-ab4e-95bdb15e3222" ], + "CommandName": [ "Az.PostgreSql.internal\\Update-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Update-AzPostgreSqlFlexibleServerFirewallRule_UpdateViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ca08e992-2472-48a3-a55b-0c9cc2cd25c6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "x-ms-correlation-request-id": [ "4c7c0218-71d4-4d1a-8962-5f2d904e08d7" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T231841Z:4c7c0218-71d4-4d1a-8962-5f2d904e08d7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:18:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"5ec82055-979b-43b1-8d3d-524584126bd5\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-12T23:17:40.99Z\"}" + } + }, + "Update-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "24" ], + "x-ms-client-request-id": [ "60cf821d-6895-49e7-ab4e-95bdb15e3222" ], + "CommandName": [ "Az.PostgreSql.internal\\Update-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Update-AzPostgreSqlFlexibleServerFirewallRule_UpdateViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "09c5dd6a-dd43-4759-ae07-adddca2b571d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "x-ms-correlation-request-id": [ "1544a38f-b4e9-46b4-a578-b8df768b0c05" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T231841Z:1544a38f-b4e9-46b4-a578-b8df768b0c05" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:18:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "159" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.4\",\"endIpAddress\":\"0.0.0.5\"},\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/firewallRules\"}" + } + }, + "Update-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+ClientIPAddressViaIdentity+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.9\",\r\n \"endIpAddress\": \"0.0.0.9\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "93" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/ef1ca829-b1a1-408f-9ea4-ea8d22b371c6?api-version=2020-02-14-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/ef1ca829-b1a1-408f-9ea4-ea8d22b371c6?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ef1ca829-b1a1-408f-9ea4-ea8d22b371c6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1191" ], + "x-ms-correlation-request-id": [ "e0a58b54-270f-4d34-868a-2e1ec1b46e15" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T231842Z:e0a58b54-270f-4d34-868a-2e1ec1b46e15" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:18:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "99" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-12T23:18:42.047Z\"}" + } + }, + "Update-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+ClientIPAddressViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/ef1ca829-b1a1-408f-9ea4-ea8d22b371c6?api-version=2020-02-14-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/ef1ca829-b1a1-408f-9ea4-ea8d22b371c6?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "4c657a31-7b18-4193-8932-6768e7609ea0" ], + "CommandName": [ "Az.PostgreSql.internal\\Update-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Update-AzPostgreSqlFlexibleServerFirewallRule_UpdateViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "98767882-e0f5-4198-af51-f86da909c149" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "x-ms-correlation-request-id": [ "0b65888a-3285-4bd3-abe0-6241461a0dc4" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T231942Z:0b65888a-3285-4bd3-abe0-6241461a0dc4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:19:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ef1ca829-b1a1-408f-9ea4-ea8d22b371c6\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-12T23:18:42.047Z\"}" + } + }, + "Update-AzPostgreSqlFlexibleServerFirewallRule+[NoContext]+ClientIPAddressViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-flexible-test-100/firewallRules/postgresqlrule01?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "27" ], + "x-ms-client-request-id": [ "4c657a31-7b18-4193-8932-6768e7609ea0" ], + "CommandName": [ "Az.PostgreSql.internal\\Update-AzPostgreSqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Update-AzPostgreSqlFlexibleServerFirewallRule_UpdateViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "eba779ad-11fa-4ad5-b0e6-1c7837ee43d8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], + "x-ms-correlation-request-id": [ "0fe39517-3189-4dd2-bb33-a608caacaf92" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T231942Z:0fe39517-3189-4dd2-bb33-a608caacaf92" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 23:19:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "159" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.9\",\"endIpAddress\":\"0.0.0.9\"},\"name\":\"postgresqlrule01\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers/firewallRules\"}" + } + } +} \ No newline at end of file diff --git a/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 b/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 new file mode 100644 index 000000000000..762fd300c027 --- /dev/null +++ b/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 @@ -0,0 +1,41 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzPostgreSqlFlexibleServerFirewallRule.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Update-AzPostgreSqlFlexibleServerFirewallRule' { + It 'UpdateExpanded' { + New-AzPostgreSqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.flexibleServerName -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 + $rule = Update-AzPostgreSqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.flexibleServerName -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 + $rule.StartIPAddress | Should -Be 0.0.0.2 + $rule.EndIPAddress | Should -Be 0.0.0.3 + } + + It 'ClientIPAddress' { + $rule = Update-AzPostgreSqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.flexibleServerName -ClientIPAddress 0.0.0.2 + $rule.StartIPAddress | Should -Be 0.0.0.2 + $rule.EndIPAddress | Should -Be 0.0.0.2 + } + + It 'UpdateViaIdentityExpanded' { + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForPostgreSql/flexibleServers/$($env.flexibleServerName)/firewallRules/$($env.firewallRuleName)" + $rule = Update-AzPostgreSqlFlexibleServerFirewallRule -InputObject $ID -EndIPAddress 0.0.0.5 -StartIPAddress 0.0.0.4 + $rule.StartIPAddress | Should -Be 0.0.0.4 + $rule.EndIPAddress | Should -Be 0.0.0.5 + } + + It 'ClientIPAddressViaIdentity' { + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForPostgreSql/flexibleServers/$($env.flexibleServerName)/firewallRules/$($env.firewallRuleName)" + $rule = Update-AzPostgreSqlFlexibleServerFirewallRule -InputObject $ID -ClientIPAddress 0.0.0.9 + $rule.StartIPAddress | Should -Be 0.0.0.9 + $rule.EndIPAddress | Should -Be 0.0.0.9 + } +} diff --git a/src/PostgreSql/test/Update-AzPostgreSqlServer.Recording.json b/src/PostgreSql/test/Update-AzPostgreSqlServer.Recording.json index e47ad126ae80..4e41392da190 100644 --- a/src/PostgreSql/test/Update-AzPostgreSqlServer.Recording.json +++ b/src/PostgreSql/test/Update-AzPostgreSqlServer.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzPostgreSqlServer+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+1": { + "Update-AzPostgreSqlServer+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", "Content": "{\r\n \"properties\": {\r\n \"sslEnforcement\": \"Disabled\"\r\n }\r\n}", "Headers": { }, @@ -16,9 +16,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/5e8ec5ca-e40e-43b4-8c6c-f6ef85a21500?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/5e8ec5ca-e40e-43b4-8c6c-f6ef85a21500?api-version=2017-12-01" ], "Retry-After": [ "60" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/5e8ec5ca-e40e-43b4-8c6c-f6ef85a21500?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/5e8ec5ca-e40e-43b4-8c6c-f6ef85a21500?api-version=2017-12-01" ], "x-ms-request-id": [ "5e8ec5ca-e40e-43b4-8c6c-f6ef85a21500" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1168" ], @@ -36,10 +36,10 @@ "Content": "{\"operation\":\"UpsertElasticServer\",\"startTime\":\"2020-09-25T11:51:30.63Z\"}" } }, - "Update-AzPostgreSqlServer+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/5e8ec5ca-e40e-43b4-8c6c-f6ef85a21500?api-version=2017-12-01+2": { + "Update-AzPostgreSqlServer+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/5e8ec5ca-e40e-43b4-8c6c-f6ef85a21500?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/5e8ec5ca-e40e-43b4-8c6c-f6ef85a21500?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/5e8ec5ca-e40e-43b4-8c6c-f6ef85a21500?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "280", "281" ], @@ -76,10 +76,10 @@ "Content": "{\"name\":\"5e8ec5ca-e40e-43b4-8c6c-f6ef85a21500\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:51:30.63Z\"}" } }, - "Update-AzPostgreSqlServer+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+3": { + "Update-AzPostgreSqlServer+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "280", "281", "282" ], @@ -112,13 +112,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"Master\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"Master\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "Update-AzPostgreSqlServer+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+1": { + "Update-AzPostgreSqlServer+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "283" ], @@ -151,13 +151,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"Master\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"Master\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } }, - "Update-AzPostgreSqlServer+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+2": { + "Update-AzPostgreSqlServer+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", "Content": "{\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 23\r\n }\r\n }\r\n}", "Headers": { }, @@ -171,9 +171,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/4813d211-dc05-4f2a-b283-3a93128d09a6?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/4813d211-dc05-4f2a-b283-3a93128d09a6?api-version=2017-12-01" ], "Retry-After": [ "60" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/4813d211-dc05-4f2a-b283-3a93128d09a6?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/4813d211-dc05-4f2a-b283-3a93128d09a6?api-version=2017-12-01" ], "x-ms-request-id": [ "4813d211-dc05-4f2a-b283-3a93128d09a6" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1167" ], @@ -191,10 +191,10 @@ "Content": "{\"operation\":\"UpsertElasticServer\",\"startTime\":\"2020-09-25T11:52:38.38Z\"}" } }, - "Update-AzPostgreSqlServer+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/4813d211-dc05-4f2a-b283-3a93128d09a6?api-version=2017-12-01+3": { + "Update-AzPostgreSqlServer+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/4813d211-dc05-4f2a-b283-3a93128d09a6?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/4813d211-dc05-4f2a-b283-3a93128d09a6?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/4813d211-dc05-4f2a-b283-3a93128d09a6?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "284", "285" ], @@ -231,10 +231,10 @@ "Content": "{\"name\":\"4813d211-dc05-4f2a-b283-3a93128d09a6\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:52:38.38Z\"}" } }, - "Update-AzPostgreSqlServer+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+4": { + "Update-AzPostgreSqlServer+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "284", "285", "286" ], @@ -267,7 +267,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":23,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"Master\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"postgresql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":23,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"9.6\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"postgresql-test-100.postgres.database.azure.com\",\"earliestRestoreDate\":\"2020-09-25T11:09:04.307+00:00\",\"replicationRole\":\"Master\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus2euap\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBForPostgreSQL/servers\"}" } } } \ No newline at end of file diff --git a/src/PostgreSql/test/Update-AzPostgreSqlVirtualNetworkRule.Recording.json b/src/PostgreSql/test/Update-AzPostgreSqlVirtualNetworkRule.Recording.json index f669d558c848..46b5fe61f50a 100644 --- a/src/PostgreSql/test/Update-AzPostgreSqlVirtualNetworkRule.Recording.json +++ b/src/PostgreSql/test/Update-AzPostgreSqlVirtualNetworkRule.Recording.json @@ -1,9 +1,9 @@ { - "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+1": { + "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", - "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1\"\r\n }\r\n}", "Headers": { }, "ContentHeaders": { @@ -16,9 +16,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/0f9f4135-7196-4df0-9d58-5b949024dee9?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/0f9f4135-7196-4df0-9d58-5b949024dee9?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/0f9f4135-7196-4df0-9d58-5b949024dee9?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/0f9f4135-7196-4df0-9d58-5b949024dee9?api-version=2017-12-01" ], "x-ms-request-id": [ "0f9f4135-7196-4df0-9d58-5b949024dee9" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1166" ], @@ -36,10 +36,10 @@ "Content": "{\"operation\":\"UpsertElasticServerVnetFirewallRule\",\"startTime\":\"2020-09-25T11:53:40.96Z\"}" } }, - "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/0f9f4135-7196-4df0-9d58-5b949024dee9?api-version=2017-12-01+2": { + "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/0f9f4135-7196-4df0-9d58-5b949024dee9?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/0f9f4135-7196-4df0-9d58-5b949024dee9?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/0f9f4135-7196-4df0-9d58-5b949024dee9?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "287", "288" ], @@ -76,10 +76,10 @@ "Content": "{\"name\":\"0f9f4135-7196-4df0-9d58-5b949024dee9\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:53:40.96Z\"}" } }, - "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+3": { + "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "287", "288", "289" ], @@ -112,14 +112,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBforPostgreSQL/servers/virtualNetworkRules\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBForPostgreSQL/servers/virtualNetworkRules\"}" } }, - "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+4": { + "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", - "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet2\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet2\"\r\n }\r\n}", "Headers": { }, "ContentHeaders": { @@ -132,9 +132,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/0a57e192-37c3-40bf-acbc-3aca86726ce7?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/0a57e192-37c3-40bf-acbc-3aca86726ce7?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/0a57e192-37c3-40bf-acbc-3aca86726ce7?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/0a57e192-37c3-40bf-acbc-3aca86726ce7?api-version=2017-12-01" ], "x-ms-request-id": [ "0a57e192-37c3-40bf-acbc-3aca86726ce7" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1165" ], @@ -152,10 +152,10 @@ "Content": "{\"operation\":\"UpsertElasticServerVnetFirewallRule\",\"startTime\":\"2020-09-25T11:54:13.27Z\"}" } }, - "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/0a57e192-37c3-40bf-acbc-3aca86726ce7?api-version=2017-12-01+5": { + "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/0a57e192-37c3-40bf-acbc-3aca86726ce7?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/0a57e192-37c3-40bf-acbc-3aca86726ce7?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/0a57e192-37c3-40bf-acbc-3aca86726ce7?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "290", "291" ], @@ -192,10 +192,10 @@ "Content": "{\"name\":\"0a57e192-37c3-40bf-acbc-3aca86726ce7\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:54:13.27Z\"}" } }, - "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+6": { + "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "290", "291", "292" ], @@ -228,13 +228,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet2\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBforPostgreSQL/servers/virtualNetworkRules\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet2\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBForPostgreSQL/servers/virtualNetworkRules\"}" } }, - "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+7": { + "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+7": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "293" ], @@ -253,9 +253,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/1a308fbb-1c9e-413c-9ae2-09e5659e6d0d?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/1a308fbb-1c9e-413c-9ae2-09e5659e6d0d?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/1a308fbb-1c9e-413c-9ae2-09e5659e6d0d?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/1a308fbb-1c9e-413c-9ae2-09e5659e6d0d?api-version=2017-12-01" ], "x-ms-request-id": [ "1a308fbb-1c9e-413c-9ae2-09e5659e6d0d" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14978" ], @@ -273,10 +273,10 @@ "Content": "{\"operation\":\"DropElasticServerVnetFirewallRule\",\"startTime\":\"2020-09-25T11:54:46.27Z\"}" } }, - "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/1a308fbb-1c9e-413c-9ae2-09e5659e6d0d?api-version=2017-12-01+8": { + "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/1a308fbb-1c9e-413c-9ae2-09e5659e6d0d?api-version=2017-12-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/1a308fbb-1c9e-413c-9ae2-09e5659e6d0d?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/1a308fbb-1c9e-413c-9ae2-09e5659e6d0d?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "293", "294" ], @@ -313,10 +313,10 @@ "Content": "{\"name\":\"1a308fbb-1c9e-413c-9ae2-09e5659e6d0d\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:54:46.27Z\"}" } }, - "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/1a308fbb-1c9e-413c-9ae2-09e5659e6d0d?api-version=2017-12-01+9": { + "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/1a308fbb-1c9e-413c-9ae2-09e5659e6d0d?api-version=2017-12-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/1a308fbb-1c9e-413c-9ae2-09e5659e6d0d?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/1a308fbb-1c9e-413c-9ae2-09e5659e6d0d?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "293", "294", "295" ], @@ -351,11 +351,11 @@ "Content": null } }, - "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+1": { + "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", - "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1\"\r\n }\r\n}", "Headers": { }, "ContentHeaders": { @@ -368,9 +368,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/9d16ebdd-72c9-4a8e-8943-fb21dec6e3bc?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/9d16ebdd-72c9-4a8e-8943-fb21dec6e3bc?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/9d16ebdd-72c9-4a8e-8943-fb21dec6e3bc?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/9d16ebdd-72c9-4a8e-8943-fb21dec6e3bc?api-version=2017-12-01" ], "x-ms-request-id": [ "9d16ebdd-72c9-4a8e-8943-fb21dec6e3bc" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1164" ], @@ -388,10 +388,10 @@ "Content": "{\"operation\":\"UpsertElasticServerVnetFirewallRule\",\"startTime\":\"2020-09-25T11:55:03.52Z\"}" } }, - "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/9d16ebdd-72c9-4a8e-8943-fb21dec6e3bc?api-version=2017-12-01+2": { + "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/9d16ebdd-72c9-4a8e-8943-fb21dec6e3bc?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/9d16ebdd-72c9-4a8e-8943-fb21dec6e3bc?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/9d16ebdd-72c9-4a8e-8943-fb21dec6e3bc?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "296", "297" ], @@ -428,10 +428,10 @@ "Content": "{\"name\":\"9d16ebdd-72c9-4a8e-8943-fb21dec6e3bc\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:55:03.52Z\"}" } }, - "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+3": { + "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "296", "297", "298" ], @@ -464,14 +464,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBforPostgreSQL/servers/virtualNetworkRules\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBForPostgreSQL/servers/virtualNetworkRules\"}" } }, - "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+4": { + "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", - "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet2\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet2\"\r\n }\r\n}", "Headers": { }, "ContentHeaders": { @@ -484,9 +484,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/fd8f3120-955d-409c-a4c9-aa62c99b86bc?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/fd8f3120-955d-409c-a4c9-aa62c99b86bc?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/fd8f3120-955d-409c-a4c9-aa62c99b86bc?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/fd8f3120-955d-409c-a4c9-aa62c99b86bc?api-version=2017-12-01" ], "x-ms-request-id": [ "fd8f3120-955d-409c-a4c9-aa62c99b86bc" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1163" ], @@ -504,10 +504,10 @@ "Content": "{\"operation\":\"UpsertElasticServerVnetFirewallRule\",\"startTime\":\"2020-09-25T11:55:35.9Z\"}" } }, - "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/fd8f3120-955d-409c-a4c9-aa62c99b86bc?api-version=2017-12-01+5": { + "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/fd8f3120-955d-409c-a4c9-aa62c99b86bc?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/fd8f3120-955d-409c-a4c9-aa62c99b86bc?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/fd8f3120-955d-409c-a4c9-aa62c99b86bc?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "299", "300" ], @@ -544,10 +544,10 @@ "Content": "{\"name\":\"fd8f3120-955d-409c-a4c9-aa62c99b86bc\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:55:35.9Z\"}" } }, - "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+6": { + "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "299", "300", "301" ], @@ -580,13 +580,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet2\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBforPostgreSQL/servers/virtualNetworkRules\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet2\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet\",\"name\":\"postgresqlvnet\",\"type\":\"Microsoft.DBForPostgreSQL/servers/virtualNetworkRules\"}" } }, - "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+7": { + "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+7": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "302" ], @@ -605,9 +605,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/7c4bd3c2-931a-4354-8f49-3f3d2887149d?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/7c4bd3c2-931a-4354-8f49-3f3d2887149d?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/7c4bd3c2-931a-4354-8f49-3f3d2887149d?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/7c4bd3c2-931a-4354-8f49-3f3d2887149d?api-version=2017-12-01" ], "x-ms-request-id": [ "7c4bd3c2-931a-4354-8f49-3f3d2887149d" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14977" ], @@ -625,10 +625,10 @@ "Content": "{\"operation\":\"DropElasticServerVnetFirewallRule\",\"startTime\":\"2020-09-25T11:56:08.167Z\"}" } }, - "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/7c4bd3c2-931a-4354-8f49-3f3d2887149d?api-version=2017-12-01+8": { + "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/7c4bd3c2-931a-4354-8f49-3f3d2887149d?api-version=2017-12-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/7c4bd3c2-931a-4354-8f49-3f3d2887149d?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/azureAsyncOperation/7c4bd3c2-931a-4354-8f49-3f3d2887149d?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "302", "303" ], @@ -665,10 +665,10 @@ "Content": "{\"name\":\"7c4bd3c2-931a-4354-8f49-3f3d2887149d\",\"status\":\"Succeeded\",\"startTime\":\"2020-09-25T11:56:08.167Z\"}" } }, - "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/7c4bd3c2-931a-4354-8f49-3f3d2887149d?api-version=2017-12-01+9": { + "Update-AzPostgreSqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/7c4bd3c2-931a-4354-8f49-3f3d2887149d?api-version=2017-12-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/7c4bd3c2-931a-4354-8f49-3f3d2887149d?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForPostgreSQL/locations/eastus2euap/operationResults/7c4bd3c2-931a-4354-8f49-3f3d2887149d?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "302", "303", "304" ], diff --git a/src/PostgreSql/test/Update-AzPostgreSqlVirtualNetworkRule.Tests.ps1 b/src/PostgreSql/test/Update-AzPostgreSqlVirtualNetworkRule.Tests.ps1 index e406f35e3439..b6621a2c4e86 100644 --- a/src/PostgreSql/test/Update-AzPostgreSqlVirtualNetworkRule.Tests.ps1 +++ b/src/PostgreSql/test/Update-AzPostgreSqlVirtualNetworkRule.Tests.ps1 @@ -13,18 +13,18 @@ while(-not $mockingPath) { Describe 'Update-AzPostgreSqlVirtualNetworkRule' { It 'UpdateExpanded' { - $ID1 = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1" + $ID1 = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1" New-AzPostgreSqlVirtualNetworkRule -Name $env.VNetName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -SubnetId $ID1 - $ID2 = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet2" + $ID2 = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet2" $rule = Update-AzPostgreSqlVirtualNetworkRule -Name $env.VNetName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -SubnetId $ID2 $rule.VirtualNetworkSubnetId | Should -Be $ID2 Remove-AzPostgreSqlVirtualNetworkRule -Name $env.VNetName -ResourceGroupName $env.resourceGroup-ServerName $env.serverName } - It 'UpdateViaIdentityExpanded' { - $SubnetID1 = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1" + It 'UpdateViaIdentityExpanded' -Skip { + $SubnetID1 = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1" New-AzPostgreSqlVirtualNetworkRule -Name $env.VNetName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -SubnetId $SubnetID1 - $SubnetID2 = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet2" + $SubnetID2 = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet2" $VNetId = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBforPostgreSQL/servers/$($env.serverName)/virtualNetworkRules/$($env.VNetName)" $rule = Update-AzPostgreSqlVirtualNetworkRule -InputObject $VNetId -SubnetId $SubnetID2 $rule.VirtualNetworkSubnetId | Should -Be $SubnetID2 diff --git a/src/PostgreSql/test/deployment-templates/virtual-network/template.json b/src/PostgreSql/test/deployment-templates/virtual-network/template.json index b05a6e98ff62..87c14629d327 100644 --- a/src/PostgreSql/test/deployment-templates/virtual-network/template.json +++ b/src/PostgreSql/test/deployment-templates/virtual-network/template.json @@ -4,7 +4,7 @@ "parameters": { "vnetName": { "type": "string", - "defaultValue": "MySqlVNet", + "defaultValue": "PostgreSqlVnet", "metadata": { "description": "VNet name" } diff --git a/src/PostgreSql/test/env.json b/src/PostgreSql/test/env.json index 88d516128105..476695bba816 100644 --- a/src/PostgreSql/test/env.json +++ b/src/PostgreSql/test/env.json @@ -1,15 +1,19 @@ { - "SubscriptionId": "9e223dbe-3399-4e19-88eb-0975f02ac87f", - "resourceGroup": "PostgreSqlTest", - "serverName2": "postgresql-test-100-2", - "Sku": "GP_Gen5_4", - "restoreName2": "postgresql-test-100-restore-2", - "firewallRuleName2": "postgresqlrule02", - "replicaName": "postgresql-test-100-replica", - "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", "firewallRuleName": "postgresqlrule01", + "SubscriptionId": "7fec3109-5b78-4a24-b834-5d47d63e2596", + "replicaName": "postgresql-test-100-replica", "VNetName": "postgresqlvnet", + "SubnetName": "postgresql-subnet", + "firewallRuleName2": "postgresqlrule02", + "serverName2": "postgresql-test-200", + "serverName3": "postgresql-test-300", "serverName": "postgresql-test-100", + "flexibleServerName": "postgresql-flexible-test-100", + "location": "eastus2euap", + "resourceGroup": "PostgreSqlTest", "restoreName": "postgresql-test-100-restore", - "location": "eastus" + "Sku": "GP_Gen5_4", + "FlexibleSku": "GP_Gen5_4", + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "restoreName2": "postgresql-test-100-restore-2" } diff --git a/src/PostgreSql/test/localEnv.json b/src/PostgreSql/test/localEnv.json index f34828afbba7..9496336fabd9 100644 --- a/src/PostgreSql/test/localEnv.json +++ b/src/PostgreSql/test/localEnv.json @@ -1,15 +1,17 @@ { - "replicaName": "postgresql-test-100-replica", - "Sku": "GP_Gen5_4", - "firewallRuleName2": "postgresqlrule02", - "VNetName": "postgresqlvnet", + "SubscriptionId": "7fec3109-5b78-4a24-b834-5d47d63e2596", + "resourceGroup": "PostgreSqlTest", "serverName": "postgresql-test-100", + "flexibleServerName": "postgresql-flexible-test-100", + "replicaName": "postgresql-test-100-replica", "firewallRuleName": "postgresqlrule01", - "location": "eastus", - "restoreName2": "postgresql-test-100-restore-2", - "serverName2": "postgresql-test-100-2", + "FlexibleSku": "Standard_D2s_v3", "restoreName": "postgresql-test-100-restore", - "SubscriptionId": "9e223dbe-3399-4e19-88eb-0975f02ac87f", + "restoreName2": "postgresql-test-100-restore-2", + "VNetName": "postgresqlvnet", + "location": "eastus2euap", + "serverName2": "postgresql-test-200", "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "resourceGroup": "PostgreSqlTest" + "firewallRuleName2": "postgresqlrule02", + "Sku": "GP_Gen5_4" } diff --git a/src/PostgreSql/test/utils.ps1 b/src/PostgreSql/test/utils.ps1 index 255d0b26b83b..73a3c0f6dc5c 100644 --- a/src/PostgreSql/test/utils.ps1 +++ b/src/PostgreSql/test/utils.ps1 @@ -13,38 +13,71 @@ function setupEnv() { $env.SubscriptionId = (Get-AzContext).Subscription.Id $env.Tenant = (Get-AzContext).Tenant.Id # For any resources you created for test, you should add it to $env here. - $env.Add("serverName2", "postgresql-test-100-2") - $env.Add("restoreName", "postgresql-test-100-restore") - $env.Add("restoreName2", "postgresql-test-100-restore-2") - $env.Add("replicaName", "postgresql-test-100-replica") - $env.Add("firewallRuleName", "postgresqlrule01") - $env.Add("firewallRuleName2", "postgresqlrule02") - $env.Add("VNetName", "postgresqlvnet") - - # Create the test group - write-host "start to create test group." + #[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine")] + $password = 'Pa88word!' | ConvertTo-SecureString -AsPlainText -Force + $serverName = "postgresql-test-100" + $serverName2 = "postgresql-test-200" + $serverName3 = "postgresql-test-300" + $restoreName = "postgresql-test-100-restore" + $restoreName2 = "postgresql-test-100-restore-2" + $replicaName = "postgresql-test-100-replica" + $firewallRuleName = "postgresqlrule01" + $firewallRuleName2 = "postgresqlrule02" + $VNetName = "postgresqlvnet" + $SubnetName = "postgresql-subnet" $resourceGroup = "PostgreSqlTest" - $location = "eastus" + $location = "eastus2euap" + $Sku = "GP_Gen5_4" + $FlexibleSku = "Standard_D2s_v3" + if ($TestMode -eq 'live') { + $PowershellPrefix = "powershell-pipeline-postgres-" + $RandomNumbers = "" + for($i = 0; $i -lt 10; $i++){ $RandomNumbers += Get-Random -Maximum 10 } + $serverName = $PowershellPrefix + "server" + $RandomNumbers + $serverName2 = $PowershellPrefix + "2-flexibleserver" + $RandomNumbers + $serverName3 = $PowershellPrefix + "3-flexibleserver" + $RandomNumbers + $flexibleServerName = $PowershellPrefix + "flexibleserver" + $RandomNumbers + $resourceGroup = $PowershellPrefix + "group" + $RandomNumbers + $restoreName = $PowershellPrefix + "restore-server" + $RandomNumbers + $restoreName2 = $PowershellPrefix + "2-restore-server" + $RandomNumbers + $restoreName = $PowershellPrefix + "replica-server" + $RandomNumbers + $firewallRuleName = $PowershellPrefix + "firewallrule" + $RandomNumbers + } + + + $env.Add("serverName", $serverName) + $env.Add("flexibleServerName", $flexibleServerName) + $env.Add("serverName2", $serverName2) + $env.Add("serverName3", $serverName3) + $env.Add("restoreName", $restoreName) + $env.Add("restoreName2", $restoreName2) + $env.Add("replicaName", $replicaName) + $env.Add("firewallRuleName", $firewallRuleName) + $env.Add("firewallRuleName2", $firewallRuleName2) + $env.Add("VNetName", $VNetName) + $env.Add("SubnetName", $SubnetName) $env.Add("resourceGroup", $resourceGroup) $env.Add("location", $location) + + $env.Add("Sku", $Sku) + $env.Add("FlexibleSku", $FlexibleSku) + + # Create the test group + write-host "start to create test group." New-AzResourceGroup -Name $resourceGroup -Location $location # Create the test Vnet write-host "Deploy Vnet template" - New-AzDeployment -Mode Incremental -TemplateFile .\test\deployment-templates\virtual-network\template.json -TemplateParameterFile .\test\deployment-templates\virtual-network\parameters.json -Name vn -ResourceGroupName $resourceGroup - - #[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine")] - $password = 'Pa88word!' | ConvertTo-SecureString -AsPlainText -Force - $serverName = "postgresql-test-100" - $env.Add("serverName", $serverName) - $Sku = "GP_Gen5_4" - $env.Add("Sku", $Sku) + New-AzDeployment -Mode Incremental -TemplateFile .\test\deployment-templates\virtual-network\template.json -TemplateParameterFile .\test\deployment-templates\virtual-network\parameters.json -Name vn -ResourceGroupName $resourceGroup write-host (Get-AzContext | Out-String) write-host "New-AzPostgreSqlServer -Name $serverName -ResourceGroupName $resourceGroup -Location $location -AdministratorUserName postgresql_test -AdministratorLoginPassword $password -Sku $Sku" New-AzPostgreSqlServer -Name $serverName -ResourceGroupName $resourceGroup -Location $location -AdministratorUserName postgresql_test -AdministratorLoginPassword $password -Sku $Sku + write-host "New-AzPostgreSqlFlexibleServer -Name $serverName -ResourceGroupName $resourceGroup -AdministratorUserName adminuser -AdministratorLoginPassword $password -Location $location -PublicAccess all" + New-AzPostgreSqlFlexibleServer -Name $serverName -ResourceGroupName $resourceGroup -AdministratorUserName adminuser -AdministratorLoginPassword $password -Location $location -PublicAccess all + $envFile = 'env.json' if ($TestMode -eq 'live') { $envFile = 'localEnv.json' @@ -57,4 +90,3 @@ function cleanupEnv() { write-host "Clean resources you create for testing." Remove-AzResourceGroup -Name $env.resourceGroup } - diff --git a/src/PostgreSql/utils/adjectives.txt b/src/PostgreSql/utils/adjectives.txt new file mode 100644 index 000000000000..cea08ef79731 --- /dev/null +++ b/src/PostgreSql/utils/adjectives.txt @@ -0,0 +1,166 @@ +aboard +acidic +admired +adoring +ajar +alert +amazed +amused +angry +annoyed +anxious +aquatic +ardent +ashamed +awed +best +bored +bossy +bouncy +bright +broken +bubbly +calm +cocky +cold +common +content +cranky +crass +cruel +crushed +curious +curly +cynical +dim +direful +dopey +dreary +eager +earthy +eatable +elastic +elderly +empty +enraged +entire +envious +excited +exotic +famous +fearful +fixed +fluid +formal +free +giddy +gleeful +gloomy +goofy +gross +grouchy +guilty +harsh +hateful +hopeful +hostile +hurt +impish +insane +irate +jealous +joyful +junior +kind +last +lazy +lethal +level +liquid +longing +loving +lowly +loyal +macho +mad +male +measly +medical +mellow +merry +mild +misty +moral +morbid +muddled +near +needful +needy +next +noted +obvious +overt +panicky +pensive +picky +pitiful +playful +pleased +private +prize +proud +prudent +puffy +puzzled +rabid +remote +rigid +rowdy +rundown +sad +sane +scared +seemly +selfish +serene +shocked +shoddy +shy +sincere +sinful +smug +solemn +somber +sorry +sour +speedy +starchy +stark +stingy +supreme +swanky +tenuous +third +trusty +typical +uneven +unhappy +unlined +unruly +untrue +upset +valid +venal +verdant +vibrant +violent +vulgar +wacky +weary +weekly +wistful +wornout +worried +yawning +zesty +zippy diff --git a/src/PostgreSql/utils/nouns.txt b/src/PostgreSql/utils/nouns.txt new file mode 100644 index 000000000000..8ea70f70f7a5 --- /dev/null +++ b/src/PostgreSql/utils/nouns.txt @@ -0,0 +1,138 @@ +abalone +apple +auk +avocet +baboon +badger +bagels +basmati +beaver +bittern +boars +bobcat +bongo +buffalo +bustard +cake +camel +caribou +cattle +caviar +cheese +cheetah +chile +chowder +clam +cobra +coconut +cod +colt +coot +cordial +coyote +dingo +donkey +dunbird +dunnock +eagle +eggs +eland +elk +falcon +ferret +fish +garlic +gelding +gerbil +giraffe +gnat +goose +goshawk +granola +grouse +gull +hamster +hare +hawk +hinds +hoopoe +hornet +hound +hyena +ibexe +ibis +iguana +jay +jerky +kapi +kitten +lapwing +lard +linnet +lion +lizard +llama +lollies +macaw +magpie +mare +marten +mole +moth +muesli +oatmeal +oil +opossum +orange +ostrich +owl +ox +oxbird +paella +parrot +peacock +pear +penguin +pepper +pie +plover +polenta +poultry +pudding +quiche +raccoon +raisins +redwing +relish +rice +robin +roedeer +ruffs +salami +salt +sausage +seafowl +shads +shrimp +smelt +snail +snipe +sparrow +stoat +stork +syrup +tacos +tamarin +termite +thrushe +tomatoe +toucan +truffle +turtle +venison +vulture +walrus +wasp +widgeon +wigeon +wildcat \ No newline at end of file