diff --git a/src/PostgreSql/Az.PostgreSql.format.ps1xml b/src/PostgreSql/Az.PostgreSql.format.ps1xml index 51fe05d536e1..2516a6fa6abb 100644 --- a/src/PostgreSql/Az.PostgreSql.format.ps1xml +++ b/src/PostgreSql/Az.PostgreSql.format.ps1xml @@ -1065,9 +1065,6 @@ - - - @@ -1105,9 +1102,6 @@ AdministratorLogin - - AdministratorLoginPassword - @@ -1400,9 +1394,6 @@ - - - @@ -1422,9 +1413,6 @@ - - AdministratorLoginPassword - MinimalTlsVersion @@ -2345,9 +2333,6 @@ - - - @@ -2394,9 +2379,6 @@ AdministratorLogin - - AdministratorLoginPassword - AvailabilityZone @@ -2470,9 +2452,6 @@ - - - @@ -2480,9 +2459,6 @@ - - AdministratorLoginPassword - HaEnabled diff --git a/src/PostgreSql/Az.PostgreSql.psd1 b/src/PostgreSql/Az.PostgreSql.psd1 index 687cebed6732..a9715105d7b1 100644 --- a/src/PostgreSql/Az.PostgreSql.psd1 +++ b/src/PostgreSql/Az.PostgreSql.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2/5/2021 +# Generated on: 2/23/2021 # @{ @@ -12,7 +12,7 @@ RootModule = './Az.PostgreSql.psm1' # Version number of this module. -ModuleVersion = '0.4.0' +ModuleVersion = '0.1.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -45,7 +45,7 @@ PowerShellVersion = '5.1' DotNetFrameworkVersion = '4.7.2' # Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -# CLRVersion = '' +# ClrVersion = '' # Processor architecture (None, X86, Amd64) required by this module # ProcessorArchitecture = '' @@ -54,7 +54,7 @@ DotNetFrameworkVersion = '4.7.2' RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.5'; }) # Assemblies that must be loaded prior to importing this module -RequiredAssemblies = 'bin\Az.PostgreSql.private.dll' +RequiredAssemblies = './bin/Az.PostgreSql.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. # ScriptsToProcess = @() @@ -63,7 +63,7 @@ RequiredAssemblies = 'bin\Az.PostgreSql.private.dll' # TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = 'Az.PostgreSql.format.ps1xml' +FormatsToProcess = './Az.PostgreSql.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess # NestedModules = @() @@ -135,7 +135,7 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Added cmdlet ''Test-AzPostgreSqlFlexibleServerConnect''' + # ReleaseNotes = '' # Prerelease string of this module # Prerelease = '' diff --git a/src/PostgreSql/ChangeLog.md b/src/PostgreSql/ChangeLog.md index 4aa03a25ff2b..b335abef3f8e 100644 --- a/src/PostgreSql/ChangeLog.md +++ b/src/PostgreSql/ChangeLog.md @@ -18,6 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release +* Added maintenance windows parameter to Update-AzPostgreSqlFlexibleServer cmdlet +* Added zone parameter to server New/Restore-PostgresSqlFlexibleServer cmdlet. ## Version 0.4.0 * Added cmdlet `Test-AzPostgreSqlFlexibleServerConnect` diff --git a/src/PostgreSql/custom/New-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/custom/New-AzPostgreSqlFlexibleServer.ps1 index 34cc06cab661..0db92209ecf9 100644 --- a/src/PostgreSql/custom/New-AzPostgreSqlFlexibleServer.ps1 +++ b/src/PostgreSql/custom/New-AzPostgreSqlFlexibleServer.ps1 @@ -23,6 +23,7 @@ $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}$' +$SERVICE_ENDPOINT = "Microsoft.Storage" function New-AzPostgreSqlFlexibleServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated])] @@ -46,6 +47,11 @@ function New-AzPostgreSqlFlexibleServer { [System.String] ${SubscriptionId}, + [Parameter(HelpMessage = 'Availability zone into which to provision the resource.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.String] + ${Zone}, + [Parameter(HelpMessage = 'The location the resource resides in.')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] [System.String] @@ -188,6 +194,11 @@ function New-AzPostgreSqlFlexibleServer { $PSBoundParameters.Location = 'eastus' } + if ($PSBoundParameters.ContainsKey('Zone')) { + $PSBoundParameters.AvailabilityZone = $PSBoundParameters.Zone + $null = $PSBoundParameters.Remove('Zone') + } + if (!$PSBoundParameters.ContainsKey('AdministratorLoginPassword')) { $Password = Get-GeneratePassword $PSBoundParameters.AdministratorLoginPassword = $Password | ConvertTo-SecureString -AsPlainText -Force @@ -471,7 +482,7 @@ function CreateAndDelegateSubnet($Parameters) { 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 + Add-AzVirtualNetworkSubnetConfig -Name $Parameters.SubnetName -VirtualNetwork $Vnet -AddressPrefix $Parameters.SubnetPrefix -Delegation $Delegation -ServiceEndpoint $SERVICE_ENDPOINT | Set-AzVirtualNetwork } else { # check if existing subnet is delegated $Delegations = Get-AzDelegation -Subnet $Subnet @@ -516,6 +527,7 @@ function CreateFirewallRule($FirewallRuleParameters) { } elseif ($StartIP -eq $EndIP) { $Msg = 'Configuring server firewall rule to accept connections from ' + $StartIP + $RuleName = "FirewallIPAddress_" + $Date } else { $Msg = 'Configuring server firewall rule to accept connections from {0} to {1}' -f $StartIP, $EndIp diff --git a/src/PostgreSql/custom/Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore.ps1 b/src/PostgreSql/custom/Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore.ps1 index 459c3ecd4737..5d9bdc9ca1bb 100644 --- a/src/PostgreSql/custom/Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore.ps1 +++ b/src/PostgreSql/custom/Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore.ps1 @@ -46,6 +46,11 @@ function Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore { [System.DateTime] ${RestorePointInTime}, + [Parameter(HelpMessage = 'Availability zone into which to provision the resource.')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.String] + ${Zone}, + [Parameter(Mandatory, HelpMessage = 'The location the resource resides in.')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] [System.String] @@ -119,6 +124,10 @@ function Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore { $PSBoundParameters.PointInTimeUTC = $PSBoundParameters["RestorePointInTime"] $null = $PSBoundParameters.Remove('RestorePointInTime') + if ($PSBoundParameters.ContainsKey('Zone')) { + $PSBoundParameters.AvailabilityZone = $PSBoundParameters.Zone + $null = $PSBoundParameters.Remove('Zone') + } Az.PostgreSql.internal\New-AzPostgreSqlFlexibleServer @PSBoundParameters } catch { diff --git a/src/PostgreSql/custom/Update-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/custom/Update-AzPostgreSqlFlexibleServer.ps1 index 4a234ab9fe31..a8f8fe97203b 100644 --- a/src/PostgreSql/custom/Update-AzPostgreSqlFlexibleServer.ps1 +++ b/src/PostgreSql/custom/Update-AzPostgreSqlFlexibleServer.ps1 @@ -61,12 +61,12 @@ function Update-AzPostgreSqlFlexibleServer { [System.String] ${ReplicationRole}, - [Parameter(HelpMessage='The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.')] + [Parameter(HelpMessage='The name of the sku, e.g. Burstable_B1ms, Standard_D2ds_v4')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] [System.String] ${Sku}, - [Parameter(HelpMessage='The tier of the particular SKU, e.g. Basic.')] + [Parameter(HelpMessage='The tier of the particular SKU. Accepted values: Burstable, GeneralPurpose, Memory Optimized. Default: Burstable.')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier])] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier] @@ -76,6 +76,7 @@ function Update-AzPostgreSqlFlexibleServer { [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum])] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum] + [Validateset('Enabled', 'Disabled')] # Enable HA or not for a server. ${HaEnabled}, @@ -83,6 +84,7 @@ function Update-AzPostgreSqlFlexibleServer { [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum])] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum] + [Validateset('Enabled', 'Disabled')] ${SslEnforcement}, [Parameter(HelpMessage='Backup retention days for the server. Day count is between 7 and 35.')] @@ -90,6 +92,11 @@ function Update-AzPostgreSqlFlexibleServer { [System.Int32] ${BackupRetentionDay}, + [Parameter(HelpMessage='Period of time (UTC) designated for maintenance. Examples: "Sun:23:30" to schedule on Sunday, 11:30pm UTC. To set back to default pass in "Disabled"')] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.String] + ${MaintenanceWindow}, + [Parameter(HelpMessage='Enable Storage Auto Grow.')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow])] [Validateset('Enabled', 'Disabled')] @@ -186,7 +193,39 @@ function Update-AzPostgreSqlFlexibleServer { $null = $PSBoundParameters.Remove('StorageAutogrow') } - + if ($PSBoundParameters.ContainsKey('MaintenanceWindow')) { + + $PSBoundParameters.MaintenanceWindowDayOfWeek = $null + $PSBoundParameters.MaintenanceWindowStartHour = $null + $PSBoundParameters.MaintenanceWindowStartMinute = $null + + if ($PSBoundParameters.MaintenanceWindow.ToLower() -eq "disabled"){ + $PSBoundParameters.MaintenanceWindowDayOfWeek = 0 + $PSBoundParameters.MaintenanceWindowStartHour = 0 + $PSBoundParameters.MaintenanceWindowStartMinute = 0 + $PSBoundParameters.MaintenanceWindowCustomWindow = "Disabled" + } + else { + $ParsedWindow = $PSBoundParameters.MaintenanceWindow -split ":" + $DaytoNumber = @{Mon = 1; Tue = 2; Wed = 3; Thur = 4; Fri = 5; Sat = 6; Sun = 0} + + if ($ParsedWindow.Length -ge 1){ + $PSBoundParameters.MaintenanceWindowDayOfWeek = $DaytoNumber[$ParsedWindow[0]] + } + + if ($ParsedWindow.Length -ge 2){ + $PSBoundParameters.MaintenanceWindowStartHour = $ParsedWindow[1] + } + + if ($ParsedWindow.Length -ge 3){ + $PSBoundParameters.MaintenanceWindowStartMinute = $ParsedWindow[2] + } + + $PSBoundParameters.MaintenanceWindowCustomWindow = "Enabled" + } + + $null = $PSBoundParameters.Remove('MaintenanceWindow') + } Az.PostgreSql.internal\Update-AzPostgreSqlFlexibleServer @PSBoundParameters } catch { diff --git a/src/PostgreSql/examples/New-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/examples/New-AzPostgreSqlFlexibleServer.md index 9f263fed862a..797668da777f 100644 --- a/src/PostgreSql/examples/New-AzPostgreSqlFlexibleServer.md +++ b/src/PostgreSql/examples/New-AzPostgreSqlFlexibleServer.md @@ -5,7 +5,7 @@ PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName Checking the existence of the resource group PowershellPostgreSqlTest ... Resource group PowershellPostgreSqlTest exists ? : True -Creating MySQL server postgresql-test in group PostgreSqlTest... +Creating PostgreSQL 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 @@ -21,8 +21,8 @@ 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... +Creating new subnet Subnetserver00000000 in resource group group00000000 and delegating it to Microsoft.DBforPostgreSQL/flexibleServers +Creating PostgreSQL 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 @@ -46,8 +46,8 @@ PS C:\> New-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlT 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... +Creating new subnet Subnetserver00000000 in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforPostgreSQL/flexibleServers +Creating PostgreSQL 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... @@ -64,8 +64,8 @@ PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName 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... +Creating new subnet postgresql-subnet in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforPostgreSQL/flexibleServers +Creating PostgreSQL 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... @@ -81,7 +81,7 @@ This cmdlet creates PostgreSql flexible server with vnet name, subnet name, vnet PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName PowershellPostgreSqlTest -PublicAccess All Resource group PowershellPostgreSqlTest exists ? : True -Creating MySQL server postgresql-test in group PowershellPostgreSqlTest... +Creating PostgreSQL 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 @@ -97,7 +97,7 @@ This cmdlet creates PostgreSql flexible server open to all IP addresses. 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... +Creating PostgreSQL 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 diff --git a/src/PostgreSql/examples/Update-AzPostgreSqlFlexibleServerConfiguration.md b/src/PostgreSql/examples/Update-AzPostgreSqlFlexibleServerConfiguration.md index 5e4e96388284..c9ab6b89108d 100644 --- a/src/PostgreSql/examples/Update-AzPostgreSqlFlexibleServerConfiguration.md +++ b/src/PostgreSql/examples/Update-AzPostgreSqlFlexibleServerConfiguration.md @@ -11,7 +11,7 @@ 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:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/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 diff --git a/src/PostgreSql/exports/Get-AzPostgreSqlConfiguration.ps1 b/src/PostgreSql/exports/Get-AzPostgreSqlConfiguration.ps1 index 17c0473c7657..0edbe09ade6c 100644 --- a/src/PostgreSql/exports/Get-AzPostgreSqlConfiguration.ps1 +++ b/src/PostgreSql/exports/Get-AzPostgreSqlConfiguration.ps1 @@ -62,7 +62,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlconfiguration +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlconfiguration #> function Get-AzPostgreSqlConfiguration { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IConfiguration])] diff --git a/src/PostgreSql/exports/Get-AzPostgreSqlConnectionString.ps1 b/src/PostgreSql/exports/Get-AzPostgreSqlConnectionString.ps1 index 8413f6382e5c..6f49f6374dbe 100644 --- a/src/PostgreSql/exports/Get-AzPostgreSqlConnectionString.ps1 +++ b/src/PostgreSql/exports/Get-AzPostgreSqlConnectionString.ps1 @@ -63,7 +63,7 @@ INPUTOBJECT : The server for the connection string [UserVisibleState ]: A state of a server that is visible to user. [Version ]: Server version. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlconnectionstring +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlconnectionstring #> function Get-AzPostgreSqlConnectionString { [OutputType([System.String])] diff --git a/src/PostgreSql/exports/Get-AzPostgreSqlFirewallRule.ps1 b/src/PostgreSql/exports/Get-AzPostgreSqlFirewallRule.ps1 index e8c5487a8447..197f97feee8a 100644 --- a/src/PostgreSql/exports/Get-AzPostgreSqlFirewallRule.ps1 +++ b/src/PostgreSql/exports/Get-AzPostgreSqlFirewallRule.ps1 @@ -59,7 +59,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlfirewallrule +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlfirewallrule #> function Get-AzPostgreSqlFirewallRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] diff --git a/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServer.ps1 index 3ca5ed5c9456..cc2ccc9aafdf 100644 --- a/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServer.ps1 +++ b/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServer.ps1 @@ -66,7 +66,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserver +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserver #> function Get-AzPostgreSqlFlexibleServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated])] diff --git a/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerConfiguration.ps1 b/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerConfiguration.ps1 index 4d0699cebad3..7006a1e5c7bc 100644 --- a/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerConfiguration.ps1 +++ b/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerConfiguration.ps1 @@ -54,7 +54,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserverconfiguration +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserverconfiguration #> function Get-AzPostgreSqlFlexibleServerConfiguration { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IConfigurationAutoGenerated])] diff --git a/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerConnectionString.ps1 b/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerConnectionString.ps1 index 8d5199c5fd63..ca92d311fd4d 100644 --- a/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerConnectionString.ps1 +++ b/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerConnectionString.ps1 @@ -41,7 +41,7 @@ INPUTOBJECT : The server for the connection string [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). + [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. @@ -62,7 +62,7 @@ INPUTOBJECT : The server for the connection string [StorageProfileStorageMb ]: Max storage allowed for a server. [Version ]: PostgreSQL Server version. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserverconnectionstring +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserverconnectionstring #> function Get-AzPostgreSqlFlexibleServerConnectionString { [OutputType([System.String])] diff --git a/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerFirewallRule.ps1 b/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerFirewallRule.ps1 index 20685c3ec794..39114f7363af 100644 --- a/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerFirewallRule.ps1 +++ b/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerFirewallRule.ps1 @@ -60,7 +60,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserverfirewallrule +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserverfirewallrule #> function Get-AzPostgreSqlFlexibleServerFirewallRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] diff --git a/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.ps1 b/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.ps1 index 160fb68e72b2..d2f66a981eb2 100644 --- a/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.ps1 +++ b/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.ps1 @@ -43,7 +43,7 @@ Standard_E64s_v3 MemoryOptimized 6912 64 .Outputs Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ICapabilityProperties .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserverlocationbasedcapability +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserverlocationbasedcapability #> function Get-AzPostgreSqlFlexibleServerLocationBasedCapability { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ICapabilityProperties])] diff --git a/src/PostgreSql/exports/Get-AzPostgreSqlReplica.ps1 b/src/PostgreSql/exports/Get-AzPostgreSqlReplica.ps1 index eeb0a0c6a3c5..b5ececf08752 100644 --- a/src/PostgreSql/exports/Get-AzPostgreSqlReplica.ps1 +++ b/src/PostgreSql/exports/Get-AzPostgreSqlReplica.ps1 @@ -28,7 +28,7 @@ postgresqltestserverreplica eastus pwsh 9.6 5120 .Outputs Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlreplica +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlreplica #> function Get-AzPostgreSqlReplica { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])] diff --git a/src/PostgreSql/exports/Get-AzPostgreSqlServer.ps1 b/src/PostgreSql/exports/Get-AzPostgreSqlServer.ps1 index 14ca10501306..db45a6d6637d 100644 --- a/src/PostgreSql/exports/Get-AzPostgreSqlServer.ps1 +++ b/src/PostgreSql/exports/Get-AzPostgreSqlServer.ps1 @@ -65,7 +65,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlserver +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlserver #> function Get-AzPostgreSqlServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])] diff --git a/src/PostgreSql/exports/Get-AzPostgreSqlVirtualNetworkRule.ps1 b/src/PostgreSql/exports/Get-AzPostgreSqlVirtualNetworkRule.ps1 index e56b14022716..abb814fbc6a7 100644 --- a/src/PostgreSql/exports/Get-AzPostgreSqlVirtualNetworkRule.ps1 +++ b/src/PostgreSql/exports/Get-AzPostgreSqlVirtualNetworkRule.ps1 @@ -59,7 +59,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlvirtualnetworkrule +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlvirtualnetworkrule #> function Get-AzPostgreSqlVirtualNetworkRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule])] diff --git a/src/PostgreSql/exports/New-AzPostgreSqlFirewallRule.ps1 b/src/PostgreSql/exports/New-AzPostgreSqlFirewallRule.ps1 index e723b3f72e03..e9a6789982c3 100644 --- a/src/PostgreSql/exports/New-AzPostgreSqlFirewallRule.ps1 +++ b/src/PostgreSql/exports/New-AzPostgreSqlFirewallRule.ps1 @@ -40,7 +40,7 @@ AllowAll_2020-08-11_18-19-27 0.0.0.0 255.255.255.255 .Outputs Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlfirewallrule +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlfirewallrule #> function New-AzPostgreSqlFirewallRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] diff --git a/src/PostgreSql/exports/New-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/exports/New-AzPostgreSqlFlexibleServer.ps1 index 86fdd288210f..6c558676ce75 100644 --- a/src/PostgreSql/exports/New-AzPostgreSqlFlexibleServer.ps1 +++ b/src/PostgreSql/exports/New-AzPostgreSqlFlexibleServer.ps1 @@ -24,7 +24,7 @@ PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName Checking the existence of the resource group PowershellPostgreSqlTest ... Resource group PowershellPostgreSqlTest exists ? : True -Creating MySQL server postgresql-test in group PostgreSqlTest... +Creating PostgreSQL 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 @@ -36,8 +36,8 @@ 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... +Creating new subnet Subnetserver00000000 in resource group group00000000 and delegating it to Microsoft.DBforPostgreSQL/flexibleServers +Creating PostgreSQL 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 @@ -55,8 +55,8 @@ PS C:\> New-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlT 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... +Creating new subnet Subnetserver00000000 in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforPostgreSQL/flexibleServers +Creating PostgreSQL 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... @@ -69,8 +69,8 @@ PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName 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... +Creating new subnet postgresql-subnet in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforPostgreSQL/flexibleServers +Creating PostgreSQL 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... @@ -82,7 +82,7 @@ postgresql-test eastus postgresqltest 12 131072 Stand PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName PowershellPostgreSqlTest -PublicAccess All Resource group PowershellPostgreSqlTest exists ? : True -Creating MySQL server postgresql-test in group PowershellPostgreSqlTest... +Creating PostgreSQL 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 @@ -94,7 +94,7 @@ postgresql-test eastus postgresqltest 12 131072 Stand 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... +Creating PostgreSQL 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 @@ -107,7 +107,7 @@ postgresql-test eastus postgresqltest 12 131072 Stand .Outputs Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlflexibleserver +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlflexibleserver #> function New-AzPostgreSqlFlexibleServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated])] @@ -133,6 +133,12 @@ param( # The subscription ID that identifies an Azure subscription. ${SubscriptionId}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.String] + # Availability zone into which to provision the resource. + ${Zone}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] [System.String] diff --git a/src/PostgreSql/exports/New-AzPostgreSqlFlexibleServerFirewallRule.ps1 b/src/PostgreSql/exports/New-AzPostgreSqlFlexibleServerFirewallRule.ps1 index de75771ccf07..f6ae484636ae 100644 --- a/src/PostgreSql/exports/New-AzPostgreSqlFlexibleServerFirewallRule.ps1 +++ b/src/PostgreSql/exports/New-AzPostgreSqlFlexibleServerFirewallRule.ps1 @@ -40,7 +40,7 @@ AllowAll_2020-08-11_18-19-27 0.0.0.0 255.255.255.255 .Outputs Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlflexibleserverfirewallrule +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlflexibleserverfirewallrule #> function New-AzPostgreSqlFlexibleServerFirewallRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] diff --git a/src/PostgreSql/exports/New-AzPostgreSqlReplica.ps1 b/src/PostgreSql/exports/New-AzPostgreSqlReplica.ps1 index 86984688ed69..57ff513c209d 100644 --- a/src/PostgreSql/exports/New-AzPostgreSqlReplica.ps1 +++ b/src/PostgreSql/exports/New-AzPostgreSqlReplica.ps1 @@ -68,7 +68,7 @@ MASTER : The source server object to create replica from. [UserVisibleState ]: A state of a server that is visible to user. [Version ]: Server version. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlreplica +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlreplica #> function New-AzPostgreSqlReplica { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])] diff --git a/src/PostgreSql/exports/New-AzPostgreSqlServer.ps1 b/src/PostgreSql/exports/New-AzPostgreSqlServer.ps1 index 1dfcba3aec63..21c8a07f20d3 100644 --- a/src/PostgreSql/exports/New-AzPostgreSqlServer.ps1 +++ b/src/PostgreSql/exports/New-AzPostgreSqlServer.ps1 @@ -28,7 +28,7 @@ postgresqltestserver eastus pwsh 9.6 5120 .Outputs Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlserver +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlserver #> function New-AzPostgreSqlServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])] diff --git a/src/PostgreSql/exports/New-AzPostgreSqlVirtualNetworkRule.ps1 b/src/PostgreSql/exports/New-AzPostgreSqlVirtualNetworkRule.ps1 index e49ea4473d75..b657236bd6b9 100644 --- a/src/PostgreSql/exports/New-AzPostgreSqlVirtualNetworkRule.ps1 +++ b/src/PostgreSql/exports/New-AzPostgreSqlVirtualNetworkRule.ps1 @@ -29,7 +29,7 @@ vnet Microsoft.DBforPostgreSQL/servers/virtualNetworkRules .Outputs Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlvirtualnetworkrule +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlvirtualnetworkrule #> function New-AzPostgreSqlVirtualNetworkRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule])] diff --git a/src/PostgreSql/exports/ProxyCmdletDefinitions.ps1 b/src/PostgreSql/exports/ProxyCmdletDefinitions.ps1 index 5a5b0ca0666c..4a4934a06727 100644 --- a/src/PostgreSql/exports/ProxyCmdletDefinitions.ps1 +++ b/src/PostgreSql/exports/ProxyCmdletDefinitions.ps1 @@ -62,7 +62,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlconfiguration +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlconfiguration #> function Get-AzPostgreSqlConfiguration { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IConfiguration])] @@ -254,7 +254,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlfirewallrule +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlfirewallrule #> function Get-AzPostgreSqlFirewallRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] @@ -441,7 +441,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserverconfiguration +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserverconfiguration #> function Get-AzPostgreSqlFlexibleServerConfiguration { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IConfigurationAutoGenerated])] @@ -634,7 +634,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserverfirewallrule +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserverfirewallrule #> function Get-AzPostgreSqlFlexibleServerFirewallRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] @@ -833,7 +833,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserver +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserver #> function Get-AzPostgreSqlFlexibleServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated])] @@ -989,7 +989,7 @@ postgresqltestserverreplica eastus pwsh 9.6 5120 .Outputs Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlreplica +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlreplica #> function Get-AzPostgreSqlReplica { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])] @@ -1168,7 +1168,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlserver +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlserver #> function Get-AzPostgreSqlServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])] @@ -1355,7 +1355,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlvirtualnetworkrule +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlvirtualnetworkrule #> function Get-AzPostgreSqlVirtualNetworkRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule])] @@ -1523,7 +1523,7 @@ vnet Microsoft.DBforPostgreSQL/servers/virtualNetworkRules .Outputs Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlvirtualnetworkrule +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlvirtualnetworkrule #> function New-AzPostgreSqlVirtualNetworkRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule])] @@ -1721,7 +1721,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqlfirewallrule +https://docs.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlfirewallrule #> function Remove-AzPostgreSqlFirewallRule { [OutputType([System.Boolean])] @@ -1915,7 +1915,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqlflexibleserverfirewallrule +https://docs.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlflexibleserverfirewallrule #> function Remove-AzPostgreSqlFlexibleServerFirewallRule { [OutputType([System.Boolean])] @@ -2109,7 +2109,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqlflexibleserver +https://docs.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlflexibleserver #> function Remove-AzPostgreSqlFlexibleServer { [OutputType([System.Boolean])] @@ -2297,7 +2297,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqlserver +https://docs.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlserver #> function Remove-AzPostgreSqlServer { [OutputType([System.Boolean])] @@ -2485,7 +2485,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqlvirtualnetworkrule +https://docs.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlvirtualnetworkrule #> function Remove-AzPostgreSqlVirtualNetworkRule { [OutputType([System.Boolean])] @@ -2677,7 +2677,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/restart-azpostgresqlflexibleserver +https://docs.microsoft.com/powershell/module/az.postgresql/restart-azpostgresqlflexibleserver #> function Restart-AzPostgreSqlFlexibleServer { [OutputType([System.Boolean])] @@ -2865,7 +2865,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/restart-azpostgresqlserver +https://docs.microsoft.com/powershell/module/az.postgresql/restart-azpostgresqlserver #> function Restart-AzPostgreSqlServer { [OutputType([System.Boolean])] @@ -3051,7 +3051,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/start-azpostgresqlflexibleserver +https://docs.microsoft.com/powershell/module/az.postgresql/start-azpostgresqlflexibleserver #> function Start-AzPostgreSqlFlexibleServer { [OutputType([System.Boolean])] @@ -3237,7 +3237,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/stop-azpostgresqlflexibleserver +https://docs.microsoft.com/powershell/module/az.postgresql/stop-azpostgresqlflexibleserver #> function Stop-AzPostgreSqlFlexibleServer { [OutputType([System.Boolean])] @@ -3433,7 +3433,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlvirtualnetworkrule +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlvirtualnetworkrule #> function Update-AzPostgreSqlVirtualNetworkRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule])] @@ -3655,7 +3655,7 @@ INPUTOBJECT : The server for the connection string [UserVisibleState ]: A state of a server that is visible to user. [Version ]: Server version. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlconnectionstring +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlconnectionstring #> function Get-AzPostgreSqlConnectionString { [OutputType([System.String])] @@ -3819,7 +3819,7 @@ INPUTOBJECT : The server for the connection string [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). + [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. @@ -3840,7 +3840,7 @@ INPUTOBJECT : The server for the connection string [StorageProfileStorageMb ]: Max storage allowed for a server. [Version ]: PostgreSQL Server version. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserverconnectionstring +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserverconnectionstring #> function Get-AzPostgreSqlFlexibleServerConnectionString { [OutputType([System.String])] @@ -4011,7 +4011,7 @@ Standard_E64s_v3 MemoryOptimized 6912 64 .Outputs Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ICapabilityProperties .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserverlocationbasedcapability +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserverlocationbasedcapability #> function Get-AzPostgreSqlFlexibleServerLocationBasedCapability { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ICapabilityProperties])] @@ -4158,7 +4158,7 @@ AllowAll_2020-08-11_18-19-27 0.0.0.0 255.255.255.255 .Outputs Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlfirewallrule +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlfirewallrule #> function New-AzPostgreSqlFirewallRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] @@ -4344,7 +4344,7 @@ PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName Checking the existence of the resource group PowershellPostgreSqlTest ... Resource group PowershellPostgreSqlTest exists ? : True -Creating MySQL server postgresql-test in group PostgreSqlTest... +Creating PostgreSQL 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 @@ -4356,8 +4356,8 @@ 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... +Creating new subnet Subnetserver00000000 in resource group group00000000 and delegating it to Microsoft.DBforPostgreSQL/flexibleServers +Creating PostgreSQL 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 @@ -4375,8 +4375,8 @@ PS C:\> New-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlT 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... +Creating new subnet Subnetserver00000000 in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforPostgreSQL/flexibleServers +Creating PostgreSQL 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... @@ -4389,8 +4389,8 @@ PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName 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... +Creating new subnet postgresql-subnet in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforPostgreSQL/flexibleServers +Creating PostgreSQL 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... @@ -4402,7 +4402,7 @@ postgresql-test eastus postgresqltest 12 131072 Stand PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName PowershellPostgreSqlTest -PublicAccess All Resource group PowershellPostgreSqlTest exists ? : True -Creating MySQL server postgresql-test in group PowershellPostgreSqlTest... +Creating PostgreSQL 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 @@ -4414,7 +4414,7 @@ postgresql-test eastus postgresqltest 12 131072 Stand 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... +Creating PostgreSQL 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 @@ -4427,7 +4427,7 @@ postgresql-test eastus postgresqltest 12 131072 Stand .Outputs Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlflexibleserver +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlflexibleserver #> function New-AzPostgreSqlFlexibleServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated])] @@ -4453,6 +4453,12 @@ param( # The subscription ID that identifies an Azure subscription. ${SubscriptionId}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.String] + # Availability zone into which to provision the resource. + ${Zone}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] [System.String] @@ -4695,7 +4701,7 @@ AllowAll_2020-08-11_18-19-27 0.0.0.0 255.255.255.255 .Outputs Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlflexibleserverfirewallrule +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlflexibleserverfirewallrule #> function New-AzPostgreSqlFlexibleServerFirewallRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] @@ -4927,7 +4933,7 @@ MASTER : The source server object to create replica from. [UserVisibleState ]: A state of a server that is visible to user. [Version ]: Server version. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlreplica +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlreplica #> function New-AzPostgreSqlReplica { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])] @@ -5097,7 +5103,7 @@ postgresqltestserver eastus pwsh 9.6 5120 .Outputs Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlserver +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlserver #> function New-AzPostgreSqlServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])] @@ -5331,7 +5337,7 @@ pg-restore eastus postgresql_test 12 131072 Standard_ .Outputs Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/restore-azpostgresqlflexibleserver +https://docs.microsoft.com/powershell/module/az.postgresql/restore-azpostgresqlflexibleserver #> function Restore-AzPostgreSqlFlexibleServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated])] @@ -5375,6 +5381,12 @@ param( # The location the resource resides in. ${Location}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.String] + # Availability zone into which to provision the resource. + ${Zone}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -5543,7 +5555,7 @@ INPUTOBJECT : The source server object to restore from. [UserVisibleState ]: A state of a server that is visible to user. [Version ]: Server version. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/restore-azpostgresqlserver +https://docs.microsoft.com/powershell/module/az.postgresql/restore-azpostgresqlserver #> function Restore-AzPostgreSqlServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])] @@ -5774,7 +5786,7 @@ INPUTOBJECT : The server to connect. [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/test-azpostgresqlflexibleserverconnect +https://docs.microsoft.com/powershell/module/az.postgresql/test-azpostgresqlflexibleserverconnect #> function Test-AzPostgreSqlFlexibleServerConnect { [OutputType([System.String])] @@ -5969,7 +5981,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlconfiguration +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlconfiguration #> function Update-AzPostgreSqlConfiguration { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IConfiguration])] @@ -6182,7 +6194,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlfirewallrule +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlfirewallrule #> function Update-AzPostgreSqlFirewallRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] @@ -6410,7 +6422,7 @@ INPUTOBJECT : Identity Parameter. [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlflexibleserver +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlflexibleserver #> function Update-AzPostgreSqlFlexibleServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated])] @@ -6459,16 +6471,17 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] [System.String] - # The name of the sku, typically, tier + family + cores, e.g. - # B_Gen4_1, GP_Gen5_8. + # The name of the sku, e.g. + # Burstable_B1ms, Standard_D2ds_v4 ${Sku}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier])] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier] - # The tier of the particular SKU, e.g. - # Basic. + # The tier of the particular SKU. + # Accepted values: Burstable, GeneralPurpose, Memory Optimized. + # Default: Burstable. ${SkuTier}, [Parameter()] @@ -6492,6 +6505,14 @@ param( # Day count is between 7 and 35. ${BackupRetentionDay}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.String] + # Period of time (UTC) designated for maintenance. + # Examples: "Sun:23:30" to schedule on Sunday, 11:30pm UTC. + # To set back to default pass in "Disabled" + ${MaintenanceWindow}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow])] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] @@ -6640,7 +6661,7 @@ Name Value DefaultValue Source AllowedValues DataType ---- ------ ------------ ------- ------------- --------- work_mem 8192 4096 system-default 4096-2097151 Integer .Example -PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test/configurations/work_mem" +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/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 @@ -6668,7 +6689,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlflexibleserverconfiguration +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlflexibleserverconfiguration #> function Update-AzPostgreSqlFlexibleServerConfiguration { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IConfigurationAutoGenerated])] @@ -6874,7 +6895,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlflexibleserverfirewallrule +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlflexibleserverfirewallrule #> function Update-AzPostgreSqlFlexibleServerFirewallRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] @@ -7102,7 +7123,7 @@ INPUTOBJECT : Identity Parameter. [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlserver +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlserver #> function Update-AzPostgreSqlServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])] diff --git a/src/PostgreSql/exports/Remove-AzPostgreSqlFirewallRule.ps1 b/src/PostgreSql/exports/Remove-AzPostgreSqlFirewallRule.ps1 index 07397f07e09b..58f84b9945e1 100644 --- a/src/PostgreSql/exports/Remove-AzPostgreSqlFirewallRule.ps1 +++ b/src/PostgreSql/exports/Remove-AzPostgreSqlFirewallRule.ps1 @@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqlfirewallrule +https://docs.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlfirewallrule #> function Remove-AzPostgreSqlFirewallRule { [OutputType([System.Boolean])] diff --git a/src/PostgreSql/exports/Remove-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/exports/Remove-AzPostgreSqlFlexibleServer.ps1 index cbca4e2787b0..61a8fd691ca0 100644 --- a/src/PostgreSql/exports/Remove-AzPostgreSqlFlexibleServer.ps1 +++ b/src/PostgreSql/exports/Remove-AzPostgreSqlFlexibleServer.ps1 @@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqlflexibleserver +https://docs.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlflexibleserver #> function Remove-AzPostgreSqlFlexibleServer { [OutputType([System.Boolean])] diff --git a/src/PostgreSql/exports/Remove-AzPostgreSqlFlexibleServerFirewallRule.ps1 b/src/PostgreSql/exports/Remove-AzPostgreSqlFlexibleServerFirewallRule.ps1 index 6ed7eb5a565d..a5bc7e0e8eda 100644 --- a/src/PostgreSql/exports/Remove-AzPostgreSqlFlexibleServerFirewallRule.ps1 +++ b/src/PostgreSql/exports/Remove-AzPostgreSqlFlexibleServerFirewallRule.ps1 @@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqlflexibleserverfirewallrule +https://docs.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlflexibleserverfirewallrule #> function Remove-AzPostgreSqlFlexibleServerFirewallRule { [OutputType([System.Boolean])] diff --git a/src/PostgreSql/exports/Remove-AzPostgreSqlServer.ps1 b/src/PostgreSql/exports/Remove-AzPostgreSqlServer.ps1 index 1b04193186dd..03c508bec571 100644 --- a/src/PostgreSql/exports/Remove-AzPostgreSqlServer.ps1 +++ b/src/PostgreSql/exports/Remove-AzPostgreSqlServer.ps1 @@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqlserver +https://docs.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlserver #> function Remove-AzPostgreSqlServer { [OutputType([System.Boolean])] diff --git a/src/PostgreSql/exports/Remove-AzPostgreSqlVirtualNetworkRule.ps1 b/src/PostgreSql/exports/Remove-AzPostgreSqlVirtualNetworkRule.ps1 index c92843ec84c4..48ae3435928b 100644 --- a/src/PostgreSql/exports/Remove-AzPostgreSqlVirtualNetworkRule.ps1 +++ b/src/PostgreSql/exports/Remove-AzPostgreSqlVirtualNetworkRule.ps1 @@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqlvirtualnetworkrule +https://docs.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlvirtualnetworkrule #> function Remove-AzPostgreSqlVirtualNetworkRule { [OutputType([System.Boolean])] diff --git a/src/PostgreSql/exports/Restart-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/exports/Restart-AzPostgreSqlFlexibleServer.ps1 index e8cdb6d9473d..8def6508092c 100644 --- a/src/PostgreSql/exports/Restart-AzPostgreSqlFlexibleServer.ps1 +++ b/src/PostgreSql/exports/Restart-AzPostgreSqlFlexibleServer.ps1 @@ -45,7 +45,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/restart-azpostgresqlflexibleserver +https://docs.microsoft.com/powershell/module/az.postgresql/restart-azpostgresqlflexibleserver #> function Restart-AzPostgreSqlFlexibleServer { [OutputType([System.Boolean])] diff --git a/src/PostgreSql/exports/Restart-AzPostgreSqlServer.ps1 b/src/PostgreSql/exports/Restart-AzPostgreSqlServer.ps1 index 412ce304537a..3525c6f810a6 100644 --- a/src/PostgreSql/exports/Restart-AzPostgreSqlServer.ps1 +++ b/src/PostgreSql/exports/Restart-AzPostgreSqlServer.ps1 @@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/restart-azpostgresqlserver +https://docs.microsoft.com/powershell/module/az.postgresql/restart-azpostgresqlserver #> function Restart-AzPostgreSqlServer { [OutputType([System.Boolean])] diff --git a/src/PostgreSql/exports/Restore-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/exports/Restore-AzPostgreSqlFlexibleServer.ps1 index 74a578f858b4..9f587f3e92b4 100644 --- a/src/PostgreSql/exports/Restore-AzPostgreSqlFlexibleServer.ps1 +++ b/src/PostgreSql/exports/Restore-AzPostgreSqlFlexibleServer.ps1 @@ -29,7 +29,7 @@ pg-restore eastus postgresql_test 12 131072 Standard_ .Outputs Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/restore-azpostgresqlflexibleserver +https://docs.microsoft.com/powershell/module/az.postgresql/restore-azpostgresqlflexibleserver #> function Restore-AzPostgreSqlFlexibleServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated])] @@ -73,6 +73,12 @@ param( # The location the resource resides in. ${Location}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.String] + # Availability zone into which to provision the resource. + ${Zone}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] diff --git a/src/PostgreSql/exports/Restore-AzPostgreSqlServer.ps1 b/src/PostgreSql/exports/Restore-AzPostgreSqlServer.ps1 index 4967f60480dc..8165e124c75a 100644 --- a/src/PostgreSql/exports/Restore-AzPostgreSqlServer.ps1 +++ b/src/PostgreSql/exports/Restore-AzPostgreSqlServer.ps1 @@ -68,7 +68,7 @@ INPUTOBJECT : The source server object to restore from. [UserVisibleState ]: A state of a server that is visible to user. [Version ]: Server version. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/restore-azpostgresqlserver +https://docs.microsoft.com/powershell/module/az.postgresql/restore-azpostgresqlserver #> function Restore-AzPostgreSqlServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])] diff --git a/src/PostgreSql/exports/Start-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/exports/Start-AzPostgreSqlFlexibleServer.ps1 index fddabbf1c855..bed6c3b26958 100644 --- a/src/PostgreSql/exports/Start-AzPostgreSqlFlexibleServer.ps1 +++ b/src/PostgreSql/exports/Start-AzPostgreSqlFlexibleServer.ps1 @@ -45,7 +45,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/start-azpostgresqlflexibleserver +https://docs.microsoft.com/powershell/module/az.postgresql/start-azpostgresqlflexibleserver #> function Start-AzPostgreSqlFlexibleServer { [OutputType([System.Boolean])] diff --git a/src/PostgreSql/exports/Stop-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/exports/Stop-AzPostgreSqlFlexibleServer.ps1 index 9312bec01a50..3ada21127628 100644 --- a/src/PostgreSql/exports/Stop-AzPostgreSqlFlexibleServer.ps1 +++ b/src/PostgreSql/exports/Stop-AzPostgreSqlFlexibleServer.ps1 @@ -45,7 +45,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/stop-azpostgresqlflexibleserver +https://docs.microsoft.com/powershell/module/az.postgresql/stop-azpostgresqlflexibleserver #> function Stop-AzPostgreSqlFlexibleServer { [OutputType([System.Boolean])] diff --git a/src/PostgreSql/exports/Test-AzPostgreSqlFlexibleServerConnect.ps1 b/src/PostgreSql/exports/Test-AzPostgreSqlFlexibleServerConnect.ps1 index 163411378b81..3b2df71a87e9 100644 --- a/src/PostgreSql/exports/Test-AzPostgreSqlFlexibleServerConnect.ps1 +++ b/src/PostgreSql/exports/Test-AzPostgreSqlFlexibleServerConnect.ps1 @@ -64,7 +64,7 @@ INPUTOBJECT : The server to connect. [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/test-azpostgresqlflexibleserverconnect +https://docs.microsoft.com/powershell/module/az.postgresql/test-azpostgresqlflexibleserverconnect #> function Test-AzPostgreSqlFlexibleServerConnect { [OutputType([System.String])] diff --git a/src/PostgreSql/exports/Update-AzPostgreSqlConfiguration.ps1 b/src/PostgreSql/exports/Update-AzPostgreSqlConfiguration.ps1 index 3e75e74d33e9..28ae95348bd1 100644 --- a/src/PostgreSql/exports/Update-AzPostgreSqlConfiguration.ps1 +++ b/src/PostgreSql/exports/Update-AzPostgreSqlConfiguration.ps1 @@ -55,7 +55,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlconfiguration +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlconfiguration #> function Update-AzPostgreSqlConfiguration { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IConfiguration])] diff --git a/src/PostgreSql/exports/Update-AzPostgreSqlFirewallRule.ps1 b/src/PostgreSql/exports/Update-AzPostgreSqlFirewallRule.ps1 index 8e489ca5abe1..daf4cb6a8429 100644 --- a/src/PostgreSql/exports/Update-AzPostgreSqlFirewallRule.ps1 +++ b/src/PostgreSql/exports/Update-AzPostgreSqlFirewallRule.ps1 @@ -60,7 +60,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlfirewallrule +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlfirewallrule #> function Update-AzPostgreSqlFirewallRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] diff --git a/src/PostgreSql/exports/Update-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/exports/Update-AzPostgreSqlFlexibleServer.ps1 index b57044249e6b..f11eb39bc1a3 100644 --- a/src/PostgreSql/exports/Update-AzPostgreSqlFlexibleServer.ps1 +++ b/src/PostgreSql/exports/Update-AzPostgreSqlFlexibleServer.ps1 @@ -56,7 +56,7 @@ INPUTOBJECT : Identity Parameter. [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlflexibleserver +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlflexibleserver #> function Update-AzPostgreSqlFlexibleServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated])] @@ -105,16 +105,17 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] [System.String] - # The name of the sku, typically, tier + family + cores, e.g. - # B_Gen4_1, GP_Gen5_8. + # The name of the sku, e.g. + # Burstable_B1ms, Standard_D2ds_v4 ${Sku}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier])] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier] - # The tier of the particular SKU, e.g. - # Basic. + # The tier of the particular SKU. + # Accepted values: Burstable, GeneralPurpose, Memory Optimized. + # Default: Burstable. ${SkuTier}, [Parameter()] @@ -138,6 +139,14 @@ param( # Day count is between 7 and 35. ${BackupRetentionDay}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] + [System.String] + # Period of time (UTC) designated for maintenance. + # Examples: "Sun:23:30" to schedule on Sunday, 11:30pm UTC. + # To set back to default pass in "Disabled" + ${MaintenanceWindow}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow])] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] diff --git a/src/PostgreSql/exports/Update-AzPostgreSqlFlexibleServerConfiguration.ps1 b/src/PostgreSql/exports/Update-AzPostgreSqlFlexibleServerConfiguration.ps1 index a95030b8c4be..0da815bc0be1 100644 --- a/src/PostgreSql/exports/Update-AzPostgreSqlFlexibleServerConfiguration.ps1 +++ b/src/PostgreSql/exports/Update-AzPostgreSqlFlexibleServerConfiguration.ps1 @@ -27,7 +27,7 @@ Name Value DefaultValue Source AllowedValues DataType ---- ------ ------------ ------- ------------- --------- work_mem 8192 4096 system-default 4096-2097151 Integer .Example -PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test/configurations/work_mem" +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/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 @@ -55,7 +55,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlflexibleserverconfiguration +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlflexibleserverconfiguration #> function Update-AzPostgreSqlFlexibleServerConfiguration { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IConfigurationAutoGenerated])] diff --git a/src/PostgreSql/exports/Update-AzPostgreSqlFlexibleServerFirewallRule.ps1 b/src/PostgreSql/exports/Update-AzPostgreSqlFlexibleServerFirewallRule.ps1 index ba076c0eafba..2971a64ba3ec 100644 --- a/src/PostgreSql/exports/Update-AzPostgreSqlFlexibleServerFirewallRule.ps1 +++ b/src/PostgreSql/exports/Update-AzPostgreSqlFlexibleServerFirewallRule.ps1 @@ -53,7 +53,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlflexibleserverfirewallrule +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlflexibleserverfirewallrule #> function Update-AzPostgreSqlFlexibleServerFirewallRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] diff --git a/src/PostgreSql/exports/Update-AzPostgreSqlServer.ps1 b/src/PostgreSql/exports/Update-AzPostgreSqlServer.ps1 index c933f84a5cda..5cbdf77e2fd3 100644 --- a/src/PostgreSql/exports/Update-AzPostgreSqlServer.ps1 +++ b/src/PostgreSql/exports/Update-AzPostgreSqlServer.ps1 @@ -56,7 +56,7 @@ INPUTOBJECT : Identity Parameter. [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlserver +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlserver #> function Update-AzPostgreSqlServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])] diff --git a/src/PostgreSql/exports/Update-AzPostgreSqlVirtualNetworkRule.ps1 b/src/PostgreSql/exports/Update-AzPostgreSqlVirtualNetworkRule.ps1 index 72843409d367..698a07d4a027 100644 --- a/src/PostgreSql/exports/Update-AzPostgreSqlVirtualNetworkRule.ps1 +++ b/src/PostgreSql/exports/Update-AzPostgreSqlVirtualNetworkRule.ps1 @@ -55,7 +55,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlvirtualnetworkrule +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlvirtualnetworkrule #> function Update-AzPostgreSqlVirtualNetworkRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule])] diff --git a/src/PostgreSql/generate-info.json b/src/PostgreSql/generate-info.json index d952e25f0dd8..272e895ce829 100644 --- a/src/PostgreSql/generate-info.json +++ b/src/PostgreSql/generate-info.json @@ -1,8 +1,8 @@ { - "autorest_powershell": "3.0.414", - "swagger_commit": "760bb42651abfa9659018d6f0168e923d4adddb2", - "node": "v10.16.0", - "autorest_core": "3.0.6365", - "autorest_modelerfour": "4.15.414", - "autorest": "3.0.6187" + "autorest": "`-- (empty)", + "node": "v14.15.5", + "autorest_powershell": "3.0.423", + "swagger_commit": "1c6693669b5fc74957e1d1cbc0ff245e58870333", + "autorest_core": "3.0.6375", + "autorest_modelerfour": "4.15.414" } diff --git a/src/PostgreSql/generated/api/Models/Api20171201/Server.PowerShell.cs b/src/PostgreSql/generated/api/Models/Api20171201/Server.PowerShell.cs index 7a5c8588fc32..952d2b06edb6 100644 --- a/src/PostgreSql/generated/api/Models/Api20171201/Server.PowerShell.cs +++ b/src/PostgreSql/generated/api/Models/Api20171201/Server.PowerShell.cs @@ -102,21 +102,21 @@ internal Server(global::System.Collections.IDictionary content) ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.TrackedResourceTagsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuSize, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuFamily, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).ByokEnforcement = (string) content.GetValueForProperty("ByokEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).ByokEnforcement, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityTenantId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).AdministratorLogin, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).ByokEnforcement = (string) content.GetValueForProperty("ByokEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).ByokEnforcement, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).UserVisibleState = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerState?) content.GetValueForProperty("UserVisibleState",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).UserVisibleState, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerState.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).FullyQualifiedDomainName = (string) content.GetValueForProperty("FullyQualifiedDomainName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).FullyQualifiedDomainName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).EarliestRestoreDate = (global::System.DateTime?) content.GetValueForProperty("EarliestRestoreDate",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).EarliestRestoreDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); @@ -154,21 +154,21 @@ internal Server(global::System.Management.Automation.PSObject content) ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.TrackedResourceTagsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuSize, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuFamily, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).ByokEnforcement = (string) content.GetValueForProperty("ByokEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).ByokEnforcement, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityTenantId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).AdministratorLogin, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).ByokEnforcement = (string) content.GetValueForProperty("ByokEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).ByokEnforcement, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).UserVisibleState = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerState?) content.GetValueForProperty("UserVisibleState",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).UserVisibleState, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerState.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).FullyQualifiedDomainName = (string) content.GetValueForProperty("FullyQualifiedDomainName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).FullyQualifiedDomainName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).EarliestRestoreDate = (global::System.DateTime?) content.GetValueForProperty("EarliestRestoreDate",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).EarliestRestoreDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); diff --git a/src/PostgreSql/generated/api/Models/Api20171201/Server.cs b/src/PostgreSql/generated/api/Models/Api20171201/Server.cs index d3dfd1e553a7..fc546fff8b0f 100644 --- a/src/PostgreSql/generated/api/Models/Api20171201/Server.cs +++ b/src/PostgreSql/generated/api/Models/Api20171201/Server.cs @@ -80,7 +80,7 @@ public partial class Server : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.FormatTable(Index = 1)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Location = value; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Location = value ; } /// The master server id of a replica server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inlined)] @@ -224,7 +224,7 @@ public partial class Server : /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/src/PostgreSql/generated/api/Models/Api20171201/ServerForCreate.PowerShell.cs b/src/PostgreSql/generated/api/Models/Api20171201/ServerForCreate.PowerShell.cs index 52b85647548f..747e1628f4d0 100644 --- a/src/PostgreSql/generated/api/Models/Api20171201/ServerForCreate.PowerShell.cs +++ b/src/PostgreSql/generated/api/Models/Api20171201/ServerForCreate.PowerShell.cs @@ -99,21 +99,21 @@ internal ServerForCreate(global::System.Collections.IDictionary content) ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreate) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerPropertiesForCreateTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Location, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerForCreateTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuSize, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuFamily, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityTenantId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup.CreateFrom); @@ -140,21 +140,21 @@ internal ServerForCreate(global::System.Management.Automation.PSObject content) ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreate) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerPropertiesForCreateTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Location, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerForCreateTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuSize, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuFamily, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityTenantId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup.CreateFrom); diff --git a/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.PowerShell.cs b/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.PowerShell.cs index af70803f7340..2f14073df84b 100644 --- a/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.PowerShell.cs +++ b/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.PowerShell.cs @@ -97,7 +97,7 @@ internal ServerPropertiesForDefaultCreate(global::System.Collections.IDictionary } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForDefaultCreateInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForDefaultCreateInternal)this).AdministratorLogin, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForDefaultCreateInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForDefaultCreateInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForDefaultCreateInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForDefaultCreateInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup.CreateFrom); @@ -127,7 +127,7 @@ internal ServerPropertiesForDefaultCreate(global::System.Management.Automation.P } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForDefaultCreateInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForDefaultCreateInternal)this).AdministratorLogin, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForDefaultCreateInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForDefaultCreateInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForDefaultCreateInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForDefaultCreateInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup.CreateFrom); diff --git a/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.cs b/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.cs index 5251c0af7041..9dc5a29e68fa 100644 --- a/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.cs +++ b/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.cs @@ -25,58 +25,58 @@ public partial class ServerPropertiesForDefaultCreate : public string AdministratorLogin { get => this._administratorLogin; set => this._administratorLogin = value; } /// Backing field for property. - private string _administratorLoginPassword; + private System.Security.SecureString _administratorLoginPassword; /// The password of the administrator login. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Owned)] - public string AdministratorLoginPassword { get => this._administratorLoginPassword; set => this._administratorLoginPassword = value; } + public System.Security.SecureString AdministratorLoginPassword { get => this._administratorLoginPassword; set => this._administratorLoginPassword = value; } /// The mode to create a new server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode CreateMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode CreateMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode = value ; } /// Status showing whether the server enabled infrastructure encryption. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption? InfrastructureEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption? InfrastructureEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption)""); } /// Enforce a minimal Tls version for the server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum? MinimalTlsVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum? MinimalTlsVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum)""); } /// /// Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' /// or 'Disabled' /// [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum? PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum? PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum)""); } /// Enable ssl enforcement or not when connect to server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum? SslEnforcement { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum? SslEnforcement { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum)""); } /// Storage profile of a server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile = value ?? null /* model class */; } /// Backup retention days for the server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public int? StorageProfileBackupRetentionDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay = value; } + public int? StorageProfileBackupRetentionDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay = value ?? default(int); } /// Enable Geo-redundant or not for server backup. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup? StorageProfileGeoRedundantBackup { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup? StorageProfileGeoRedundantBackup { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup)""); } /// Enable Storage Auto Grow. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow)""); } /// Max storage allowed for a server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public int? StorageProfileStorageMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb = value; } + public int? StorageProfileStorageMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb = value ?? default(int); } /// Server version. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion? Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion? Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion)""); } /// Creates an new instance. public ServerPropertiesForDefaultCreate() @@ -118,8 +118,8 @@ public partial interface IServerPropertiesForDefaultCreate : ReadOnly = false, Description = @"The password of the administrator login.", SerializedName = @"administratorLoginPassword", - PossibleTypes = new [] { typeof(string) })] - string AdministratorLoginPassword { get; set; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + System.Security.SecureString AdministratorLoginPassword { get; set; } } /// The properties used to create a new server. @@ -132,7 +132,7 @@ internal partial interface IServerPropertiesForDefaultCreateInternal : /// string AdministratorLogin { get; set; } /// The password of the administrator login. - string AdministratorLoginPassword { get; set; } + System.Security.SecureString AdministratorLoginPassword { get; set; } } } \ No newline at end of file diff --git a/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.json.cs b/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.json.cs index e5db0d874905..e5c6218b5ac8 100644 --- a/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.json.cs +++ b/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.json.cs @@ -72,7 +72,7 @@ internal ServerPropertiesForDefaultCreate(Microsoft.Azure.PowerShell.Cmdlets.Pos } __serverPropertiesForCreate = new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerPropertiesForCreate(json); {_administratorLogin = If( json?.PropertyT("administratorLogin"), out var __jsonAdministratorLogin) ? (string)__jsonAdministratorLogin : (string)AdministratorLogin;} - {_administratorLoginPassword = If( json?.PropertyT("administratorLoginPassword"), out var __jsonAdministratorLoginPassword) ? (string)__jsonAdministratorLoginPassword : (string)AdministratorLoginPassword;} + {_administratorLoginPassword = If( json?.PropertyT("administratorLoginPassword"), out var __jsonAdministratorLoginPassword) ? new System.Net.NetworkCredential("",(string)__jsonAdministratorLoginPassword).SecurePassword : AdministratorLoginPassword;} AfterFromJson(json); } @@ -97,7 +97,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode ToJso } __serverPropertiesForCreate?.ToJson(container, serializationMode); AddIf( null != (((object)this._administratorLogin)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(this._administratorLogin.ToString()) : null, "administratorLogin" ,container.Add ); - AddIf( null != (((object)this._administratorLoginPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(this._administratorLoginPassword.ToString()) : null, "administratorLoginPassword" ,container.Add ); + AddIf( null != (((object)this._administratorLoginPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(System.Runtime.InteropServices.Marshal.PtrToStringBSTR(System.Runtime.InteropServices.Marshal.SecureStringToBSTR(this._administratorLoginPassword))) : null, "administratorLoginPassword" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForGeoRestore.cs b/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForGeoRestore.cs index 8be727c51ec8..4d173ac42b5a 100644 --- a/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForGeoRestore.cs +++ b/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForGeoRestore.cs @@ -18,22 +18,22 @@ public partial class ServerPropertiesForGeoRestore : /// The mode to create a new server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode CreateMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode CreateMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode = value ; } /// Status showing whether the server enabled infrastructure encryption. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption? InfrastructureEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption? InfrastructureEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption)""); } /// Enforce a minimal Tls version for the server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum? MinimalTlsVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum? MinimalTlsVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum)""); } /// /// Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' /// or 'Disabled' /// [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum? PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum? PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum)""); } /// Backing field for property. private string _sourceServerId; @@ -44,31 +44,31 @@ public partial class ServerPropertiesForGeoRestore : /// Enable ssl enforcement or not when connect to server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum? SslEnforcement { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum? SslEnforcement { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum)""); } /// Storage profile of a server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile = value ?? null /* model class */; } /// Backup retention days for the server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public int? StorageProfileBackupRetentionDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay = value; } + public int? StorageProfileBackupRetentionDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay = value ?? default(int); } /// Enable Geo-redundant or not for server backup. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup? StorageProfileGeoRedundantBackup { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup? StorageProfileGeoRedundantBackup { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup)""); } /// Enable Storage Auto Grow. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow)""); } /// Max storage allowed for a server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public int? StorageProfileStorageMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb = value; } + public int? StorageProfileStorageMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb = value ?? default(int); } /// Server version. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion? Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion? Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion)""); } /// Creates an new instance. public ServerPropertiesForGeoRestore() diff --git a/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForReplica.cs b/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForReplica.cs index b413cd51529e..5f114e116bee 100644 --- a/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForReplica.cs +++ b/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForReplica.cs @@ -16,22 +16,22 @@ public partial class ServerPropertiesForReplica : /// The mode to create a new server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode CreateMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode CreateMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode = value ; } /// Status showing whether the server enabled infrastructure encryption. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption? InfrastructureEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption? InfrastructureEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption)""); } /// Enforce a minimal Tls version for the server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum? MinimalTlsVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum? MinimalTlsVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum)""); } /// /// Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' /// or 'Disabled' /// [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum? PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum? PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum)""); } /// Backing field for property. private string _sourceServerId; @@ -42,31 +42,31 @@ public partial class ServerPropertiesForReplica : /// Enable ssl enforcement or not when connect to server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum? SslEnforcement { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum? SslEnforcement { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum)""); } /// Storage profile of a server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile = value ?? null /* model class */; } /// Backup retention days for the server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public int? StorageProfileBackupRetentionDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay = value; } + public int? StorageProfileBackupRetentionDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay = value ?? default(int); } /// Enable Geo-redundant or not for server backup. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup? StorageProfileGeoRedundantBackup { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup? StorageProfileGeoRedundantBackup { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup)""); } /// Enable Storage Auto Grow. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow)""); } /// Max storage allowed for a server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public int? StorageProfileStorageMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb = value; } + public int? StorageProfileStorageMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb = value ?? default(int); } /// Server version. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion? Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion? Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion)""); } /// Creates an new instance. public ServerPropertiesForReplica() diff --git a/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForRestore.cs b/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForRestore.cs index e9b22823838c..503bcdd1b43e 100644 --- a/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForRestore.cs +++ b/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForRestore.cs @@ -16,22 +16,22 @@ public partial class ServerPropertiesForRestore : /// The mode to create a new server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode CreateMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode CreateMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode = value ; } /// Status showing whether the server enabled infrastructure encryption. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption? InfrastructureEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption? InfrastructureEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption)""); } /// Enforce a minimal Tls version for the server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum? MinimalTlsVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum? MinimalTlsVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum)""); } /// /// Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' /// or 'Disabled' /// [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum? PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum? PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum)""); } /// Backing field for property. private global::System.DateTime _restorePointInTime; @@ -51,31 +51,31 @@ public partial class ServerPropertiesForRestore : /// Enable ssl enforcement or not when connect to server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum? SslEnforcement { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum? SslEnforcement { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum)""); } /// Storage profile of a server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile = value ?? null /* model class */; } /// Backup retention days for the server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public int? StorageProfileBackupRetentionDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay = value; } + public int? StorageProfileBackupRetentionDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay = value ?? default(int); } /// Enable Geo-redundant or not for server backup. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup? StorageProfileGeoRedundantBackup { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup? StorageProfileGeoRedundantBackup { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup)""); } /// Enable Storage Auto Grow. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow)""); } /// Max storage allowed for a server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public int? StorageProfileStorageMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb = value; } + public int? StorageProfileStorageMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb = value ?? default(int); } /// Server version. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion? Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion? Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion)""); } /// Creates an new instance. public ServerPropertiesForRestore() diff --git a/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParameters.PowerShell.cs b/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParameters.PowerShell.cs index 8b9ef9d5d7aa..c0868a1e1639 100644 --- a/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParameters.PowerShell.cs +++ b/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParameters.PowerShell.cs @@ -98,16 +98,16 @@ internal ServerUpdateParameters(global::System.Collections.IDictionary content) ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.SkuTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerUpdateParametersPropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerUpdateParametersTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuSize, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuFamily, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityPrincipalId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityTenantId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum.CreateFrom); @@ -138,16 +138,16 @@ internal ServerUpdateParameters(global::System.Management.Automation.PSObject co ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.SkuTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerUpdateParametersPropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerUpdateParametersTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuSize, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuFamily, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityPrincipalId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityTenantId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum.CreateFrom); diff --git a/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParameters.cs b/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParameters.cs index 22a895cc37ce..eaee45324e17 100644 --- a/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParameters.cs +++ b/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParameters.cs @@ -10,7 +10,7 @@ public partial class ServerUpdateParameters : /// The password of the administrator login. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inlined)] - public string AdministratorLoginPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)Property).AdministratorLoginPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)Property).AdministratorLoginPassword = value ?? null; } + public System.Security.SecureString AdministratorLoginPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)Property).AdministratorLoginPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)Property).AdministratorLoginPassword = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IResourceIdentity _identity; @@ -150,8 +150,8 @@ public partial interface IServerUpdateParameters : ReadOnly = false, Description = @"The password of the administrator login.", SerializedName = @"administratorLoginPassword", - PossibleTypes = new [] { typeof(string) })] - string AdministratorLoginPassword { get; set; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + System.Security.SecureString AdministratorLoginPassword { get; set; } /// The Azure Active Directory principal id. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info( Required = false, @@ -311,7 +311,7 @@ internal partial interface IServerUpdateParametersInternal { /// The password of the administrator login. - string AdministratorLoginPassword { get; set; } + System.Security.SecureString AdministratorLoginPassword { get; set; } /// The Azure Active Directory identity of the server. Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IResourceIdentity Identity { get; set; } /// The Azure Active Directory principal id. diff --git a/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.PowerShell.cs b/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.PowerShell.cs index 54d6f803ba22..7532c17255f2 100644 --- a/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.PowerShell.cs +++ b/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.PowerShell.cs @@ -97,7 +97,7 @@ internal ServerUpdateParametersProperties(global::System.Collections.IDictionary } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum.CreateFrom); @@ -125,7 +125,7 @@ internal ServerUpdateParametersProperties(global::System.Management.Automation.P } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum.CreateFrom); diff --git a/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.cs b/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.cs index 9acb4dee30bc..531e22d13c0f 100644 --- a/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.cs +++ b/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.cs @@ -9,11 +9,11 @@ public partial class ServerUpdateParametersProperties : { /// Backing field for property. - private string _administratorLoginPassword; + private System.Security.SecureString _administratorLoginPassword; /// The password of the administrator login. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Owned)] - public string AdministratorLoginPassword { get => this._administratorLoginPassword; set => this._administratorLoginPassword = value; } + public System.Security.SecureString AdministratorLoginPassword { get => this._administratorLoginPassword; set => this._administratorLoginPassword = value; } /// Internal Acessors for StorageProfile Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal.StorageProfile { get => (this._storageProfile = this._storageProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.StorageProfile()); set { {_storageProfile = value;} } } @@ -95,8 +95,8 @@ public partial interface IServerUpdateParametersProperties : ReadOnly = false, Description = @"The password of the administrator login.", SerializedName = @"administratorLoginPassword", - PossibleTypes = new [] { typeof(string) })] - string AdministratorLoginPassword { get; set; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + System.Security.SecureString AdministratorLoginPassword { get; set; } /// Enforce a minimal Tls version for the server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info( Required = false, @@ -179,7 +179,7 @@ internal partial interface IServerUpdateParametersPropertiesInternal { /// The password of the administrator login. - string AdministratorLoginPassword { get; set; } + System.Security.SecureString AdministratorLoginPassword { get; set; } /// Enforce a minimal Tls version for the server. Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum? MinimalTlsVersion { get; set; } /// diff --git a/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.json.cs b/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.json.cs index 1f741d8b3644..bdc9a9e156ea 100644 --- a/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.json.cs +++ b/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.json.cs @@ -71,7 +71,7 @@ internal ServerUpdateParametersProperties(Microsoft.Azure.PowerShell.Cmdlets.Pos return; } {_storageProfile = If( json?.PropertyT("storageProfile"), out var __jsonStorageProfile) ? Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.StorageProfile.FromJson(__jsonStorageProfile) : StorageProfile;} - {_administratorLoginPassword = If( json?.PropertyT("administratorLoginPassword"), out var __jsonAdministratorLoginPassword) ? (string)__jsonAdministratorLoginPassword : (string)AdministratorLoginPassword;} + {_administratorLoginPassword = If( json?.PropertyT("administratorLoginPassword"), out var __jsonAdministratorLoginPassword) ? new System.Net.NetworkCredential("",(string)__jsonAdministratorLoginPassword).SecurePassword : AdministratorLoginPassword;} {_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version;} {_sslEnforcement = If( json?.PropertyT("sslEnforcement"), out var __jsonSslEnforcement) ? (string)__jsonSslEnforcement : (string)SslEnforcement;} {_minimalTlsVersion = If( json?.PropertyT("minimalTlsVersion"), out var __jsonMinimalTlsVersion) ? (string)__jsonMinimalTlsVersion : (string)MinimalTlsVersion;} @@ -100,7 +100,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode ToJso return container; } AddIf( null != this._storageProfile ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) this._storageProfile.ToJson(null,serializationMode) : null, "storageProfile" ,container.Add ); - AddIf( null != (((object)this._administratorLoginPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(this._administratorLoginPassword.ToString()) : null, "administratorLoginPassword" ,container.Add ); + AddIf( null != (((object)this._administratorLoginPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(System.Runtime.InteropServices.Marshal.PtrToStringBSTR(System.Runtime.InteropServices.Marshal.SecureStringToBSTR(this._administratorLoginPassword))) : null, "administratorLoginPassword" ,container.Add ); AddIf( null != (((object)this._version)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(this._version.ToString()) : null, "version" ,container.Add ); AddIf( null != (((object)this._sslEnforcement)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(this._sslEnforcement.ToString()) : null, "sslEnforcement" ,container.Add ); AddIf( null != (((object)this._minimalTlsVersion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(this._minimalTlsVersion.ToString()) : null, "minimalTlsVersion" ,container.Add ); diff --git a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerAutoGenerated.PowerShell.cs b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerAutoGenerated.PowerShell.cs index d3030c9c9f5d..f44002bfa292 100644 --- a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerAutoGenerated.PowerShell.cs +++ b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerAutoGenerated.PowerShell.cs @@ -105,28 +105,28 @@ internal ServerAutoGenerated(global::System.Collections.IDictionary content) ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.TrackedResourceTagsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityTenantId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).SkuName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.MaintenanceWindowTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityTenantId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode?) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerPublicNetworkAccessState?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerPublicNetworkAccessState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ResourceIdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ResourceIdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IStorageProfileAutoGenerated) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.StorageProfileAutoGeneratedTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).DelegatedSubnetArgument = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesDelegatedSubnetArguments) content.GetValueForProperty("DelegatedSubnetArgument",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).DelegatedSubnetArgument, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ServerPropertiesDelegatedSubnetArgumentsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AdministratorLogin, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerState.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).HaState = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerHaState?) content.GetValueForProperty("HaState",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).HaState, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerHaState.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).FullyQualifiedDomainName = (string) content.GetValueForProperty("FullyQualifiedDomainName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).FullyQualifiedDomainName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).DisplayName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ResourceIdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ResourceIdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerPublicNetworkAccessState?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerPublicNetworkAccessState.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).HaEnabled = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum?) content.GetValueForProperty("HaEnabled",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).HaEnabled, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).SourceServerName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PointInTimeUtc = (global::System.DateTime?) content.GetValueForProperty("PointInTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PointInTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AvailabilityZone = (string) content.GetValueForProperty("AvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AvailabilityZone, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StandbyAvailabilityZone = (string) content.GetValueForProperty("StandbyAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StandbyAvailabilityZone, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).ByokEnforcement = (string) content.GetValueForProperty("ByokEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).ByokEnforcement, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IStorageProfileAutoGenerated) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.StorageProfileAutoGeneratedTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PropertiesTag = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesTags) content.GetValueForProperty("PropertiesTag",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PropertiesTag, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ServerPropertiesTagsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).MaintenanceWindowCustomWindow = (string) content.GetValueForProperty("MaintenanceWindowCustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).MaintenanceWindowCustomWindow, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); @@ -161,28 +161,28 @@ internal ServerAutoGenerated(global::System.Management.Automation.PSObject conte ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.TrackedResourceTagsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityTenantId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).SkuName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.MaintenanceWindowTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityTenantId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode?) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerPublicNetworkAccessState?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerPublicNetworkAccessState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ResourceIdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ResourceIdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IStorageProfileAutoGenerated) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.StorageProfileAutoGeneratedTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).DelegatedSubnetArgument = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesDelegatedSubnetArguments) content.GetValueForProperty("DelegatedSubnetArgument",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).DelegatedSubnetArgument, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ServerPropertiesDelegatedSubnetArgumentsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AdministratorLogin, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerState.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).HaState = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerHaState?) content.GetValueForProperty("HaState",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).HaState, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerHaState.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).FullyQualifiedDomainName = (string) content.GetValueForProperty("FullyQualifiedDomainName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).FullyQualifiedDomainName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).DisplayName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ResourceIdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ResourceIdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerPublicNetworkAccessState?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerPublicNetworkAccessState.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).HaEnabled = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum?) content.GetValueForProperty("HaEnabled",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).HaEnabled, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).SourceServerName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PointInTimeUtc = (global::System.DateTime?) content.GetValueForProperty("PointInTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PointInTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AvailabilityZone = (string) content.GetValueForProperty("AvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AvailabilityZone, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StandbyAvailabilityZone = (string) content.GetValueForProperty("StandbyAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StandbyAvailabilityZone, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).ByokEnforcement = (string) content.GetValueForProperty("ByokEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).ByokEnforcement, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IStorageProfileAutoGenerated) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.StorageProfileAutoGeneratedTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PropertiesTag = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesTags) content.GetValueForProperty("PropertiesTag",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PropertiesTag, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ServerPropertiesTagsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).MaintenanceWindowCustomWindow = (string) content.GetValueForProperty("MaintenanceWindowCustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).MaintenanceWindowCustomWindow, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); diff --git a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerAutoGenerated.cs b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerAutoGenerated.cs index 851cd37576a3..ca5ead53f1ec 100644 --- a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerAutoGenerated.cs +++ b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerAutoGenerated.cs @@ -25,7 +25,7 @@ public partial class ServerAutoGenerated : /// The administrator login password (required for server creation). [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.DoNotFormat] - public string AdministratorLoginPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)Property).AdministratorLoginPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)Property).AdministratorLoginPassword = value ?? null; } + public System.Security.SecureString AdministratorLoginPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)Property).AdministratorLoginPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)Property).AdministratorLoginPassword = value ?? null; } /// availability Zone information of the server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inlined)] @@ -102,7 +102,7 @@ public partial class ServerAutoGenerated : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.FormatTable(Index = 1)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Location = value; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Location = value ; } /// indicates whether custom window is enabled or disabled [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inlined)] @@ -251,7 +251,7 @@ public partial class ServerAutoGenerated : /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" @@ -305,8 +305,8 @@ public partial interface IServerAutoGenerated : ReadOnly = false, Description = @"The administrator login password (required for server creation).", SerializedName = @"administratorLoginPassword", - PossibleTypes = new [] { typeof(string) })] - string AdministratorLoginPassword { get; set; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + System.Security.SecureString AdministratorLoginPassword { get; set; } /// availability Zone information of the server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info( Required = false, @@ -531,7 +531,7 @@ internal partial interface IServerAutoGeneratedInternal : /// string AdministratorLogin { get; set; } /// The administrator login password (required for server creation). - string AdministratorLoginPassword { get; set; } + System.Security.SecureString AdministratorLoginPassword { get; set; } /// availability Zone information of the server. string AvailabilityZone { get; set; } /// diff --git a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerForUpdate.PowerShell.cs b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerForUpdate.PowerShell.cs index af8dec7d7608..4bfb3ac3b67a 100644 --- a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerForUpdate.PowerShell.cs +++ b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerForUpdate.PowerShell.cs @@ -99,12 +99,12 @@ internal ServerForUpdate(global::System.Collections.IDictionary content) ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).Location, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ServerForUpdateTagsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).SkuName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.MaintenanceWindowTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindowCustomWindow = (string) content.GetValueForProperty("MaintenanceWindowCustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindowCustomWindow, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).HaEnabled = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum?) content.GetValueForProperty("HaEnabled",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).HaEnabled, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.MaintenanceWindowTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IStorageProfileAutoGenerated) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.StorageProfileAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).HaEnabled = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum?) content.GetValueForProperty("HaEnabled",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).HaEnabled, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindowCustomWindow = (string) content.GetValueForProperty("MaintenanceWindowCustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindowCustomWindow, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindowStartHour = (int?) content.GetValueForProperty("MaintenanceWindowStartHour",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindowStartHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); @@ -132,12 +132,12 @@ internal ServerForUpdate(global::System.Management.Automation.PSObject content) ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).Location, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ServerForUpdateTagsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).SkuName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.MaintenanceWindowTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindowCustomWindow = (string) content.GetValueForProperty("MaintenanceWindowCustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindowCustomWindow, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).HaEnabled = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum?) content.GetValueForProperty("HaEnabled",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).HaEnabled, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.MaintenanceWindowTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IStorageProfileAutoGenerated) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.StorageProfileAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).HaEnabled = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum?) content.GetValueForProperty("HaEnabled",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).HaEnabled, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindowCustomWindow = (string) content.GetValueForProperty("MaintenanceWindowCustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindowCustomWindow, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindowStartHour = (int?) content.GetValueForProperty("MaintenanceWindowStartHour",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindowStartHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); diff --git a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerForUpdate.cs b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerForUpdate.cs index 6894ee22f7f9..312b4634d84e 100644 --- a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerForUpdate.cs +++ b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerForUpdate.cs @@ -10,7 +10,7 @@ public partial class ServerForUpdate : /// The password of the administrator login. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inlined)] - public string AdministratorLoginPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)Property).AdministratorLoginPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)Property).AdministratorLoginPassword = value ?? null; } + public System.Security.SecureString AdministratorLoginPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)Property).AdministratorLoginPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)Property).AdministratorLoginPassword = value ?? null; } /// stand by count value can be either enabled or disabled [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inlined)] @@ -104,8 +104,8 @@ public partial interface IServerForUpdate : ReadOnly = false, Description = @"The password of the administrator login.", SerializedName = @"administratorLoginPassword", - PossibleTypes = new [] { typeof(string) })] - string AdministratorLoginPassword { get; set; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + System.Security.SecureString AdministratorLoginPassword { get; set; } /// stand by count value can be either enabled or disabled [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info( Required = false, @@ -201,7 +201,7 @@ internal partial interface IServerForUpdateInternal { /// The password of the administrator login. - string AdministratorLoginPassword { get; set; } + System.Security.SecureString AdministratorLoginPassword { get; set; } /// stand by count value can be either enabled or disabled Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum? HaEnabled { get; set; } /// The location the resource resides in. diff --git a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesAutoGenerated.PowerShell.cs b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesAutoGenerated.PowerShell.cs index 5eb6e6924ce1..44359dee51bd 100644 --- a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesAutoGenerated.PowerShell.cs +++ b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesAutoGenerated.PowerShell.cs @@ -100,7 +100,7 @@ internal ServerPropertiesAutoGenerated(global::System.Collections.IDictionary co ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.MaintenanceWindowTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).DelegatedSubnetArgument = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesDelegatedSubnetArguments) content.GetValueForProperty("DelegatedSubnetArgument",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).DelegatedSubnetArgument, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ServerPropertiesDelegatedSubnetArgumentsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLogin, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerState.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).HaState = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerHaState?) content.GetValueForProperty("HaState",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).HaState, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerHaState.CreateFrom); @@ -143,7 +143,7 @@ internal ServerPropertiesAutoGenerated(global::System.Management.Automation.PSOb ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.MaintenanceWindowTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).DelegatedSubnetArgument = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesDelegatedSubnetArguments) content.GetValueForProperty("DelegatedSubnetArgument",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).DelegatedSubnetArgument, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ServerPropertiesDelegatedSubnetArgumentsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLogin, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerState.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).HaState = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerHaState?) content.GetValueForProperty("HaState",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).HaState, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerHaState.CreateFrom); diff --git a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesAutoGenerated.cs b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesAutoGenerated.cs index 87d72c667297..9781d87095a3 100644 --- a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesAutoGenerated.cs +++ b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesAutoGenerated.cs @@ -19,11 +19,11 @@ public partial class ServerPropertiesAutoGenerated : public string AdministratorLogin { get => this._administratorLogin; set => this._administratorLogin = value; } /// Backing field for property. - private string _administratorLoginPassword; + private System.Security.SecureString _administratorLoginPassword; /// The administrator login password (required for server creation). [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Owned)] - public string AdministratorLoginPassword { get => this._administratorLoginPassword; set => this._administratorLoginPassword = value; } + public System.Security.SecureString AdministratorLoginPassword { get => this._administratorLoginPassword; set => this._administratorLoginPassword = value; } /// Backing field for property. private string _availabilityZone; @@ -229,8 +229,8 @@ public partial interface IServerPropertiesAutoGenerated : ReadOnly = false, Description = @"The administrator login password (required for server creation).", SerializedName = @"administratorLoginPassword", - PossibleTypes = new [] { typeof(string) })] - string AdministratorLoginPassword { get; set; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + System.Security.SecureString AdministratorLoginPassword { get; set; } /// availability Zone information of the server. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info( Required = false, @@ -415,7 +415,7 @@ internal partial interface IServerPropertiesAutoGeneratedInternal /// string AdministratorLogin { get; set; } /// The administrator login password (required for server creation). - string AdministratorLoginPassword { get; set; } + System.Security.SecureString AdministratorLoginPassword { get; set; } /// availability Zone information of the server. string AvailabilityZone { get; set; } /// diff --git a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesAutoGenerated.json.cs b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesAutoGenerated.json.cs index d9bd8fe1a1ae..aef8577c57a3 100644 --- a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesAutoGenerated.json.cs +++ b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesAutoGenerated.json.cs @@ -74,7 +74,7 @@ internal ServerPropertiesAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.Postgr {_maintenanceWindow = If( json?.PropertyT("maintenanceWindow"), out var __jsonMaintenanceWindow) ? Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.MaintenanceWindow.FromJson(__jsonMaintenanceWindow) : MaintenanceWindow;} {_delegatedSubnetArgument = If( json?.PropertyT("delegatedSubnetArguments"), out var __jsonDelegatedSubnetArguments) ? Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ServerPropertiesDelegatedSubnetArguments.FromJson(__jsonDelegatedSubnetArguments) : DelegatedSubnetArgument;} {_administratorLogin = If( json?.PropertyT("administratorLogin"), out var __jsonAdministratorLogin) ? (string)__jsonAdministratorLogin : (string)AdministratorLogin;} - {_administratorLoginPassword = If( json?.PropertyT("administratorLoginPassword"), out var __jsonAdministratorLoginPassword) ? (string)__jsonAdministratorLoginPassword : (string)AdministratorLoginPassword;} + {_administratorLoginPassword = If( json?.PropertyT("administratorLoginPassword"), out var __jsonAdministratorLoginPassword) ? new System.Net.NetworkCredential("",(string)__jsonAdministratorLoginPassword).SecurePassword : AdministratorLoginPassword;} {_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version;} {_state = If( json?.PropertyT("state"), out var __jsonState) ? (string)__jsonState : (string)State;} {_haState = If( json?.PropertyT("haState"), out var __jsonHaState) ? (string)__jsonHaState : (string)HaState;} @@ -115,7 +115,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode ToJso AddIf( null != this._maintenanceWindow ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) this._maintenanceWindow.ToJson(null,serializationMode) : null, "maintenanceWindow" ,container.Add ); AddIf( null != this._delegatedSubnetArgument ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) this._delegatedSubnetArgument.ToJson(null,serializationMode) : null, "delegatedSubnetArguments" ,container.Add ); AddIf( null != (((object)this._administratorLogin)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(this._administratorLogin.ToString()) : null, "administratorLogin" ,container.Add ); - AddIf( null != (((object)this._administratorLoginPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(this._administratorLoginPassword.ToString()) : null, "administratorLoginPassword" ,container.Add ); + AddIf( null != (((object)this._administratorLoginPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(System.Runtime.InteropServices.Marshal.PtrToStringBSTR(System.Runtime.InteropServices.Marshal.SecureStringToBSTR(this._administratorLoginPassword))) : null, "administratorLoginPassword" ,container.Add ); AddIf( null != (((object)this._version)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(this._version.ToString()) : null, "version" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.SerializationMode.IncludeReadOnly)) { diff --git a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesForUpdate.PowerShell.cs b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesForUpdate.PowerShell.cs index 41a55880190a..c265739d1cf4 100644 --- a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesForUpdate.PowerShell.cs +++ b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesForUpdate.PowerShell.cs @@ -97,7 +97,7 @@ internal ServerPropertiesForUpdate(global::System.Collections.IDictionary conten // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IStorageProfileAutoGenerated) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.StorageProfileAutoGeneratedTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.MaintenanceWindowTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).HaEnabled = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum?) content.GetValueForProperty("HaEnabled",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).HaEnabled, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindowCustomWindow = (string) content.GetValueForProperty("MaintenanceWindowCustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindowCustomWindow, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); @@ -124,7 +124,7 @@ internal ServerPropertiesForUpdate(global::System.Management.Automation.PSObject // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IStorageProfileAutoGenerated) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.StorageProfileAutoGeneratedTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.MaintenanceWindowTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).HaEnabled = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum?) content.GetValueForProperty("HaEnabled",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).HaEnabled, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindowCustomWindow = (string) content.GetValueForProperty("MaintenanceWindowCustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindowCustomWindow, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); diff --git a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesForUpdate.cs b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesForUpdate.cs index 9b1ad98ae1bc..68ba16824ced 100644 --- a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesForUpdate.cs +++ b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesForUpdate.cs @@ -8,11 +8,11 @@ public partial class ServerPropertiesForUpdate : { /// Backing field for property. - private string _administratorLoginPassword; + private System.Security.SecureString _administratorLoginPassword; /// The password of the administrator login. [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Owned)] - public string AdministratorLoginPassword { get => this._administratorLoginPassword; set => this._administratorLoginPassword = value; } + public System.Security.SecureString AdministratorLoginPassword { get => this._administratorLoginPassword; set => this._administratorLoginPassword = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum? _haEnabled; @@ -80,8 +80,8 @@ public partial interface IServerPropertiesForUpdate : ReadOnly = false, Description = @"The password of the administrator login.", SerializedName = @"administratorLoginPassword", - PossibleTypes = new [] { typeof(string) })] - string AdministratorLoginPassword { get; set; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + System.Security.SecureString AdministratorLoginPassword { get; set; } /// stand by count value can be either enabled or disabled [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info( Required = false, @@ -144,7 +144,7 @@ internal partial interface IServerPropertiesForUpdateInternal { /// The password of the administrator login. - string AdministratorLoginPassword { get; set; } + System.Security.SecureString AdministratorLoginPassword { get; set; } /// stand by count value can be either enabled or disabled Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum? HaEnabled { get; set; } /// Maintenance window of a server. diff --git a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesForUpdate.json.cs b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesForUpdate.json.cs index 3d8c9b6dd5aa..8c72dc01ab95 100644 --- a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesForUpdate.json.cs +++ b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesForUpdate.json.cs @@ -71,7 +71,7 @@ internal ServerPropertiesForUpdate(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql } {_storageProfile = If( json?.PropertyT("storageProfile"), out var __jsonStorageProfile) ? Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.StorageProfileAutoGenerated.FromJson(__jsonStorageProfile) : StorageProfile;} {_maintenanceWindow = If( json?.PropertyT("maintenanceWindow"), out var __jsonMaintenanceWindow) ? Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.MaintenanceWindow.FromJson(__jsonMaintenanceWindow) : MaintenanceWindow;} - {_administratorLoginPassword = If( json?.PropertyT("administratorLoginPassword"), out var __jsonAdministratorLoginPassword) ? (string)__jsonAdministratorLoginPassword : (string)AdministratorLoginPassword;} + {_administratorLoginPassword = If( json?.PropertyT("administratorLoginPassword"), out var __jsonAdministratorLoginPassword) ? new System.Net.NetworkCredential("",(string)__jsonAdministratorLoginPassword).SecurePassword : AdministratorLoginPassword;} {_haEnabled = If( json?.PropertyT("haEnabled"), out var __jsonHaEnabled) ? (string)__jsonHaEnabled : (string)HaEnabled;} AfterFromJson(json); } @@ -97,7 +97,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode ToJso } AddIf( null != this._storageProfile ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) this._storageProfile.ToJson(null,serializationMode) : null, "storageProfile" ,container.Add ); AddIf( null != this._maintenanceWindow ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) this._maintenanceWindow.ToJson(null,serializationMode) : null, "maintenanceWindow" ,container.Add ); - AddIf( null != (((object)this._administratorLoginPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(this._administratorLoginPassword.ToString()) : null, "administratorLoginPassword" ,container.Add ); + AddIf( null != (((object)this._administratorLoginPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(System.Runtime.InteropServices.Marshal.PtrToStringBSTR(System.Runtime.InteropServices.Marshal.SecureStringToBSTR(this._administratorLoginPassword))) : null, "administratorLoginPassword" ,container.Add ); AddIf( null != (((object)this._haEnabled)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(this._haEnabled.ToString()) : null, "haEnabled" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/PostgreSql/generated/api/PostgreSql.cs b/src/PostgreSql/generated/api/PostgreSql.cs index 72f254a567d5..c4777f33b893 100644 --- a/src/PostgreSql/generated/api/PostgreSql.cs +++ b/src/PostgreSql/generated/api/PostgreSql.cs @@ -2442,7 +2442,7 @@ public partial class PostgreSql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + global::System.Uri.EscapeDataString(serverName) + "/configurations/" + global::System.Uri.EscapeDataString(configurationName) @@ -2481,10 +2481,10 @@ public partial class PostgreSql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForPostgreSql/flexibleServers/(?[^/]+)/configurations/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforPostgreSQL/flexibleServers/(?[^/]+)/configurations/(?[^/]+)$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}'"); } // replace URI parameters with values from identity @@ -2498,7 +2498,7 @@ public partial class PostgreSql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + serverName + "/configurations/" + configurationName @@ -2619,7 +2619,7 @@ public partial class PostgreSql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + global::System.Uri.EscapeDataString(serverName) + "/configurations" + "?" @@ -2657,10 +2657,10 @@ public partial class PostgreSql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForPostgreSql/flexibleServers/(?[^/]+)/configurations$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforPostgreSQL/flexibleServers/(?[^/]+)/configurations$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations'"); } // replace URI parameters with values from identity @@ -2673,7 +2673,7 @@ public partial class PostgreSql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + serverName + "/configurations" + "?" @@ -2795,7 +2795,7 @@ public partial class PostgreSql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + global::System.Uri.EscapeDataString(serverName) + "/configurations/" + global::System.Uri.EscapeDataString(configurationName) @@ -2839,10 +2839,10 @@ public partial class PostgreSql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForPostgreSql/flexibleServers/(?[^/]+)/configurations/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforPostgreSQL/flexibleServers/(?[^/]+)/configurations/(?[^/]+)$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}'"); } // replace URI parameters with values from identity @@ -2856,7 +2856,7 @@ public partial class PostgreSql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + serverName + "/configurations/" + configurationName @@ -3084,7 +3084,7 @@ public partial class PostgreSql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + global::System.Uri.EscapeDataString(serverName) + "/firewallRules/" + global::System.Uri.EscapeDataString(firewallRuleName) @@ -3128,10 +3128,10 @@ public partial class PostgreSql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForPostgreSql/flexibleServers/(?[^/]+)/firewallRules/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforPostgreSQL/flexibleServers/(?[^/]+)/firewallRules/(?[^/]+)$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'"); } // replace URI parameters with values from identity @@ -3145,7 +3145,7 @@ public partial class PostgreSql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + serverName + "/firewallRules/" + firewallRuleName @@ -3375,7 +3375,7 @@ public partial class PostgreSql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + global::System.Uri.EscapeDataString(serverName) + "/firewallRules/" + global::System.Uri.EscapeDataString(firewallRuleName) @@ -3415,10 +3415,10 @@ public partial class PostgreSql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForPostgreSql/flexibleServers/(?[^/]+)/firewallRules/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforPostgreSQL/flexibleServers/(?[^/]+)/firewallRules/(?[^/]+)$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'"); } // replace URI parameters with values from identity @@ -3432,7 +3432,7 @@ public partial class PostgreSql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + serverName + "/firewallRules/" + firewallRuleName @@ -3660,7 +3660,7 @@ public partial class PostgreSql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + global::System.Uri.EscapeDataString(serverName) + "/firewallRules/" + global::System.Uri.EscapeDataString(firewallRuleName) @@ -3699,10 +3699,10 @@ public partial class PostgreSql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForPostgreSql/flexibleServers/(?[^/]+)/firewallRules/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforPostgreSQL/flexibleServers/(?[^/]+)/firewallRules/(?[^/]+)$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'"); } // replace URI parameters with values from identity @@ -3716,7 +3716,7 @@ public partial class PostgreSql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + serverName + "/firewallRules/" + firewallRuleName @@ -3837,7 +3837,7 @@ public partial class PostgreSql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + global::System.Uri.EscapeDataString(serverName) + "/firewallRules" + "?" @@ -3875,10 +3875,10 @@ public partial class PostgreSql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForPostgreSql/flexibleServers/(?[^/]+)/firewallRules$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforPostgreSQL/flexibleServers/(?[^/]+)/firewallRules$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules'"); } // replace URI parameters with values from identity @@ -3891,7 +3891,7 @@ public partial class PostgreSql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + serverName + "/firewallRules" + "?" @@ -4351,7 +4351,7 @@ public partial class PostgreSql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + global::System.Uri.EscapeDataString(serverName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) @@ -4393,10 +4393,10 @@ public partial class PostgreSql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForPostgreSql/flexibleServers/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforPostgreSQL/flexibleServers/(?[^/]+)$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}'"); } // replace URI parameters with values from identity @@ -4409,7 +4409,7 @@ public partial class PostgreSql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + serverName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) @@ -4632,7 +4632,7 @@ public partial class PostgreSql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + global::System.Uri.EscapeDataString(serverName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) @@ -4670,10 +4670,10 @@ public partial class PostgreSql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForPostgreSql/flexibleServers/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforPostgreSQL/flexibleServers/(?[^/]+)$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}'"); } // replace URI parameters with values from identity @@ -4686,7 +4686,7 @@ public partial class PostgreSql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + serverName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) @@ -4909,7 +4909,7 @@ public partial class PostgreSql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + global::System.Uri.EscapeDataString(serverName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) @@ -4946,10 +4946,10 @@ public partial class PostgreSql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForPostgreSql/flexibleServers/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforPostgreSQL/flexibleServers/(?[^/]+)$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}'"); } // replace URI parameters with values from identity @@ -4962,7 +4962,7 @@ public partial class PostgreSql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + serverName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) @@ -5396,7 +5396,7 @@ public partial class PostgreSql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + global::System.Uri.EscapeDataString(serverName) + "/restart" + "?" @@ -5434,10 +5434,10 @@ public partial class PostgreSql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForPostgreSql/flexibleServers/(?[^/]+)/restart$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforPostgreSQL/flexibleServers/(?[^/]+)/restart$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/restart'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/restart'"); } // replace URI parameters with values from identity @@ -5450,7 +5450,7 @@ public partial class PostgreSql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + serverName + "/restart" + "?" @@ -5667,7 +5667,7 @@ public partial class PostgreSql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + global::System.Uri.EscapeDataString(serverName) + "/start" + "?" @@ -5705,10 +5705,10 @@ public partial class PostgreSql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForPostgreSql/flexibleServers/(?[^/]+)/start$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforPostgreSQL/flexibleServers/(?[^/]+)/start$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/start'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/start'"); } // replace URI parameters with values from identity @@ -5721,7 +5721,7 @@ public partial class PostgreSql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + serverName + "/start" + "?" @@ -5938,7 +5938,7 @@ public partial class PostgreSql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + global::System.Uri.EscapeDataString(serverName) + "/stop" + "?" @@ -5976,10 +5976,10 @@ public partial class PostgreSql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForPostgreSql/flexibleServers/(?[^/]+)/stop$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforPostgreSQL/flexibleServers/(?[^/]+)/stop$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/stop'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/stop'"); } // replace URI parameters with values from identity @@ -5992,7 +5992,7 @@ public partial class PostgreSql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + serverName + "/stop" + "?" @@ -6212,7 +6212,7 @@ public partial class PostgreSql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + global::System.Uri.EscapeDataString(serverName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) @@ -6256,10 +6256,10 @@ public partial class PostgreSql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForPostgreSql/flexibleServers/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforPostgreSQL/flexibleServers/(?[^/]+)$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}'"); } // replace URI parameters with values from identity @@ -6272,7 +6272,7 @@ public partial class PostgreSql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBForPostgreSql/flexibleServers/" + + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/" + serverName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) diff --git a/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServerConfiguration_Get.cs b/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServerConfiguration_Get.cs index c86f6ac8a04e..4994263a2b44 100644 --- a/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServerConfiguration_Get.cs +++ b/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServerConfiguration_Get.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Gets information about a configuration of server. /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzPostgreSqlFlexibleServerConfiguration_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IConfigurationAutoGenerated))] diff --git a/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServerConfiguration_GetViaIdentity.cs b/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServerConfiguration_GetViaIdentity.cs index 0af0aba4c872..aa7117438dc9 100644 --- a/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServerConfiguration_GetViaIdentity.cs +++ b/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServerConfiguration_GetViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Gets information about a configuration of server. /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzPostgreSqlFlexibleServerConfiguration_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IConfigurationAutoGenerated))] diff --git a/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServerConfiguration_List.cs b/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServerConfiguration_List.cs index d8ae444dd044..a9885024f1fd 100644 --- a/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServerConfiguration_List.cs +++ b/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServerConfiguration_List.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// List all the configurations in a given server. /// - /// [OpenAPI] ListByServer=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations" + /// [OpenAPI] ListByServer=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzPostgreSqlFlexibleServerConfiguration_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IConfigurationAutoGenerated))] diff --git a/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServerFirewallRule_Get.cs b/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServerFirewallRule_Get.cs index c933ee7d75e3..e408a3d144a4 100644 --- a/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServerFirewallRule_Get.cs +++ b/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServerFirewallRule_Get.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// List all the firewall rules in a given server. /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzPostgreSqlFlexibleServerFirewallRule_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule))] diff --git a/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServerFirewallRule_GetViaIdentity.cs b/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServerFirewallRule_GetViaIdentity.cs index a9242671ce13..65fb79674f2c 100644 --- a/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServerFirewallRule_GetViaIdentity.cs +++ b/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServerFirewallRule_GetViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// List all the firewall rules in a given server. /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzPostgreSqlFlexibleServerFirewallRule_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule))] diff --git a/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServerFirewallRule_List.cs b/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServerFirewallRule_List.cs index 5bfab1af8096..fad885b20f41 100644 --- a/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServerFirewallRule_List.cs +++ b/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServerFirewallRule_List.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// List all the firewall rules in a given PostgreSQL server. /// - /// [OpenAPI] ListByServer=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules" + /// [OpenAPI] ListByServer=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzPostgreSqlFlexibleServerFirewallRule_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule))] diff --git a/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServer_Get.cs b/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServer_Get.cs index 686360dcce9b..3d91b7e2e223 100644 --- a/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServer_Get.cs +++ b/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServer_Get.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Gets information about a server. /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzPostgreSqlFlexibleServer_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated))] diff --git a/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServer_GetViaIdentity.cs b/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServer_GetViaIdentity.cs index 6c2dfdca8b19..155e1ffa7e67 100644 --- a/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServer_GetViaIdentity.cs +++ b/src/PostgreSql/generated/cmdlets/GetAzPostgreSqlFlexibleServer_GetViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Gets information about a server. /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzPostgreSqlFlexibleServer_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated))] diff --git a/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServerFirewallRule_Create.cs b/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServerFirewallRule_Create.cs index 239a1b0e0978..9e76973cdfd3 100644 --- a/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServerFirewallRule_Create.cs +++ b/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServerFirewallRule_Create.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Creates a new firewall rule or updates an existing firewall rule. /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzPostgreSqlFlexibleServerFirewallRule_Create", SupportsShouldProcess = true)] diff --git a/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServerFirewallRule_CreateExpanded.cs b/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServerFirewallRule_CreateExpanded.cs index 9fe1430d6fb8..225b271c9b89 100644 --- a/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServerFirewallRule_CreateExpanded.cs +++ b/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServerFirewallRule_CreateExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Creates a new firewall rule or updates an existing firewall rule. /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzPostgreSqlFlexibleServerFirewallRule_CreateExpanded", SupportsShouldProcess = true)] diff --git a/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServerFirewallRule_CreateViaIdentity.cs b/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServerFirewallRule_CreateViaIdentity.cs index 1997181dae35..63a7c661205f 100644 --- a/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServerFirewallRule_CreateViaIdentity.cs +++ b/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServerFirewallRule_CreateViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Creates a new firewall rule or updates an existing firewall rule. /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzPostgreSqlFlexibleServerFirewallRule_CreateViaIdentity", SupportsShouldProcess = true)] diff --git a/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServerFirewallRule_CreateViaIdentityExpanded.cs b/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServerFirewallRule_CreateViaIdentityExpanded.cs index 7429e3927242..065b44eefcb2 100644 --- a/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServerFirewallRule_CreateViaIdentityExpanded.cs +++ b/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServerFirewallRule_CreateViaIdentityExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Creates a new firewall rule or updates an existing firewall rule. /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzPostgreSqlFlexibleServerFirewallRule_CreateViaIdentityExpanded", SupportsShouldProcess = true)] diff --git a/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServer_Create.cs b/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServer_Create.cs index a2342ae3e7bb..ec8fec3a4411 100644 --- a/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServer_Create.cs +++ b/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServer_Create.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Creates a new server. /// - /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}" + /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzPostgreSqlFlexibleServer_Create", SupportsShouldProcess = true)] diff --git a/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServer_CreateExpanded.cs b/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServer_CreateExpanded.cs index c421e6dc17a8..18da0de9d4e3 100644 --- a/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServer_CreateExpanded.cs +++ b/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServer_CreateExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Creates a new server. /// - /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}" + /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzPostgreSqlFlexibleServer_CreateExpanded", SupportsShouldProcess = true)] @@ -55,8 +55,8 @@ public partial class NewAzPostgreSqlFlexibleServer_CreateExpanded : global::Syst ReadOnly = false, Description = @"The administrator login password (required for server creation).", SerializedName = @"administratorLoginPassword", - PossibleTypes = new [] { typeof(string) })] - public string AdministratorLoginPassword { get => ParametersBody.AdministratorLoginPassword ?? null; set => ParametersBody.AdministratorLoginPassword = value; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + public System.Security.SecureString AdministratorLoginPassword { get => ParametersBody.AdministratorLoginPassword ?? null; set => ParametersBody.AdministratorLoginPassword = value; } /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] diff --git a/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServer_CreateViaIdentity.cs b/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServer_CreateViaIdentity.cs index 7319f451c5a0..b4203d788d10 100644 --- a/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServer_CreateViaIdentity.cs +++ b/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServer_CreateViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Creates a new server. /// - /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}" + /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzPostgreSqlFlexibleServer_CreateViaIdentity", SupportsShouldProcess = true)] diff --git a/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServer_CreateViaIdentityExpanded.cs b/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServer_CreateViaIdentityExpanded.cs index 14a552f67cdc..455b767d32e5 100644 --- a/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServer_CreateViaIdentityExpanded.cs +++ b/src/PostgreSql/generated/cmdlets/NewAzPostgreSqlFlexibleServer_CreateViaIdentityExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Creates a new server. /// - /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}" + /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzPostgreSqlFlexibleServer_CreateViaIdentityExpanded", SupportsShouldProcess = true)] @@ -55,8 +55,8 @@ public partial class NewAzPostgreSqlFlexibleServer_CreateViaIdentityExpanded : g ReadOnly = false, Description = @"The administrator login password (required for server creation).", SerializedName = @"administratorLoginPassword", - PossibleTypes = new [] { typeof(string) })] - public string AdministratorLoginPassword { get => ParametersBody.AdministratorLoginPassword ?? null; set => ParametersBody.AdministratorLoginPassword = value; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + public System.Security.SecureString AdministratorLoginPassword { get => ParametersBody.AdministratorLoginPassword ?? null; set => ParametersBody.AdministratorLoginPassword = value; } /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] diff --git a/src/PostgreSql/generated/cmdlets/RemoveAzPostgreSqlFlexibleServerFirewallRule_Delete.cs b/src/PostgreSql/generated/cmdlets/RemoveAzPostgreSqlFlexibleServerFirewallRule_Delete.cs index ea8fc81b752d..dc3fa4ed9a4d 100644 --- a/src/PostgreSql/generated/cmdlets/RemoveAzPostgreSqlFlexibleServerFirewallRule_Delete.cs +++ b/src/PostgreSql/generated/cmdlets/RemoveAzPostgreSqlFlexibleServerFirewallRule_Delete.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Deletes a PostgreSQL server firewall rule. /// - /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzPostgreSqlFlexibleServerFirewallRule_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] diff --git a/src/PostgreSql/generated/cmdlets/RemoveAzPostgreSqlFlexibleServerFirewallRule_DeleteViaIdentity.cs b/src/PostgreSql/generated/cmdlets/RemoveAzPostgreSqlFlexibleServerFirewallRule_DeleteViaIdentity.cs index 9c87dfaa830e..abd6a972d081 100644 --- a/src/PostgreSql/generated/cmdlets/RemoveAzPostgreSqlFlexibleServerFirewallRule_DeleteViaIdentity.cs +++ b/src/PostgreSql/generated/cmdlets/RemoveAzPostgreSqlFlexibleServerFirewallRule_DeleteViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Deletes a PostgreSQL server firewall rule. /// - /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzPostgreSqlFlexibleServerFirewallRule_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] diff --git a/src/PostgreSql/generated/cmdlets/RemoveAzPostgreSqlFlexibleServer_Delete.cs b/src/PostgreSql/generated/cmdlets/RemoveAzPostgreSqlFlexibleServer_Delete.cs index a2f43f7c44ec..73e30d513460 100644 --- a/src/PostgreSql/generated/cmdlets/RemoveAzPostgreSqlFlexibleServer_Delete.cs +++ b/src/PostgreSql/generated/cmdlets/RemoveAzPostgreSqlFlexibleServer_Delete.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Deletes a server. /// - /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}" + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzPostgreSqlFlexibleServer_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] diff --git a/src/PostgreSql/generated/cmdlets/RemoveAzPostgreSqlFlexibleServer_DeleteViaIdentity.cs b/src/PostgreSql/generated/cmdlets/RemoveAzPostgreSqlFlexibleServer_DeleteViaIdentity.cs index dc61534effbb..ddd1e43fcf0f 100644 --- a/src/PostgreSql/generated/cmdlets/RemoveAzPostgreSqlFlexibleServer_DeleteViaIdentity.cs +++ b/src/PostgreSql/generated/cmdlets/RemoveAzPostgreSqlFlexibleServer_DeleteViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Deletes a server. /// - /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}" + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzPostgreSqlFlexibleServer_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] diff --git a/src/PostgreSql/generated/cmdlets/RestartAzPostgreSqlFlexibleServer_Restart.cs b/src/PostgreSql/generated/cmdlets/RestartAzPostgreSqlFlexibleServer_Restart.cs index 65bde5aae979..cd8b2d3727d4 100644 --- a/src/PostgreSql/generated/cmdlets/RestartAzPostgreSqlFlexibleServer_Restart.cs +++ b/src/PostgreSql/generated/cmdlets/RestartAzPostgreSqlFlexibleServer_Restart.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Restarts a server. /// - /// [OpenAPI] Restart=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/restart" + /// [OpenAPI] Restart=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/restart" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Restart, @"AzPostgreSqlFlexibleServer_Restart", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] diff --git a/src/PostgreSql/generated/cmdlets/RestartAzPostgreSqlFlexibleServer_RestartViaIdentity.cs b/src/PostgreSql/generated/cmdlets/RestartAzPostgreSqlFlexibleServer_RestartViaIdentity.cs index 2e51e4ac5c15..b941ac3acbdd 100644 --- a/src/PostgreSql/generated/cmdlets/RestartAzPostgreSqlFlexibleServer_RestartViaIdentity.cs +++ b/src/PostgreSql/generated/cmdlets/RestartAzPostgreSqlFlexibleServer_RestartViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Restarts a server. /// - /// [OpenAPI] Restart=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/restart" + /// [OpenAPI] Restart=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/restart" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Restart, @"AzPostgreSqlFlexibleServer_RestartViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] diff --git a/src/PostgreSql/generated/cmdlets/StartAzPostgreSqlFlexibleServer_Start.cs b/src/PostgreSql/generated/cmdlets/StartAzPostgreSqlFlexibleServer_Start.cs index c2619d84c380..2d129b9e5a33 100644 --- a/src/PostgreSql/generated/cmdlets/StartAzPostgreSqlFlexibleServer_Start.cs +++ b/src/PostgreSql/generated/cmdlets/StartAzPostgreSqlFlexibleServer_Start.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Starts a server. /// - /// [OpenAPI] Start=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/start" + /// [OpenAPI] Start=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/start" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzPostgreSqlFlexibleServer_Start", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] diff --git a/src/PostgreSql/generated/cmdlets/StartAzPostgreSqlFlexibleServer_StartViaIdentity.cs b/src/PostgreSql/generated/cmdlets/StartAzPostgreSqlFlexibleServer_StartViaIdentity.cs index 989e01d78215..3e295b927c08 100644 --- a/src/PostgreSql/generated/cmdlets/StartAzPostgreSqlFlexibleServer_StartViaIdentity.cs +++ b/src/PostgreSql/generated/cmdlets/StartAzPostgreSqlFlexibleServer_StartViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Starts a server. /// - /// [OpenAPI] Start=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/start" + /// [OpenAPI] Start=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/start" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzPostgreSqlFlexibleServer_StartViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] diff --git a/src/PostgreSql/generated/cmdlets/StopAzPostgreSqlFlexibleServer_Stop.cs b/src/PostgreSql/generated/cmdlets/StopAzPostgreSqlFlexibleServer_Stop.cs index 0d519bb2ffcd..1c407b9088cb 100644 --- a/src/PostgreSql/generated/cmdlets/StopAzPostgreSqlFlexibleServer_Stop.cs +++ b/src/PostgreSql/generated/cmdlets/StopAzPostgreSqlFlexibleServer_Stop.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Stops a server. /// - /// [OpenAPI] Stop=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/stop" + /// [OpenAPI] Stop=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/stop" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Stop, @"AzPostgreSqlFlexibleServer_Stop", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] diff --git a/src/PostgreSql/generated/cmdlets/StopAzPostgreSqlFlexibleServer_StopViaIdentity.cs b/src/PostgreSql/generated/cmdlets/StopAzPostgreSqlFlexibleServer_StopViaIdentity.cs index 5a0c07404217..4206d4b1fb84 100644 --- a/src/PostgreSql/generated/cmdlets/StopAzPostgreSqlFlexibleServer_StopViaIdentity.cs +++ b/src/PostgreSql/generated/cmdlets/StopAzPostgreSqlFlexibleServer_StopViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Stops a server. /// - /// [OpenAPI] Stop=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/stop" + /// [OpenAPI] Stop=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/stop" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Stop, @"AzPostgreSqlFlexibleServer_StopViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] diff --git a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerConfiguration_Update.cs b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerConfiguration_Update.cs index 85b72d43cdae..f19c4acc53d0 100644 --- a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerConfiguration_Update.cs +++ b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerConfiguration_Update.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Updates a configuration of a server. /// - /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}" + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzPostgreSqlFlexibleServerConfiguration_Update", SupportsShouldProcess = true)] diff --git a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerConfiguration_UpdateExpanded.cs b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerConfiguration_UpdateExpanded.cs index 46b6291f2f1f..79c0b92eba2c 100644 --- a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerConfiguration_UpdateExpanded.cs +++ b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerConfiguration_UpdateExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Updates a configuration of a server. /// - /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}" + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzPostgreSqlFlexibleServerConfiguration_UpdateExpanded", SupportsShouldProcess = true)] diff --git a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerConfiguration_UpdateViaIdentity.cs b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerConfiguration_UpdateViaIdentity.cs index fed28cc11061..17af4e9a50ea 100644 --- a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerConfiguration_UpdateViaIdentity.cs +++ b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerConfiguration_UpdateViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Updates a configuration of a server. /// - /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}" + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzPostgreSqlFlexibleServerConfiguration_UpdateViaIdentity", SupportsShouldProcess = true)] diff --git a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerConfiguration_UpdateViaIdentityExpanded.cs b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerConfiguration_UpdateViaIdentityExpanded.cs index d7d1c5055dc0..aaebacad909b 100644 --- a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerConfiguration_UpdateViaIdentityExpanded.cs +++ b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerConfiguration_UpdateViaIdentityExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Updates a configuration of a server. /// - /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}" + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzPostgreSqlFlexibleServerConfiguration_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] diff --git a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerFirewallRule_Update.cs b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerFirewallRule_Update.cs index 7591c8dcbe09..67756f6564ae 100644 --- a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerFirewallRule_Update.cs +++ b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerFirewallRule_Update.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Creates a new firewall rule or updates an existing firewall rule. /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzPostgreSqlFlexibleServerFirewallRule_Update", SupportsShouldProcess = true)] diff --git a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerFirewallRule_UpdateExpanded.cs b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerFirewallRule_UpdateExpanded.cs index 33e8227fb55d..30d3c1e87309 100644 --- a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerFirewallRule_UpdateExpanded.cs +++ b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerFirewallRule_UpdateExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Creates a new firewall rule or updates an existing firewall rule. /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzPostgreSqlFlexibleServerFirewallRule_UpdateExpanded", SupportsShouldProcess = true)] diff --git a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerFirewallRule_UpdateViaIdentity.cs b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerFirewallRule_UpdateViaIdentity.cs index 7e63048c5d28..d8ce4af40fce 100644 --- a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerFirewallRule_UpdateViaIdentity.cs +++ b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerFirewallRule_UpdateViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Creates a new firewall rule or updates an existing firewall rule. /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzPostgreSqlFlexibleServerFirewallRule_UpdateViaIdentity", SupportsShouldProcess = true)] diff --git a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerFirewallRule_UpdateViaIdentityExpanded.cs b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerFirewallRule_UpdateViaIdentityExpanded.cs index b78da7005ce1..855c914839f2 100644 --- a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerFirewallRule_UpdateViaIdentityExpanded.cs +++ b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServerFirewallRule_UpdateViaIdentityExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Creates a new firewall rule or updates an existing firewall rule. /// - /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzPostgreSqlFlexibleServerFirewallRule_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] diff --git a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServer_Update.cs b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServer_Update.cs index 2a7a67de56cb..d4e40932c82b 100644 --- a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServer_Update.cs +++ b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServer_Update.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Updates an existing server. The request body can contain one to many of the properties present in the normal server definition. /// /// - /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}" + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzPostgreSqlFlexibleServer_Update", SupportsShouldProcess = true)] diff --git a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServer_UpdateExpanded.cs b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServer_UpdateExpanded.cs index 9c4da4e86d95..2fadb49f47b9 100644 --- a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServer_UpdateExpanded.cs +++ b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServer_UpdateExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Updates an existing server. The request body can contain one to many of the properties present in the normal server definition. /// /// - /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}" + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzPostgreSqlFlexibleServer_UpdateExpanded", SupportsShouldProcess = true)] @@ -43,8 +43,8 @@ public partial class UpdateAzPostgreSqlFlexibleServer_UpdateExpanded : global::S ReadOnly = false, Description = @"The password of the administrator login.", SerializedName = @"administratorLoginPassword", - PossibleTypes = new [] { typeof(string) })] - public string AdministratorLoginPassword { get => ParametersBody.AdministratorLoginPassword ?? null; set => ParametersBody.AdministratorLoginPassword = value; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + public System.Security.SecureString AdministratorLoginPassword { get => ParametersBody.AdministratorLoginPassword ?? null; set => ParametersBody.AdministratorLoginPassword = value; } /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] diff --git a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServer_UpdateViaIdentity.cs b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServer_UpdateViaIdentity.cs index f33f294c0e9e..877f41f3def4 100644 --- a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServer_UpdateViaIdentity.cs +++ b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServer_UpdateViaIdentity.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Updates an existing server. The request body can contain one to many of the properties present in the normal server definition. /// /// - /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}" + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzPostgreSqlFlexibleServer_UpdateViaIdentity", SupportsShouldProcess = true)] diff --git a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServer_UpdateViaIdentityExpanded.cs b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServer_UpdateViaIdentityExpanded.cs index 3b362ec323a0..2195e8fcdc1f 100644 --- a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServer_UpdateViaIdentityExpanded.cs +++ b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlFlexibleServer_UpdateViaIdentityExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Cmdlets /// Updates an existing server. The request body can contain one to many of the properties present in the normal server definition. /// /// - /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}" + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzPostgreSqlFlexibleServer_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] @@ -43,8 +43,8 @@ public partial class UpdateAzPostgreSqlFlexibleServer_UpdateViaIdentityExpanded ReadOnly = false, Description = @"The password of the administrator login.", SerializedName = @"administratorLoginPassword", - PossibleTypes = new [] { typeof(string) })] - public string AdministratorLoginPassword { get => ParametersBody.AdministratorLoginPassword ?? null; set => ParametersBody.AdministratorLoginPassword = value; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + public System.Security.SecureString AdministratorLoginPassword { get => ParametersBody.AdministratorLoginPassword ?? null; set => ParametersBody.AdministratorLoginPassword = value; } /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] diff --git a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlServer_UpdateExpanded.cs b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlServer_UpdateExpanded.cs index e1a82946bc62..7c95b86055ed 100644 --- a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlServer_UpdateExpanded.cs +++ b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlServer_UpdateExpanded.cs @@ -43,8 +43,8 @@ public partial class UpdateAzPostgreSqlServer_UpdateExpanded : global::System.Ma ReadOnly = false, Description = @"The password of the administrator login.", SerializedName = @"administratorLoginPassword", - PossibleTypes = new [] { typeof(string) })] - public string AdministratorLoginPassword { get => ParametersBody.AdministratorLoginPassword ?? null; set => ParametersBody.AdministratorLoginPassword = value; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + public System.Security.SecureString AdministratorLoginPassword { get => ParametersBody.AdministratorLoginPassword ?? null; set => ParametersBody.AdministratorLoginPassword = value; } /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] diff --git a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlServer_UpdateViaIdentityExpanded.cs b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlServer_UpdateViaIdentityExpanded.cs index c075f04cb985..391acbca1d42 100644 --- a/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlServer_UpdateViaIdentityExpanded.cs +++ b/src/PostgreSql/generated/cmdlets/UpdateAzPostgreSqlServer_UpdateViaIdentityExpanded.cs @@ -43,8 +43,8 @@ public partial class UpdateAzPostgreSqlServer_UpdateViaIdentityExpanded : global ReadOnly = false, Description = @"The password of the administrator login.", SerializedName = @"administratorLoginPassword", - PossibleTypes = new [] { typeof(string) })] - public string AdministratorLoginPassword { get => ParametersBody.AdministratorLoginPassword ?? null; set => ParametersBody.AdministratorLoginPassword = value; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + public System.Security.SecureString AdministratorLoginPassword { get => ParametersBody.AdministratorLoginPassword ?? null; set => ParametersBody.AdministratorLoginPassword = value; } /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] diff --git a/src/PostgreSql/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs b/src/PostgreSql/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs index ded840328c36..22742691dab5 100644 --- a/src/PostgreSql/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs +++ b/src/PostgreSql/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs @@ -12,114 +12,180 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.PowerShell { - [Cmdlet(VerbsData.Export, "Psd1")] - [DoNotExport] - public class ExportPsd1 : PSCmdlet - { - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string ExportsFolder { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string CustomFolder { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string Psd1Path { get; set; } - - [Parameter(Mandatory = true)] - public Guid ModuleGuid { get; set; } - - private static readonly bool IsAzure = Convert.ToBoolean(@"true"); - private const string CustomFolderRelative = "./custom"; - private const string Indent = Psd1Indent; - - protected override void ProcessRecord() + [Cmdlet(VerbsData.Export, "Psd1")] + [DoNotExport] + public class ExportPsd1 : PSCmdlet { - try - { - if (!Directory.Exists(ExportsFolder)) - { - throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); - } + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExportsFolder { get; set; } - if (!Directory.Exists(CustomFolder)) - { - throw new ArgumentException($"Custom folder '{CustomFolder}' does not exist"); - } + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string CustomFolder { get; set; } - string version = Convert.ToString(@"0.1.0"); - // Validate the module version should be semantic version - // Following regex is official from https://semver.org/ - Regex rx = new Regex(@"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$", RegexOptions.Compiled); - if (rx.Matches(version).Count != 1) - { - throw new ArgumentException("Module-version is not a valid Semantic Version"); - } + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string Psd1Path { get; set; } - string previewVersion = null; - if (version.Contains('-')) - { - string[] versions = version.Split("-".ToCharArray(), 2); - version = versions[0]; - previewVersion = versions[1]; - } + [Parameter(Mandatory = true)] + public Guid ModuleGuid { get; set; } - var sb = new StringBuilder(); - sb.AppendLine("@{"); - sb.AppendLine($@"{GuidStart} = '{ModuleGuid}'"); - sb.AppendLine($@"{Indent}RootModule = '{"./Az.PostgreSql.psm1"}'"); - sb.AppendLine($@"{Indent}ModuleVersion = '{version}'"); - sb.AppendLine($@"{Indent}CompatiblePSEditions = 'Core', 'Desktop'"); - sb.AppendLine($@"{Indent}Author = '{"Microsoft Corporation"}'"); - sb.AppendLine($@"{Indent}CompanyName = '{"Microsoft Corporation"}'"); - sb.AppendLine($@"{Indent}Copyright = '{"Microsoft Corporation. All rights reserved."}'"); - sb.AppendLine($@"{Indent}Description = '{"Microsoft Azure PowerShell: PostgreSql cmdlets"}'"); - sb.AppendLine($@"{Indent}PowerShellVersion = '5.1'"); - sb.AppendLine($@"{Indent}DotNetFrameworkVersion = '4.7.2'"); - sb.AppendLine($@"{Indent}RequiredAssemblies = '{"./bin/Az.PostgreSql.private.dll"}'"); - - var customFormatPs1xmlFiles = Directory.GetFiles(CustomFolder) - .Where(f => f.EndsWith(".format.ps1xml")) - .Select(f => $"{CustomFolderRelative}/{Path.GetFileName(f)}"); - var formatList = customFormatPs1xmlFiles.Prepend("./Az.PostgreSql.format.ps1xml").ToPsList(); - sb.AppendLine($@"{Indent}FormatsToProcess = {formatList}"); - - var functionInfos = GetScriptCmdlets(ExportsFolder).ToArray(); - var cmdletsList = functionInfos.Select(fi => fi.Name).Distinct().Append("*").ToPsList(); - sb.AppendLine($@"{Indent}FunctionsToExport = {cmdletsList}"); - var aliasesList = functionInfos.SelectMany(fi => fi.ScriptBlock.Attributes).ToAliasNames().Append("*").ToPsList(); - sb.AppendLine($@"{Indent}AliasesToExport = {aliasesList}"); - - sb.AppendLine($@"{Indent}PrivateData = @{{"); - sb.AppendLine($@"{Indent}{Indent}PSData = @{{"); - - if (previewVersion != null) - { - sb.AppendLine($@"{Indent}{Indent}{Indent}Prerelease = {previewVersion}"); - } - sb.AppendLine($@"{Indent}{Indent}{Indent}Tags = {"Azure ResourceManager ARM PSModule PostgreSql".Split(' ').ToPsList().NullIfEmpty() ?? "''"}"); - sb.AppendLine($@"{Indent}{Indent}{Indent}LicenseUri = '{"https://aka.ms/azps-license"}'"); - sb.AppendLine($@"{Indent}{Indent}{Indent}ProjectUri = '{"https://github.com/Azure/azure-powershell"}'"); - sb.AppendLine($@"{Indent}{Indent}{Indent}ReleaseNotes = ''"); - var profilesList = ""; - if (IsAzure && !String.IsNullOrEmpty(profilesList)) + private static readonly bool IsAzure = Convert.ToBoolean(@"true"); + private const string CustomFolderRelative = "./custom"; + private const string Indent = Psd1Indent; + private const string Undefined = "undefined"; + private bool IsUndefined(string value) => string.Equals(Undefined, value, StringComparison.OrdinalIgnoreCase); + + protected override void ProcessRecord() { - sb.AppendLine($@"{Indent}{Indent}{Indent}Profiles = {profilesList}"); + try + { + if (!Directory.Exists(ExportsFolder)) + { + throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); + } + + if (!Directory.Exists(CustomFolder)) + { + throw new ArgumentException($"Custom folder '{CustomFolder}' does not exist"); + } + + string version = Convert.ToString(@"0.1.0"); + // Validate the module version should be semantic version + // Following regex is official from https://semver.org/ + Regex rx = new Regex(@"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$", RegexOptions.Compiled); + if (rx.Matches(version).Count != 1) + { + throw new ArgumentException("Module-version is not a valid Semantic Version"); + } + + string previewVersion = null; + if (version.Contains('-')) + { + string[] versions = version.Split("-".ToCharArray(), 2); + version = versions[0]; + previewVersion = versions[1]; + } + + var sb = new StringBuilder(); + sb.AppendLine("@{"); + sb.AppendLine($@"{GuidStart} = '{ModuleGuid}'"); + sb.AppendLine($@"{Indent}RootModule = '{"./Az.PostgreSql.psm1"}'"); + sb.AppendLine($@"{Indent}ModuleVersion = '{version}'"); + sb.AppendLine($@"{Indent}CompatiblePSEditions = 'Core', 'Desktop'"); + sb.AppendLine($@"{Indent}Author = '{"Microsoft Corporation"}'"); + sb.AppendLine($@"{Indent}CompanyName = '{"Microsoft Corporation"}'"); + sb.AppendLine($@"{Indent}Copyright = '{"Microsoft Corporation. All rights reserved."}'"); + sb.AppendLine($@"{Indent}Description = '{"Microsoft Azure PowerShell: PostgreSql cmdlets"}'"); + sb.AppendLine($@"{Indent}PowerShellVersion = '5.1'"); + sb.AppendLine($@"{Indent}DotNetFrameworkVersion = '4.7.2'"); + + // RequiredModules + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}RequiredModules = @({"undefined"})"); + } + + // RequiredAssemblies + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}RequiredAssemblies = @({"undefined"})"); + } + else + { + sb.AppendLine($@"{Indent}RequiredAssemblies = '{"./bin/Az.PostgreSql.private.dll"}'"); + } + + // NestedModules + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}NestedModules = @({"undefined"})"); + } + + // FormatsToProcess + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}FormatsToProcess = @({"undefined"})"); + } + else + { + var customFormatPs1xmlFiles = Directory.GetFiles(CustomFolder) + .Where(f => f.EndsWith(".format.ps1xml")) + .Select(f => $"{CustomFolderRelative}/{Path.GetFileName(f)}"); + var formatList = customFormatPs1xmlFiles.Prepend("./Az.PostgreSql.format.ps1xml").ToPsList(); + sb.AppendLine($@"{Indent}FormatsToProcess = {formatList}"); + } + + // TypesToProcess + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}TypesToProcess = @({"undefined"})"); + } + + // ScriptsToProcess + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}ScriptsToProcess = @({"undefined"})"); + } + + var functionInfos = GetScriptCmdlets(ExportsFolder).ToArray(); + // FunctionsToExport + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}FunctionsToExport = @({"undefined"})"); + } + else + { + var cmdletsList = functionInfos.Select(fi => fi.Name).Distinct().Append("*").ToPsList(); + sb.AppendLine($@"{Indent}FunctionsToExport = {cmdletsList}"); + } + + // AliasesToExport + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}AliasesToExport = @({"undefined"})"); + } + else + { + var aliasesList = functionInfos.SelectMany(fi => fi.ScriptBlock.Attributes).ToAliasNames().Append("*").ToPsList(); + sb.AppendLine($@"{Indent}AliasesToExport = {aliasesList}"); + } + + // CmdletsToExport + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}CmdletsToExport = @({"undefined"})"); + } + + sb.AppendLine($@"{Indent}PrivateData = @{{"); + sb.AppendLine($@"{Indent}{Indent}PSData = @{{"); + + if (previewVersion != null) + { + sb.AppendLine($@"{Indent}{Indent}{Indent}Prerelease = {previewVersion}"); + } + sb.AppendLine($@"{Indent}{Indent}{Indent}Tags = {"Azure ResourceManager ARM PSModule PostgreSql".Split(' ').ToPsList().NullIfEmpty() ?? "''"}"); + sb.AppendLine($@"{Indent}{Indent}{Indent}LicenseUri = '{"https://aka.ms/azps-license"}'"); + sb.AppendLine($@"{Indent}{Indent}{Indent}ProjectUri = '{"https://github.com/Azure/azure-powershell"}'"); + sb.AppendLine($@"{Indent}{Indent}{Indent}ReleaseNotes = ''"); + var profilesList = ""; + if (IsAzure && !String.IsNullOrEmpty(profilesList)) + { + sb.AppendLine($@"{Indent}{Indent}{Indent}Profiles = {profilesList}"); + } + + sb.AppendLine($@"{Indent}{Indent}}}"); + sb.AppendLine($@"{Indent}}}"); + sb.AppendLine(@"}"); + + File.WriteAllText(Psd1Path, sb.ToString()); + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } } - - sb.AppendLine($@"{Indent}{Indent}}}"); - sb.AppendLine($@"{Indent}}}"); - sb.AppendLine(@"}"); - - File.WriteAllText(Psd1Path, sb.ToString()); - } - catch (Exception ee) - { - Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); - throw ee; - } } - } } diff --git a/src/PostgreSql/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs b/src/PostgreSql/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs index dbe7d1f5b9f3..12a7eb3c8f0f 100644 --- a/src/PostgreSql/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs +++ b/src/PostgreSql/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs @@ -113,7 +113,7 @@ internal class ModulePageMetadataOutput { public PsModuleHelpInfo ModuleInfo { get; } - private static string HelpLinkPrefix { get; } = @"https://docs.microsoft.com/en-us/powershell/module/"; + private static string HelpLinkPrefix { get; } = @"https://docs.microsoft.com/powershell/module/"; public ModulePageMetadataOutput(PsModuleHelpInfo moduleInfo) { diff --git a/src/PostgreSql/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/src/PostgreSql/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 290c4cd08493..5a3690bd0f84 100644 --- a/src/PostgreSql/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/src/PostgreSql/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -363,7 +363,7 @@ internal class CommentInfo public string OnlineVersion { get; } public string[] RelatedLinks { get; } - private const string HelpLinkPrefix = @"https://docs.microsoft.com/en-us/powershell/module/"; + private const string HelpLinkPrefix = @"https://docs.microsoft.com/powershell/module/"; public CommentInfo(VariantGroup variantGroup) { diff --git a/src/PostgreSql/generated/runtime/PipelineMocking.cs b/src/PostgreSql/generated/runtime/PipelineMocking.cs index 6b51e5e9b3e4..87f823fdc144 100644 --- a/src/PostgreSql/generated/runtime/PipelineMocking.cs +++ b/src/PostgreSql/generated/runtime/PipelineMocking.cs @@ -81,9 +81,9 @@ public void PushScenario(string it) internal static IEnumerable> FilterHeaders(IEnumerable>> headers) => headers.Select(header => new KeyValuePair(header.Key, Blacklist.Contains(header.Key) ? Removed : new XImmutableArray(header.Value.ToArray()))); - internal static JsonNode SerializeContent(HttpContent content) => content == null ? XNull.Instance : SerializeContent(content.ReadAsByteArrayAsync().Result); + internal static JsonNode SerializeContent(HttpContent content, ref bool isBase64) => content == null ? XNull.Instance : SerializeContent(content.ReadAsByteArrayAsync().Result, ref isBase64); - internal static JsonNode SerializeContent(byte[] content) + internal static JsonNode SerializeContent(byte[] content, ref bool isBase64) { if (null == content || content.Length == 0) { @@ -102,14 +102,14 @@ internal static JsonNode SerializeContent(byte[] content) return new JsonString(System.Convert.ToBase64String(content)); } - internal static byte[] DeserializeContent(string content) + internal static byte[] DeserializeContent(string content, bool isBase64) { if (string.IsNullOrWhiteSpace(content)) { return new byte[0]; } - if (content.EndsWith("==")) + if (isBase64) { try { @@ -126,11 +126,14 @@ internal static byte[] DeserializeContent(string content) public void SaveMessage(string rqKey, HttpRequestMessage request, HttpResponseMessage response) { var messages = System.IO.File.Exists(this.recordingPath) ? Load() : new JsonObject() ?? new JsonObject(); + bool isBase64Request = false; + bool isBase64Response = false; messages[rqKey] = new JsonObject { { "Request",new JsonObject { { "Method", request.Method.Method }, { "RequestUri", request.RequestUri }, - { "Content", SerializeContent( request.Content) }, + { "Content", SerializeContent( request.Content, ref isBase64Request) }, + { "isContentBase64", isBase64Request }, { "Headers", new JsonObject(FilterHeaders(request.Headers)) }, { "ContentHeaders", request.Content == null ? new JsonObject() : new JsonObject(FilterHeaders(request.Content.Headers))} } }, @@ -138,7 +141,8 @@ public void SaveMessage(string rqKey, HttpRequestMessage request, HttpResponseMe { "StatusCode", (int)response.StatusCode}, { "Headers", new JsonObject(FilterHeaders(response.Headers))}, { "ContentHeaders", new JsonObject(FilterHeaders(response.Content.Headers))}, - { "Content", SerializeContent(response.Content) }, + { "Content", SerializeContent(response.Content, ref isBase64Response) }, + { "isContentBase64", isBase64Response }, }} }; System.IO.File.WriteAllText(this.recordingPath, messages.ToString()); @@ -176,10 +180,12 @@ public HttpResponseMessage LoadMessage(string rqKey) var respMessage = message.Property("Response"); // --------------------------- deserialize response ---------------------------------------------------------------- + bool isBase64Response = false; + respMessage.BooleanProperty("isContentBase64", ref isBase64Response); var response = new HttpResponseMessage { StatusCode = (HttpStatusCode)respMessage.NumberProperty("StatusCode", ref sc), - Content = new System.Net.Http.ByteArrayContent(DeserializeContent(respMessage.StringProperty("Content"))) + Content = new System.Net.Http.ByteArrayContent(DeserializeContent(respMessage.StringProperty("Content"), isBase64Response)) }; foreach (var each in respMessage.Property("Headers")) @@ -199,11 +205,13 @@ public HttpResponseMessage LoadMessage(string rqKey) } // --------------------------- deserialize request ---------------------------------------------------------------- + bool isBase64Request = false; + reqMessage.BooleanProperty("isContentBase64", ref isBase64Request); response.RequestMessage = new HttpRequestMessage { Method = new HttpMethod(reqMessage.StringProperty("Method")), RequestUri = new System.Uri(reqMessage.StringProperty("RequestUri")), - Content = new System.Net.Http.ByteArrayContent(DeserializeContent(reqMessage.StringProperty("Content"))) + Content = new System.Net.Http.ByteArrayContent(DeserializeContent(reqMessage.StringProperty("Content"), isBase64Request)) }; foreach (var each in reqMessage.Property("Headers")) diff --git a/src/PostgreSql/help/Get-AzPostgreSqlFlexibleServerConnectionString.md b/src/PostgreSql/help/Get-AzPostgreSqlFlexibleServerConnectionString.md index 21270c9e9da2..6341d3f40745 100644 --- a/src/PostgreSql/help/Get-AzPostgreSqlFlexibleServerConnectionString.md +++ b/src/PostgreSql/help/Get-AzPostgreSqlFlexibleServerConnectionString.md @@ -165,7 +165,7 @@ INPUTOBJECT : The server for the connection string - `[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). + - `[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. diff --git a/src/PostgreSql/help/New-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/help/New-AzPostgreSqlFlexibleServer.md index f2696519d6f2..bf8596bdaa90 100644 --- a/src/PostgreSql/help/New-AzPostgreSqlFlexibleServer.md +++ b/src/PostgreSql/help/New-AzPostgreSqlFlexibleServer.md @@ -17,7 +17,7 @@ New-AzPostgreSqlFlexibleServer [-Name ] [-ResourceGroupName ] [- [-AdministratorLoginPassword ] [-AdministratorUserName ] [-BackupRetentionDay ] [-Location ] [-PublicAccess ] [-Sku ] [-SkuTier ] [-StorageInMb ] [-Subnet ] [-SubnetPrefix ] [-Tag ] [-Version ] [-Vnet ] - [-VnetPrefix ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [-VnetPrefix ] [-Zone ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -33,7 +33,7 @@ PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName Checking the existence of the resource group PowershellPostgreSqlTest ... Resource group PowershellPostgreSqlTest exists ? : True -Creating MySQL server postgresql-test in group PostgreSqlTest... +Creating PostgreSQL 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 @@ -50,8 +50,8 @@ 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... +Creating new subnet Subnetserver00000000 in resource group group00000000 and delegating it to Microsoft.DBforPostgreSQL/flexibleServers +Creating PostgreSQL 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 @@ -79,8 +79,8 @@ PS C:\> New-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlT 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... +Creating new subnet Subnetserver00000000 in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforPostgreSQL/flexibleServers +Creating PostgreSQL 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... @@ -99,8 +99,8 @@ PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName 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... +Creating new subnet postgresql-subnet in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforPostgreSQL/flexibleServers +Creating PostgreSQL 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... @@ -118,7 +118,7 @@ If the virtual network and subnet don't exist, the cmdlet creates one. PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName PowershellPostgreSqlTest -PublicAccess All Resource group PowershellPostgreSqlTest exists ? : True -Creating MySQL server postgresql-test in group PowershellPostgreSqlTest... +Creating PostgreSQL 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 @@ -135,7 +135,7 @@ This cmdlet creates PostgreSql flexible server open to all IP addresses. 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... +Creating PostgreSQL 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 @@ -471,6 +471,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Zone +Availability zone into which to provision the resource. + +```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. diff --git a/src/PostgreSql/help/Restore-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/help/Restore-AzPostgreSqlFlexibleServer.md index f7a4fb78a59e..4812e5efa72c 100644 --- a/src/PostgreSql/help/Restore-AzPostgreSqlFlexibleServer.md +++ b/src/PostgreSql/help/Restore-AzPostgreSqlFlexibleServer.md @@ -14,8 +14,8 @@ Restore a PostgreSQL flexible server from an existing backup ``` Restore-AzPostgreSqlFlexibleServer -Name -ResourceGroupName -SourceServerName - -Location -RestorePointInTime [-SubscriptionId ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + -Location -RestorePointInTime [-SubscriptionId ] [-Zone ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -172,6 +172,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Zone +Availability zone into which to provision the resource. + +```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. diff --git a/src/PostgreSql/help/Update-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/help/Update-AzPostgreSqlFlexibleServer.md index 7bdadac8841a..535ab465c9a4 100644 --- a/src/PostgreSql/help/Update-AzPostgreSqlFlexibleServer.md +++ b/src/PostgreSql/help/Update-AzPostgreSqlFlexibleServer.md @@ -18,18 +18,18 @@ Use Update-AzPostSqlFlexibleServerConfiguration instead if you want update serve ``` Update-AzPostgreSqlFlexibleServer -Name -ResourceGroupName [-SubscriptionId ] [-AdministratorLoginPassword ] [-BackupRetentionDay ] [-HaEnabled ] - [-ReplicationRole ] [-Sku ] [-SkuTier ] [-SslEnforcement ] - [-StorageAutogrow ] [-StorageInMb ] [-Tag ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-MaintenanceWindow ] [-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] [] + [-MaintenanceWindow ] [-ReplicationRole ] [-Sku ] [-SkuTier ] + [-SslEnforcement ] [-StorageAutogrow ] [-StorageInMb ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -155,6 +155,23 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -MaintenanceWindow +Period of time (UTC) designated for maintenance. +Examples: "Sun:23:30" to schedule on Sunday, 11:30pm UTC. +To set back to default pass in "Disabled" + +```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. @@ -217,8 +234,8 @@ Accept wildcard characters: False ``` ### -Sku -The name of the sku, typically, tier + family + cores, e.g. -B_Gen4_1, GP_Gen5_8. +The name of the sku, e.g. +Burstable_B1ms, Standard_D2ds_v4 ```yaml Type: System.String @@ -233,8 +250,9 @@ Accept wildcard characters: False ``` ### -SkuTier -The tier of the particular SKU, e.g. -Basic. +The tier of the particular SKU. +Accepted values: Burstable, GeneralPurpose, Memory Optimized. +Default: Burstable. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier diff --git a/src/PostgreSql/help/Update-AzPostgreSqlFlexibleServerConfiguration.md b/src/PostgreSql/help/Update-AzPostgreSqlFlexibleServerConfiguration.md index f6c731870a72..ab2d60482764 100644 --- a/src/PostgreSql/help/Update-AzPostgreSqlFlexibleServerConfiguration.md +++ b/src/PostgreSql/help/Update-AzPostgreSqlFlexibleServerConfiguration.md @@ -45,7 +45,7 @@ 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:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/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 diff --git a/src/PostgreSql/internal/Get-AzPostgreSqlDatabase.ps1 b/src/PostgreSql/internal/Get-AzPostgreSqlDatabase.ps1 index 170d59e4fe89..951a7aea6bde 100644 --- a/src/PostgreSql/internal/Get-AzPostgreSqlDatabase.ps1 +++ b/src/PostgreSql/internal/Get-AzPostgreSqlDatabase.ps1 @@ -48,7 +48,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqldatabase +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqldatabase #> function Get-AzPostgreSqlDatabase { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IDatabase])] diff --git a/src/PostgreSql/internal/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.ps1 b/src/PostgreSql/internal/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.ps1 index cd405f652b1d..3529145e310a 100644 --- a/src/PostgreSql/internal/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.ps1 +++ b/src/PostgreSql/internal/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.ps1 @@ -61,7 +61,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserverlocationbasedcapability +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserverlocationbasedcapability #> function Get-AzPostgreSqlFlexibleServerLocationBasedCapability { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ICapabilityProperties])] diff --git a/src/PostgreSql/internal/Get-AzPostgreSqlFlexibleServerVirtualNetworkSubnetUsage.ps1 b/src/PostgreSql/internal/Get-AzPostgreSqlFlexibleServerVirtualNetworkSubnetUsage.ps1 index 3813448d02c2..c8e273f991bd 100644 --- a/src/PostgreSql/internal/Get-AzPostgreSqlFlexibleServerVirtualNetworkSubnetUsage.ps1 +++ b/src/PostgreSql/internal/Get-AzPostgreSqlFlexibleServerVirtualNetworkSubnetUsage.ps1 @@ -53,7 +53,7 @@ INPUTOBJECT : Identity Parameter PARAMETER : Virtual network subnet usage parameter [VirtualNetworkArmResourceId ]: Virtual network resource id. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleservervirtualnetworksubnetusage +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleservervirtualnetworksubnetusage #> function Get-AzPostgreSqlFlexibleServerVirtualNetworkSubnetUsage { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IDelegatedSubnetUsage])] diff --git a/src/PostgreSql/internal/Get-AzPostgreSqlLocationBasedPerformanceTier.ps1 b/src/PostgreSql/internal/Get-AzPostgreSqlLocationBasedPerformanceTier.ps1 index 1b34b69ba214..8d4f527c18fd 100644 --- a/src/PostgreSql/internal/Get-AzPostgreSqlLocationBasedPerformanceTier.ps1 +++ b/src/PostgreSql/internal/Get-AzPostgreSqlLocationBasedPerformanceTier.ps1 @@ -30,7 +30,7 @@ PS C:\> {{ Add code here }} .Outputs Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IPerformanceTierProperties .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqllocationbasedperformancetier +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqllocationbasedperformancetier #> function Get-AzPostgreSqlLocationBasedPerformanceTier { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IPerformanceTierProperties])] diff --git a/src/PostgreSql/internal/Get-AzPostgreSqlLogFile.ps1 b/src/PostgreSql/internal/Get-AzPostgreSqlLogFile.ps1 index b5b1b67bd7f5..ba20b12c64f7 100644 --- a/src/PostgreSql/internal/Get-AzPostgreSqlLogFile.ps1 +++ b/src/PostgreSql/internal/Get-AzPostgreSqlLogFile.ps1 @@ -30,7 +30,7 @@ PS C:\> {{ Add code here }} .Outputs Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ILogFile .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqllogfile +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqllogfile #> function Get-AzPostgreSqlLogFile { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ILogFile])] diff --git a/src/PostgreSql/internal/Get-AzPostgreSqlOperation.ps1 b/src/PostgreSql/internal/Get-AzPostgreSqlOperation.ps1 index 6e03106f9af1..bdb9ea4f4b4e 100644 --- a/src/PostgreSql/internal/Get-AzPostgreSqlOperation.ps1 +++ b/src/PostgreSql/internal/Get-AzPostgreSqlOperation.ps1 @@ -32,7 +32,7 @@ Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IOperation .Outputs Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IOperationListResultAutoGenerated .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqloperation +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqloperation #> function Get-AzPostgreSqlOperation { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IOperation], [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IOperationListResultAutoGenerated])] diff --git a/src/PostgreSql/internal/Get-AzPostgreSqlServerAdministrator.ps1 b/src/PostgreSql/internal/Get-AzPostgreSqlServerAdministrator.ps1 index f37ae7424cd0..60c0a8dfab5c 100644 --- a/src/PostgreSql/internal/Get-AzPostgreSqlServerAdministrator.ps1 +++ b/src/PostgreSql/internal/Get-AzPostgreSqlServerAdministrator.ps1 @@ -48,7 +48,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlserveradministrator +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlserveradministrator #> function Get-AzPostgreSqlServerAdministrator { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerAdministratorResource])] diff --git a/src/PostgreSql/internal/Get-AzPostgreSqlServerSecurityAlertPolicy.ps1 b/src/PostgreSql/internal/Get-AzPostgreSqlServerSecurityAlertPolicy.ps1 index ab9fe447acc8..7ecf329e9b02 100644 --- a/src/PostgreSql/internal/Get-AzPostgreSqlServerSecurityAlertPolicy.ps1 +++ b/src/PostgreSql/internal/Get-AzPostgreSqlServerSecurityAlertPolicy.ps1 @@ -48,7 +48,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlserversecurityalertpolicy +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlserversecurityalertpolicy #> function Get-AzPostgreSqlServerSecurityAlertPolicy { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerSecurityAlertPolicy])] diff --git a/src/PostgreSql/internal/New-AzPostgreSqlConfiguration.ps1 b/src/PostgreSql/internal/New-AzPostgreSqlConfiguration.ps1 index e0f5492bae53..168e0d12f1f3 100644 --- a/src/PostgreSql/internal/New-AzPostgreSqlConfiguration.ps1 +++ b/src/PostgreSql/internal/New-AzPostgreSqlConfiguration.ps1 @@ -54,7 +54,7 @@ PARAMETER : Represents a Configuration. [Source ]: Source of the configuration. [Value ]: Value of the configuration. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlconfiguration +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlconfiguration #> function New-AzPostgreSqlConfiguration { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IConfiguration])] diff --git a/src/PostgreSql/internal/New-AzPostgreSqlDatabase.ps1 b/src/PostgreSql/internal/New-AzPostgreSqlDatabase.ps1 index 01d64d817fe9..5fd33a63c1ad 100644 --- a/src/PostgreSql/internal/New-AzPostgreSqlDatabase.ps1 +++ b/src/PostgreSql/internal/New-AzPostgreSqlDatabase.ps1 @@ -54,7 +54,7 @@ PARAMETER : Represents a Database. [Charset ]: The charset of the database. [Collation ]: The collation of the database. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqldatabase +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqldatabase #> function New-AzPostgreSqlDatabase { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IDatabase])] diff --git a/src/PostgreSql/internal/New-AzPostgreSqlFirewallRule.ps1 b/src/PostgreSql/internal/New-AzPostgreSqlFirewallRule.ps1 index 69cb9e263ce2..d90375adeeb1 100644 --- a/src/PostgreSql/internal/New-AzPostgreSqlFirewallRule.ps1 +++ b/src/PostgreSql/internal/New-AzPostgreSqlFirewallRule.ps1 @@ -64,7 +64,7 @@ PARAMETER : Represents a server firewall rule. EndIPAddress : The end IP address of the server firewall rule. Must be IPv4 format. StartIPAddress : The start IP address of the server firewall rule. Must be IPv4 format. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlfirewallrule +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlfirewallrule #> function New-AzPostgreSqlFirewallRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] diff --git a/src/PostgreSql/internal/New-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/internal/New-AzPostgreSqlFlexibleServer.ps1 index 1de0404909f1..eabde543d00b 100644 --- a/src/PostgreSql/internal/New-AzPostgreSqlFlexibleServer.ps1 +++ b/src/PostgreSql/internal/New-AzPostgreSqlFlexibleServer.ps1 @@ -24,7 +24,7 @@ PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName Checking the existence of the resource group PowershellPostgreSqlTest ... Resource group PowershellPostgreSqlTest exists ? : True -Creating MySQL server postgresql-test in group PostgreSqlTest... +Creating PostgreSQL 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 @@ -36,8 +36,8 @@ 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... +Creating new subnet Subnetserver00000000 in resource group group00000000 and delegating it to Microsoft.DBforPostgreSQL/flexibleServers +Creating PostgreSQL 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 @@ -55,8 +55,8 @@ PS C:\> New-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlT 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... +Creating new subnet Subnetserver00000000 in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforPostgreSQL/flexibleServers +Creating PostgreSQL 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... @@ -69,8 +69,8 @@ PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName 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... +Creating new subnet postgresql-subnet in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforPostgreSQL/flexibleServers +Creating PostgreSQL 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... @@ -82,7 +82,7 @@ postgresql-test eastus postgresqltest 12 131072 Stand PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName PowershellPostgreSqlTest -PublicAccess All Resource group PowershellPostgreSqlTest exists ? : True -Creating MySQL server postgresql-test in group PowershellPostgreSqlTest... +Creating PostgreSQL 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 @@ -94,7 +94,7 @@ postgresql-test eastus postgresqltest 12 131072 Stand 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... +Creating PostgreSQL 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 @@ -132,7 +132,7 @@ PARAMETER : Represents a server. [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). + [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. @@ -153,7 +153,7 @@ PARAMETER : Represents a server. [StorageProfileStorageMb ]: Max storage allowed for a server. [Version ]: PostgreSQL Server version. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlflexibleserver +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlflexibleserver #> function New-AzPostgreSqlFlexibleServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated])] @@ -217,7 +217,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [System.String] + [System.Security.SecureString] # The administrator login password (required for server creation). ${AdministratorLoginPassword}, diff --git a/src/PostgreSql/internal/New-AzPostgreSqlFlexibleServerFirewallRule.ps1 b/src/PostgreSql/internal/New-AzPostgreSqlFlexibleServerFirewallRule.ps1 index 442fb442356d..1cb7a53f749f 100644 --- a/src/PostgreSql/internal/New-AzPostgreSqlFlexibleServerFirewallRule.ps1 +++ b/src/PostgreSql/internal/New-AzPostgreSqlFlexibleServerFirewallRule.ps1 @@ -64,7 +64,7 @@ PARAMETER : Represents a server firewall rule. EndIPAddress : The end IP address of the server firewall rule. Must be IPv4 format. StartIPAddress : The start IP address of the server firewall rule. Must be IPv4 format. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlflexibleserverfirewallrule +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlflexibleserverfirewallrule #> function New-AzPostgreSqlFlexibleServerFirewallRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] diff --git a/src/PostgreSql/internal/New-AzPostgreSqlServer.ps1 b/src/PostgreSql/internal/New-AzPostgreSqlServer.ps1 index a00ca332378a..07a5a784532a 100644 --- a/src/PostgreSql/internal/New-AzPostgreSqlServer.ps1 +++ b/src/PostgreSql/internal/New-AzPostgreSqlServer.ps1 @@ -69,7 +69,7 @@ PARAMETER : Represents a server to be created. [(Any) ]: This indicates any property can be added to this object. [Version ]: Server version. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlserver +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlserver #> function New-AzPostgreSqlServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])] diff --git a/src/PostgreSql/internal/New-AzPostgreSqlServerAdministrator.ps1 b/src/PostgreSql/internal/New-AzPostgreSqlServerAdministrator.ps1 index 8a02f87e0d0e..f9307030d5f0 100644 --- a/src/PostgreSql/internal/New-AzPostgreSqlServerAdministrator.ps1 +++ b/src/PostgreSql/internal/New-AzPostgreSqlServerAdministrator.ps1 @@ -57,7 +57,7 @@ PROPERTY : Represents a and external administrator [Sid ]: The server administrator Sid (Secure ID). [TenantId ]: The server Active Directory Administrator tenant id. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlserveradministrator +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlserveradministrator #> function New-AzPostgreSqlServerAdministrator { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerAdministratorResource])] diff --git a/src/PostgreSql/internal/New-AzPostgreSqlServerSecurityAlertPolicy.ps1 b/src/PostgreSql/internal/New-AzPostgreSqlServerSecurityAlertPolicy.ps1 index ea5bfc68a8cc..428159fed101 100644 --- a/src/PostgreSql/internal/New-AzPostgreSqlServerSecurityAlertPolicy.ps1 +++ b/src/PostgreSql/internal/New-AzPostgreSqlServerSecurityAlertPolicy.ps1 @@ -59,7 +59,7 @@ PARAMETER : A server security alert policy. [StorageAccountAccessKey ]: Specifies the identifier key of the Threat Detection audit storage account. [StorageEndpoint ]: Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlserversecurityalertpolicy +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlserversecurityalertpolicy #> function New-AzPostgreSqlServerSecurityAlertPolicy { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerSecurityAlertPolicy])] diff --git a/src/PostgreSql/internal/New-AzPostgreSqlVirtualNetworkRule.ps1 b/src/PostgreSql/internal/New-AzPostgreSqlVirtualNetworkRule.ps1 index 6badcdf0e52a..307d3445be91 100644 --- a/src/PostgreSql/internal/New-AzPostgreSqlVirtualNetworkRule.ps1 +++ b/src/PostgreSql/internal/New-AzPostgreSqlVirtualNetworkRule.ps1 @@ -53,7 +53,7 @@ PARAMETER : A virtual network rule. VirtualNetworkSubnetId : The ARM resource id of the virtual network subnet. [IgnoreMissingVnetServiceEndpoint ]: Create firewall rule before the virtual network has vnet service endpoint enabled. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlvirtualnetworkrule +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlvirtualnetworkrule #> function New-AzPostgreSqlVirtualNetworkRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule])] diff --git a/src/PostgreSql/internal/ProxyCmdletDefinitions.ps1 b/src/PostgreSql/internal/ProxyCmdletDefinitions.ps1 index 3b0e004168cb..fdb4735b169d 100644 --- a/src/PostgreSql/internal/ProxyCmdletDefinitions.ps1 +++ b/src/PostgreSql/internal/ProxyCmdletDefinitions.ps1 @@ -48,7 +48,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqldatabase +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqldatabase #> function Get-AzPostgreSqlDatabase { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IDatabase])] @@ -242,7 +242,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserverlocationbasedcapability +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserverlocationbasedcapability #> function Get-AzPostgreSqlFlexibleServerLocationBasedCapability { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ICapabilityProperties])] @@ -410,7 +410,7 @@ INPUTOBJECT : Identity Parameter PARAMETER : Virtual network subnet usage parameter [VirtualNetworkArmResourceId ]: Virtual network resource id. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleservervirtualnetworksubnetusage +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleservervirtualnetworksubnetusage #> function Get-AzPostgreSqlFlexibleServerVirtualNetworkSubnetUsage { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IDelegatedSubnetUsage])] @@ -575,7 +575,7 @@ PS C:\> {{ Add code here }} .Outputs Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IPerformanceTierProperties .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqllocationbasedperformancetier +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqllocationbasedperformancetier #> function Get-AzPostgreSqlLocationBasedPerformanceTier { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IPerformanceTierProperties])] @@ -712,7 +712,7 @@ PS C:\> {{ Add code here }} .Outputs Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ILogFile .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqllogfile +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqllogfile #> function Get-AzPostgreSqlLogFile { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ILogFile])] @@ -858,7 +858,7 @@ Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IOperation .Outputs Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IOperationListResultAutoGenerated .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqloperation +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqloperation #> function Get-AzPostgreSqlOperation { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IOperation], [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IOperationListResultAutoGenerated])] @@ -998,7 +998,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlserveradministrator +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlserveradministrator #> function Get-AzPostgreSqlServerAdministrator { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerAdministratorResource])] @@ -1172,7 +1172,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlserversecurityalertpolicy +https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlserversecurityalertpolicy #> function Get-AzPostgreSqlServerSecurityAlertPolicy { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerSecurityAlertPolicy])] @@ -1354,7 +1354,7 @@ PARAMETER : Represents a Configuration. [Source ]: Source of the configuration. [Value ]: Value of the configuration. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlconfiguration +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlconfiguration #> function New-AzPostgreSqlConfiguration { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IConfiguration])] @@ -1578,7 +1578,7 @@ PARAMETER : Represents a Database. [Charset ]: The charset of the database. [Collation ]: The collation of the database. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqldatabase +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqldatabase #> function New-AzPostgreSqlDatabase { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IDatabase])] @@ -1812,7 +1812,7 @@ PARAMETER : Represents a server firewall rule. EndIPAddress : The end IP address of the server firewall rule. Must be IPv4 format. StartIPAddress : The start IP address of the server firewall rule. Must be IPv4 format. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlfirewallrule +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlfirewallrule #> function New-AzPostgreSqlFirewallRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] @@ -2048,7 +2048,7 @@ PARAMETER : Represents a server firewall rule. EndIPAddress : The end IP address of the server firewall rule. Must be IPv4 format. StartIPAddress : The start IP address of the server firewall rule. Must be IPv4 format. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlflexibleserverfirewallrule +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlflexibleserverfirewallrule #> function New-AzPostgreSqlFlexibleServerFirewallRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] @@ -2244,7 +2244,7 @@ PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName Checking the existence of the resource group PowershellPostgreSqlTest ... Resource group PowershellPostgreSqlTest exists ? : True -Creating MySQL server postgresql-test in group PostgreSqlTest... +Creating PostgreSQL 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 @@ -2256,8 +2256,8 @@ 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... +Creating new subnet Subnetserver00000000 in resource group group00000000 and delegating it to Microsoft.DBforPostgreSQL/flexibleServers +Creating PostgreSQL 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 @@ -2275,8 +2275,8 @@ PS C:\> New-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlT 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... +Creating new subnet Subnetserver00000000 in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforPostgreSQL/flexibleServers +Creating PostgreSQL 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... @@ -2289,8 +2289,8 @@ PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName 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... +Creating new subnet postgresql-subnet in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforPostgreSQL/flexibleServers +Creating PostgreSQL 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... @@ -2302,7 +2302,7 @@ postgresql-test eastus postgresqltest 12 131072 Stand PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName PowershellPostgreSqlTest -PublicAccess All Resource group PowershellPostgreSqlTest exists ? : True -Creating MySQL server postgresql-test in group PowershellPostgreSqlTest... +Creating PostgreSQL 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 @@ -2314,7 +2314,7 @@ postgresql-test eastus postgresqltest 12 131072 Stand 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... +Creating PostgreSQL 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 @@ -2352,7 +2352,7 @@ PARAMETER : Represents a server. [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). + [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. @@ -2373,7 +2373,7 @@ PARAMETER : Represents a server. [StorageProfileStorageMb ]: Max storage allowed for a server. [Version ]: PostgreSQL Server version. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlflexibleserver +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlflexibleserver #> function New-AzPostgreSqlFlexibleServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated])] @@ -2437,7 +2437,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [System.String] + [System.Security.SecureString] # The administrator login password (required for server creation). ${AdministratorLoginPassword}, @@ -2743,7 +2743,7 @@ PROPERTY : Represents a and external administrator [Sid ]: The server administrator Sid (Secure ID). [TenantId ]: The server Active Directory Administrator tenant id. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlserveradministrator +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlserveradministrator #> function New-AzPostgreSqlServerAdministrator { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerAdministratorResource])] @@ -2971,7 +2971,7 @@ PARAMETER : A server security alert policy. [StorageAccountAccessKey ]: Specifies the identifier key of the Threat Detection audit storage account. [StorageEndpoint ]: Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlserversecurityalertpolicy +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlserversecurityalertpolicy #> function New-AzPostgreSqlServerSecurityAlertPolicy { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerSecurityAlertPolicy])] @@ -3247,7 +3247,7 @@ PARAMETER : Represents a server to be created. [(Any) ]: This indicates any property can be added to this object. [Version ]: Server version. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlserver +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlserver #> function New-AzPostgreSqlServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])] @@ -3591,7 +3591,7 @@ PARAMETER : A virtual network rule. VirtualNetworkSubnetId : The ARM resource id of the virtual network subnet. [IgnoreMissingVnetServiceEndpoint ]: Create firewall rule before the virtual network has vnet service endpoint enabled. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlvirtualnetworkrule +https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlvirtualnetworkrule #> function New-AzPostgreSqlVirtualNetworkRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule])] @@ -3808,7 +3808,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqldatabase +https://docs.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqldatabase #> function Remove-AzPostgreSqlDatabase { [OutputType([System.Boolean])] @@ -4003,7 +4003,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqlserveradministrator +https://docs.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlserveradministrator #> function Remove-AzPostgreSqlServerAdministrator { [OutputType([System.Boolean])] @@ -4183,7 +4183,7 @@ PARAMETER : Represents a Database. [Charset ]: The charset of the database. [Collation ]: The collation of the database. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/set-azpostgresqldatabase +https://docs.microsoft.com/powershell/module/az.postgresql/set-azpostgresqldatabase #> function Set-AzPostgreSqlDatabase { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IDatabase])] @@ -4379,7 +4379,7 @@ PROPERTY : Represents a and external administrator [Sid ]: The server administrator Sid (Secure ID). [TenantId ]: The server Active Directory Administrator tenant id. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/set-azpostgresqlserveradministrator +https://docs.microsoft.com/powershell/module/az.postgresql/set-azpostgresqlserveradministrator #> function Set-AzPostgreSqlServerAdministrator { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerAdministratorResource])] @@ -4576,7 +4576,7 @@ PARAMETER : A server security alert policy. [StorageAccountAccessKey ]: Specifies the identifier key of the Threat Detection audit storage account. [StorageEndpoint ]: Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/set-azpostgresqlserversecurityalertpolicy +https://docs.microsoft.com/powershell/module/az.postgresql/set-azpostgresqlserversecurityalertpolicy #> function Set-AzPostgreSqlServerSecurityAlertPolicy { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerSecurityAlertPolicy])] @@ -4818,7 +4818,7 @@ NAMEAVAILABILITYREQUEST : Request from client to check Name : Resource name to verify. [Type ]: Resource type used for verification. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/test-azpostgresqlnameavailability +https://docs.microsoft.com/powershell/module/az.postgresql/test-azpostgresqlnameavailability #> function Test-AzPostgreSqlNameAvailability { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.INameAvailability], [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.INameAvailabilityAutoGenerated])] @@ -5026,7 +5026,7 @@ PARAMETER : Represents a Configuration. [Source ]: Source of the configuration. [Value ]: Value of the configuration. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlconfiguration +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlconfiguration #> function Update-AzPostgreSqlConfiguration { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IConfiguration])] @@ -5262,7 +5262,7 @@ PARAMETER : Represents a server firewall rule. EndIPAddress : The end IP address of the server firewall rule. Must be IPv4 format. StartIPAddress : The start IP address of the server firewall rule. Must be IPv4 format. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlfirewallrule +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlfirewallrule #> function Update-AzPostgreSqlFirewallRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] @@ -5459,7 +5459,7 @@ Name Value DefaultValue Source AllowedValues DataType ---- ------ ------------ ------- ------------- --------- work_mem 8192 4096 system-default 4096-2097151 Integer .Example -PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test/configurations/work_mem" +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/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 @@ -5493,7 +5493,7 @@ PARAMETER : Represents a Configuration. [Source ]: Source of the configuration. [Value ]: Value of the configuration. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlflexibleserverconfiguration +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlflexibleserverconfiguration #> function Update-AzPostgreSqlFlexibleServerConfiguration { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IConfigurationAutoGenerated])] @@ -5722,7 +5722,7 @@ PARAMETER : Represents a server firewall rule. EndIPAddress : The end IP address of the server firewall rule. Must be IPv4 format. StartIPAddress : The start IP address of the server firewall rule. Must be IPv4 format. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlflexibleserverfirewallrule +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlflexibleserverfirewallrule #> function Update-AzPostgreSqlFlexibleServerFirewallRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] @@ -5951,7 +5951,7 @@ INPUTOBJECT : Identity Parameter [VirtualNetworkRuleName ]: The name of the virtual network rule. PARAMETER : Represents a server to be updated. - [AdministratorLoginPassword ]: The password of the administrator login. + [AdministratorLoginPassword ]: The password of the administrator login. [HaEnabled ]: stand by count value can be either enabled or disabled [Location ]: The location the resource resides in. [MaintenanceWindowCustomWindow ]: indicates whether custom window is enabled or disabled @@ -5965,7 +5965,7 @@ PARAMETER : Represents a server to be updated. [Tag ]: Application-specific metadata in the form of key-value pairs. [(Any) ]: This indicates any property can be added to this object. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlflexibleserver +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlflexibleserver #> function Update-AzPostgreSqlFlexibleServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated])] @@ -6014,7 +6014,7 @@ param( [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [System.String] + [System.Security.SecureString] # The password of the administrator login. ${AdministratorLoginPassword}, @@ -6260,7 +6260,7 @@ INPUTOBJECT : Identity Parameter [VirtualNetworkRuleName ]: The name of the virtual network rule. PARAMETER : Parameters allowed to update for a server. - [AdministratorLoginPassword ]: The password of the administrator login. + [AdministratorLoginPassword ]: The password of the administrator login. [IdentityType ]: The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. [MinimalTlsVersion ]: Enforce a minimal Tls version for the server. [PublicNetworkAccess ]: Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' @@ -6279,7 +6279,7 @@ PARAMETER : Parameters allowed to update for a server. [(Any) ]: This indicates any property can be added to this object. [Version ]: The version of a server. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlserver +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlserver #> function Update-AzPostgreSqlServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])] @@ -6328,7 +6328,7 @@ param( [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [System.String] + [System.Security.SecureString] # The password of the administrator login. ${AdministratorLoginPassword}, @@ -6622,7 +6622,7 @@ PARAMETER : A virtual network rule. VirtualNetworkSubnetId : The ARM resource id of the virtual network subnet. [IgnoreMissingVnetServiceEndpoint ]: Create firewall rule before the virtual network has vnet service endpoint enabled. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlvirtualnetworkrule +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlvirtualnetworkrule #> function Update-AzPostgreSqlVirtualNetworkRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule])] diff --git a/src/PostgreSql/internal/Remove-AzPostgreSqlDatabase.ps1 b/src/PostgreSql/internal/Remove-AzPostgreSqlDatabase.ps1 index 6b6bd8d2ce3e..97c76dc3337b 100644 --- a/src/PostgreSql/internal/Remove-AzPostgreSqlDatabase.ps1 +++ b/src/PostgreSql/internal/Remove-AzPostgreSqlDatabase.ps1 @@ -48,7 +48,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqldatabase +https://docs.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqldatabase #> function Remove-AzPostgreSqlDatabase { [OutputType([System.Boolean])] diff --git a/src/PostgreSql/internal/Remove-AzPostgreSqlServerAdministrator.ps1 b/src/PostgreSql/internal/Remove-AzPostgreSqlServerAdministrator.ps1 index 0c717b8f036f..4dbf953da3a6 100644 --- a/src/PostgreSql/internal/Remove-AzPostgreSqlServerAdministrator.ps1 +++ b/src/PostgreSql/internal/Remove-AzPostgreSqlServerAdministrator.ps1 @@ -48,7 +48,7 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqlserveradministrator +https://docs.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlserveradministrator #> function Remove-AzPostgreSqlServerAdministrator { [OutputType([System.Boolean])] diff --git a/src/PostgreSql/internal/Set-AzPostgreSqlDatabase.ps1 b/src/PostgreSql/internal/Set-AzPostgreSqlDatabase.ps1 index 8bd5d412b3c7..166d484836d1 100644 --- a/src/PostgreSql/internal/Set-AzPostgreSqlDatabase.ps1 +++ b/src/PostgreSql/internal/Set-AzPostgreSqlDatabase.ps1 @@ -40,7 +40,7 @@ PARAMETER : Represents a Database. [Charset ]: The charset of the database. [Collation ]: The collation of the database. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/set-azpostgresqldatabase +https://docs.microsoft.com/powershell/module/az.postgresql/set-azpostgresqldatabase #> function Set-AzPostgreSqlDatabase { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IDatabase])] diff --git a/src/PostgreSql/internal/Set-AzPostgreSqlServerAdministrator.ps1 b/src/PostgreSql/internal/Set-AzPostgreSqlServerAdministrator.ps1 index e1612b646067..4ca8dfd04b21 100644 --- a/src/PostgreSql/internal/Set-AzPostgreSqlServerAdministrator.ps1 +++ b/src/PostgreSql/internal/Set-AzPostgreSqlServerAdministrator.ps1 @@ -43,7 +43,7 @@ PROPERTY : Represents a and external administrator [Sid ]: The server administrator Sid (Secure ID). [TenantId ]: The server Active Directory Administrator tenant id. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/set-azpostgresqlserveradministrator +https://docs.microsoft.com/powershell/module/az.postgresql/set-azpostgresqlserveradministrator #> function Set-AzPostgreSqlServerAdministrator { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerAdministratorResource])] diff --git a/src/PostgreSql/internal/Set-AzPostgreSqlServerSecurityAlertPolicy.ps1 b/src/PostgreSql/internal/Set-AzPostgreSqlServerSecurityAlertPolicy.ps1 index 644a18dfc929..04d52d2e55d4 100644 --- a/src/PostgreSql/internal/Set-AzPostgreSqlServerSecurityAlertPolicy.ps1 +++ b/src/PostgreSql/internal/Set-AzPostgreSqlServerSecurityAlertPolicy.ps1 @@ -45,7 +45,7 @@ PARAMETER : A server security alert policy. [StorageAccountAccessKey ]: Specifies the identifier key of the Threat Detection audit storage account. [StorageEndpoint ]: Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/set-azpostgresqlserversecurityalertpolicy +https://docs.microsoft.com/powershell/module/az.postgresql/set-azpostgresqlserversecurityalertpolicy #> function Set-AzPostgreSqlServerSecurityAlertPolicy { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerSecurityAlertPolicy])] diff --git a/src/PostgreSql/internal/Test-AzPostgreSqlNameAvailability.ps1 b/src/PostgreSql/internal/Test-AzPostgreSqlNameAvailability.ps1 index b525a2c47086..e48c7d58df38 100644 --- a/src/PostgreSql/internal/Test-AzPostgreSqlNameAvailability.ps1 +++ b/src/PostgreSql/internal/Test-AzPostgreSqlNameAvailability.ps1 @@ -56,7 +56,7 @@ NAMEAVAILABILITYREQUEST : Request from client to check Name : Resource name to verify. [Type ]: Resource type used for verification. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/test-azpostgresqlnameavailability +https://docs.microsoft.com/powershell/module/az.postgresql/test-azpostgresqlnameavailability #> function Test-AzPostgreSqlNameAvailability { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.INameAvailability], [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.INameAvailabilityAutoGenerated])] diff --git a/src/PostgreSql/internal/Update-AzPostgreSqlConfiguration.ps1 b/src/PostgreSql/internal/Update-AzPostgreSqlConfiguration.ps1 index 47a42183d29e..c51e51760382 100644 --- a/src/PostgreSql/internal/Update-AzPostgreSqlConfiguration.ps1 +++ b/src/PostgreSql/internal/Update-AzPostgreSqlConfiguration.ps1 @@ -59,7 +59,7 @@ PARAMETER : Represents a Configuration. [Source ]: Source of the configuration. [Value ]: Value of the configuration. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlconfiguration +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlconfiguration #> function Update-AzPostgreSqlConfiguration { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IConfiguration])] diff --git a/src/PostgreSql/internal/Update-AzPostgreSqlFirewallRule.ps1 b/src/PostgreSql/internal/Update-AzPostgreSqlFirewallRule.ps1 index c4cc81f93565..079b750b20f5 100644 --- a/src/PostgreSql/internal/Update-AzPostgreSqlFirewallRule.ps1 +++ b/src/PostgreSql/internal/Update-AzPostgreSqlFirewallRule.ps1 @@ -66,7 +66,7 @@ PARAMETER : Represents a server firewall rule. EndIPAddress : The end IP address of the server firewall rule. Must be IPv4 format. StartIPAddress : The start IP address of the server firewall rule. Must be IPv4 format. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlfirewallrule +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlfirewallrule #> function Update-AzPostgreSqlFirewallRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] diff --git a/src/PostgreSql/internal/Update-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/internal/Update-AzPostgreSqlFlexibleServer.ps1 index 10566d7d693f..25ad7f588c6f 100644 --- a/src/PostgreSql/internal/Update-AzPostgreSqlFlexibleServer.ps1 +++ b/src/PostgreSql/internal/Update-AzPostgreSqlFlexibleServer.ps1 @@ -57,7 +57,7 @@ INPUTOBJECT : Identity Parameter [VirtualNetworkRuleName ]: The name of the virtual network rule. PARAMETER : Represents a server to be updated. - [AdministratorLoginPassword ]: The password of the administrator login. + [AdministratorLoginPassword ]: The password of the administrator login. [HaEnabled ]: stand by count value can be either enabled or disabled [Location ]: The location the resource resides in. [MaintenanceWindowCustomWindow ]: indicates whether custom window is enabled or disabled @@ -71,7 +71,7 @@ PARAMETER : Represents a server to be updated. [Tag ]: Application-specific metadata in the form of key-value pairs. [(Any) ]: This indicates any property can be added to this object. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlflexibleserver +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlflexibleserver #> function Update-AzPostgreSqlFlexibleServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated])] @@ -120,7 +120,7 @@ param( [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [System.String] + [System.Security.SecureString] # The password of the administrator login. ${AdministratorLoginPassword}, diff --git a/src/PostgreSql/internal/Update-AzPostgreSqlFlexibleServerConfiguration.ps1 b/src/PostgreSql/internal/Update-AzPostgreSqlFlexibleServerConfiguration.ps1 index 5935b24f7346..c9bd8e26eea0 100644 --- a/src/PostgreSql/internal/Update-AzPostgreSqlFlexibleServerConfiguration.ps1 +++ b/src/PostgreSql/internal/Update-AzPostgreSqlFlexibleServerConfiguration.ps1 @@ -25,7 +25,7 @@ Name Value DefaultValue Source AllowedValues DataType ---- ------ ------------ ------- ------------- --------- work_mem 8192 4096 system-default 4096-2097151 Integer .Example -PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test/configurations/work_mem" +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/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 @@ -59,7 +59,7 @@ PARAMETER : Represents a Configuration. [Source ]: Source of the configuration. [Value ]: Value of the configuration. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlflexibleserverconfiguration +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlflexibleserverconfiguration #> function Update-AzPostgreSqlFlexibleServerConfiguration { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IConfigurationAutoGenerated])] diff --git a/src/PostgreSql/internal/Update-AzPostgreSqlFlexibleServerFirewallRule.ps1 b/src/PostgreSql/internal/Update-AzPostgreSqlFlexibleServerFirewallRule.ps1 index 125608a12a28..b3bac653a68a 100644 --- a/src/PostgreSql/internal/Update-AzPostgreSqlFlexibleServerFirewallRule.ps1 +++ b/src/PostgreSql/internal/Update-AzPostgreSqlFlexibleServerFirewallRule.ps1 @@ -59,7 +59,7 @@ PARAMETER : Represents a server firewall rule. EndIPAddress : The end IP address of the server firewall rule. Must be IPv4 format. StartIPAddress : The start IP address of the server firewall rule. Must be IPv4 format. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlflexibleserverfirewallrule +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlflexibleserverfirewallrule #> function Update-AzPostgreSqlFlexibleServerFirewallRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] diff --git a/src/PostgreSql/internal/Update-AzPostgreSqlServer.ps1 b/src/PostgreSql/internal/Update-AzPostgreSqlServer.ps1 index 90c120edf72a..ebfc7cc70ee8 100644 --- a/src/PostgreSql/internal/Update-AzPostgreSqlServer.ps1 +++ b/src/PostgreSql/internal/Update-AzPostgreSqlServer.ps1 @@ -57,7 +57,7 @@ INPUTOBJECT : Identity Parameter [VirtualNetworkRuleName ]: The name of the virtual network rule. PARAMETER : Parameters allowed to update for a server. - [AdministratorLoginPassword ]: The password of the administrator login. + [AdministratorLoginPassword ]: The password of the administrator login. [IdentityType ]: The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. [MinimalTlsVersion ]: Enforce a minimal Tls version for the server. [PublicNetworkAccess ]: Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' @@ -76,7 +76,7 @@ PARAMETER : Parameters allowed to update for a server. [(Any) ]: This indicates any property can be added to this object. [Version ]: The version of a server. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlserver +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlserver #> function Update-AzPostgreSqlServer { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])] @@ -125,7 +125,7 @@ param( [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [System.String] + [System.Security.SecureString] # The password of the administrator login. ${AdministratorLoginPassword}, diff --git a/src/PostgreSql/internal/Update-AzPostgreSqlVirtualNetworkRule.ps1 b/src/PostgreSql/internal/Update-AzPostgreSqlVirtualNetworkRule.ps1 index 59708248fbb7..4dc01c18e88a 100644 --- a/src/PostgreSql/internal/Update-AzPostgreSqlVirtualNetworkRule.ps1 +++ b/src/PostgreSql/internal/Update-AzPostgreSqlVirtualNetworkRule.ps1 @@ -61,7 +61,7 @@ PARAMETER : A virtual network rule. VirtualNetworkSubnetId : The ARM resource id of the virtual network subnet. [IgnoreMissingVnetServiceEndpoint ]: Create firewall rule before the virtual network has vnet service endpoint enabled. .Link -https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlvirtualnetworkrule +https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlvirtualnetworkrule #> function Update-AzPostgreSqlVirtualNetworkRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule])] diff --git a/src/PostgreSql/readme.md b/src/PostgreSql/readme.md index c9f118522cf7..f4858a45c6f8 100644 --- a/src/PostgreSql/readme.md +++ b/src/PostgreSql/readme.md @@ -59,6 +59,9 @@ title: PostgreSQL subject-prefix: 'PostgreSQL' directive: + - from: Microsoft.DBforPostgreSQL/preview/2020-02-14-preview/postgresql.json + where: $ + transform: return $.replace(/\/subscriptions\/\{subscriptionId\}\/resourceGroups\/\{resourceGroupName\}\/providers\/Microsoft\.DBForPostgreSql\/flexibleServers\/\{serverName\}/g, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}") - from: swagger-document where: $.paths..operationId transform: return $.replace(/^CheckNameAvailability_Execute$/g, "NameAvailability_Test") @@ -77,7 +80,7 @@ directive: - 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 + - from: Microsoft.DBforPostgreSQL/preview/2020-02-14-preview/postgresql.json where: verb: Restore$ subject: ^FlexibleServer$ diff --git a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServer.Recording.json b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServer.Recording.json index 94aea83cef93..86543f9f6938 100644 --- a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServer.Recording.json +++ b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServer.Recording.json @@ -2,7 +2,7 @@ "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", + "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" ], @@ -38,10 +38,10 @@ "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": { + "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", + "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" ], @@ -80,7 +80,7 @@ "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", + "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" ], @@ -116,10 +116,10 @@ "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": { + "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", + "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" ], diff --git a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServer.Tests.ps1 b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServer.Tests.ps1 index f506bb908a4a..44c442dfd1d8 100644 --- a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServer.Tests.ps1 +++ b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServer.Tests.ps1 @@ -35,7 +35,7 @@ Describe 'Get-AzPostgreSqlFlexibleServer' { It 'GetViaIdentity' { { - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForPostgreSql/flexibleServers/$($env.flexibleServerName)" + $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 index ebc379bb9cf6..c4c8b45a0151 100644 --- a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConfiguration.Recording.json +++ b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConfiguration.Recording.json @@ -1,8 +1,8 @@ { - "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": { + "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", + "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" ], @@ -38,10 +38,10 @@ "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": { + "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", + "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" ], @@ -77,10 +77,10 @@ "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": { + "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", + "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" ], diff --git a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConfiguration.Tests.ps1 b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConfiguration.Tests.ps1 index f2b905838d0c..626bc5c0c2c9 100644 --- a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConfiguration.Tests.ps1 +++ b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConfiguration.Tests.ps1 @@ -28,7 +28,7 @@ Describe 'Get-AzPostgreSqlFlexibleServerConfiguration' { It 'GetViaIdentity' { { - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForPostgreSql/flexibleServers/$($env.flexibleServerName)/configurations/TimeZone" + $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-AzPostgreSqlFlexibleServerConnect.Recording.json b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConnect.Recording.json new file mode 100644 index 000000000000..663c4265ec38 --- /dev/null +++ b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConnect.Recording.json @@ -0,0 +1,158 @@ +{ + "Get-AzPostgreSqlFlexibleServerConnect+[NoContext]+Get+$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+1": { + "Request": { + "Method": "GET", + "RequestUri": "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", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "c55a3d72-7023-4d46-9e73-7e55b6f06b75" ], + "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": [ "cd2f8c96-e561-473b-9ad5-403dc6b6b526" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "87c26f29-35ca-493f-9f99-e31e88b192fe" ], + "x-ms-routing-request-id": [ "WESTUS2:20210113T230507Z:87c26f29-35ca-493f-9f99-e31e88b192fe" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 13 Jan 2021 23:05:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "885" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-test-100.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\":\"2021-01-13T23:05:07.58235+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US 2 EUAP\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "Get-AzPostgreSqlFlexibleServerConnect+[NoContext]+GetViaIdentity+$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+1": { + "Request": { + "Method": "GET", + "RequestUri": "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", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "b7c10bb6-ee16-4ab4-a811-a783c240247c" ], + "CommandName": [ "Az.PostgreSql\\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": [ "69d8a815-567f-40c1-a73f-6d06b8170677" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "dc81ff19-0e01-4b52-a78a-dbf6d8589005" ], + "x-ms-routing-request-id": [ "WESTUS2:20210113T230509Z:dc81ff19-0e01-4b52-a78a-dbf6d8589005" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 13 Jan 2021 23:05:08 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-100.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\":\"2021-01-13T23:05:09.3791602+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US 2 EUAP\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "Get-AzPostgreSqlFlexibleServerConnect+[NoContext]+GetAndQuery+$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+1": { + "Request": { + "Method": "GET", + "RequestUri": "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", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "eb7c6c2c-475e-4cf0-b6cf-b6465c41478a" ], + "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": [ "f6ed9db8-6b75-410d-a3f0-7a9cd79f9766" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "8e3c9292-022b-4cbe-9cb0-604ca0dff912" ], + "x-ms-routing-request-id": [ "WESTUS2:20210113T230510Z:8e3c9292-022b-4cbe-9cb0-604ca0dff912" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 13 Jan 2021 23:05:09 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-100.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\":\"2021-01-13T23:05:10.5366928+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US 2 EUAP\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + }, + "Get-AzPostgreSqlFlexibleServerConnect+[NoContext]+GetViaIdentityAndQuery+$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+1": { + "Request": { + "Method": "GET", + "RequestUri": "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", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "f21e8274-0533-44d2-b71c-84a1602407f2" ], + "CommandName": [ "Az.PostgreSql\\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": [ "d872437e-40f4-4373-bcdd-55c2e205b4f8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "1610ac82-484f-46c4-909a-c03ac572d376" ], + "x-ms-routing-request-id": [ "WESTUS2:20210113T230511Z:1610ac82-484f-46c4-909a-c03ac572d376" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 13 Jan 2021 23:05:10 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-100.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\":\"2021-01-13T23:05:11.2398238+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US 2 EUAP\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" + } + } +} \ No newline at end of file diff --git a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConnectionString.Recording.json b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConnectionString.Recording.json index e83b3d1d53c2..8b54d837e3c2 100644 --- a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConnectionString.Recording.json +++ b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerConnectionString.Recording.json @@ -1,8 +1,8 @@ { - "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": { + "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", + "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" ], @@ -38,10 +38,10 @@ "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": { + "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", + "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" ], @@ -77,10 +77,10 @@ "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": { + "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", + "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" ], @@ -116,10 +116,10 @@ "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": { + "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", + "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" ], @@ -155,10 +155,10 @@ "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": { + "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", + "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" ], @@ -194,10 +194,10 @@ "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": { + "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", + "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" ], @@ -233,10 +233,10 @@ "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": { + "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", + "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" ], @@ -272,10 +272,10 @@ "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": { + "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", + "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" ], diff --git a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerFirewallRule.Recording.json b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerFirewallRule.Recording.json index b8e018a7130f..f0fc38271717 100644 --- a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerFirewallRule.Recording.json +++ b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerFirewallRule.Recording.json @@ -1,8 +1,8 @@ { - "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": { + "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", + "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": { }, @@ -76,10 +76,10 @@ "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": { + "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", + "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]" ], @@ -115,10 +115,10 @@ "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": { + "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", + "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" ], @@ -154,10 +154,10 @@ "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": { + "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", + "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" ], @@ -193,10 +193,10 @@ "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": { + "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", + "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" ], @@ -232,10 +232,10 @@ "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": { + "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", + "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" ], diff --git a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 index 507ce13fd7d1..37a7f38f2279 100644 --- a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 +++ b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 @@ -30,7 +30,7 @@ Describe 'Get-AzPostgreSqlFlexibleServerFirewallRule' { It 'GetViaIdentity' { { - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForPostgreSql/flexibleServers/$($env.flexibleServerName)/firewallRules/$($env.firewallRuleName)" + $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 diff --git a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.Recording.json b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.Recording.json index 6200b32d00e4..3062a9917eb1 100644 --- a/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.Recording.json +++ b/src/PostgreSql/test/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.Recording.json @@ -2,7 +2,7 @@ "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", + "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" ], diff --git a/src/PostgreSql/test/Get-AzPostgreSqlVirtualNetworkRule.Recording.json b/src/PostgreSql/test/Get-AzPostgreSqlVirtualNetworkRule.Recording.json index 70f3fd059094..189193114f40 100644 --- a/src/PostgreSql/test/Get-AzPostgreSqlVirtualNetworkRule.Recording.json +++ b/src/PostgreSql/test/Get-AzPostgreSqlVirtualNetworkRule.Recording.json @@ -3,7 +3,7 @@ "Request": { "Method": "PUT", "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}", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1\"\r\n }\r\n}", "Headers": { }, "ContentHeaders": { @@ -112,7 +112,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "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\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1\",\"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/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules?api-version=2017-12-01+4": { @@ -151,7 +151,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "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\"}]}" + "Content": "{\"value\":[{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1\",\"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/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+5": { @@ -278,7 +278,7 @@ "Request": { "Method": "PUT", "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}", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1\"\r\n }\r\n}", "Headers": { }, "ContentHeaders": { @@ -387,7 +387,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "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\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1\",\"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/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+4": { @@ -426,7 +426,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "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\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1\",\"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/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+5": { @@ -553,7 +553,7 @@ "Request": { "Method": "PUT", "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}", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1\"\r\n }\r\n}", "Headers": { }, "ContentHeaders": { @@ -662,7 +662,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "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\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1\",\"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/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+4": { @@ -701,7 +701,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "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\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1\",\"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/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+5": { diff --git a/src/PostgreSql/test/Get-AzPostgreSqlVirtualNetworkRule.Tests.ps1 b/src/PostgreSql/test/Get-AzPostgreSqlVirtualNetworkRule.Tests.ps1 index 2a3600cba578..58996753ca31 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/PostgreSqlVnet/subnets/MysqlSubnet1" + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1" 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,7 +21,7 @@ Describe 'Get-AzPostgreSqlVirtualNetworkRule' { } It 'Get' { - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1" + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1" 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 @@ -29,7 +29,7 @@ Describe 'Get-AzPostgreSqlVirtualNetworkRule' { } It 'GetViaIdentity' -Skip { - $VnetID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1" + $VnetID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1" 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-AzPostgreSqlFlexibleServer.Recording.json b/src/PostgreSql/test/New-AzPostgreSqlFlexibleServer.Recording.json index 791520aed3ec..84288b197e2e 100644 --- a/src/PostgreSql/test/New-AzPostgreSqlFlexibleServer.Recording.json +++ b/src/PostgreSql/test/New-AzPostgreSqlFlexibleServer.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "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}", + "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\": \"postgresql_test\",\r\n \"administratorLoginPassword\": \"Pasword01!!2020\",\r\n \"version\": \"12\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", "Headers": { }, "ContentHeaders": { @@ -76,10 +76,10 @@ "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": { + "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", + "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]" ], @@ -112,13 +112,13 @@ "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\"}" + "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\":\"postgresql_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": { + "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", + "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": { }, @@ -312,10 +312,10 @@ "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": { + "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", + "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]" ], @@ -351,10 +351,10 @@ "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": { + "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", + "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" ], @@ -390,10 +390,10 @@ "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": { + "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", + "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" ], @@ -590,10 +590,10 @@ "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": { + "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", + "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": { }, @@ -827,10 +827,10 @@ "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": { + "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", + "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]" ], @@ -866,10 +866,10 @@ "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": { + "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", + "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" ], @@ -905,10 +905,10 @@ "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": { + "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", + "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" ], @@ -1105,10 +1105,10 @@ "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": { + "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", + "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": { }, @@ -1382,10 +1382,10 @@ "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": { + "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", + "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]" ], @@ -1421,10 +1421,10 @@ "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": { + "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", + "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" ], @@ -1460,10 +1460,10 @@ "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": { + "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", + "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" ], @@ -1660,10 +1660,10 @@ "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": { + "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", + "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": { }, @@ -1937,10 +1937,10 @@ "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": { + "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", + "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]" ], @@ -1976,10 +1976,10 @@ "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": { + "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", + "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" ], @@ -2176,10 +2176,10 @@ "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": { + "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", + "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": { }, @@ -2533,10 +2533,10 @@ "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": { + "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", + "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]" ], @@ -2572,10 +2572,10 @@ "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": { + "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", + "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" ], @@ -2772,10 +2772,10 @@ "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": { + "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", + "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": { }, @@ -3049,10 +3049,10 @@ "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": { + "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", + "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]" ], @@ -3088,10 +3088,10 @@ "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": { + "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", + "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" ], @@ -3288,10 +3288,10 @@ "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": { + "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", + "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": { }, @@ -3565,10 +3565,10 @@ "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": { + "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", + "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]" ], @@ -3604,10 +3604,10 @@ "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": { + "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", + "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" ], @@ -3804,10 +3804,10 @@ "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": { + "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", + "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": { }, @@ -4121,10 +4121,10 @@ "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": { + "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", + "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]" ], @@ -4160,10 +4160,10 @@ "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": { + "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", + "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" ], @@ -4360,10 +4360,10 @@ "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": { + "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", + "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": { }, @@ -4597,10 +4597,10 @@ "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": { + "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", + "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]" ], @@ -4636,10 +4636,10 @@ "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": { + "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", + "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" ], @@ -4836,10 +4836,10 @@ "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": { + "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", + "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": { }, @@ -5073,10 +5073,10 @@ "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": { + "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", + "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]" ], @@ -5112,10 +5112,10 @@ "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": { + "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", + "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" ], @@ -5312,10 +5312,10 @@ "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": { + "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", + "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": { }, @@ -5549,10 +5549,10 @@ "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": { + "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", + "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]" ], @@ -5588,10 +5588,10 @@ "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": { + "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", + "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" ], @@ -5788,10 +5788,10 @@ "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": { + "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", + "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": { }, @@ -6065,10 +6065,10 @@ "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": { + "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", + "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]" ], @@ -6104,10 +6104,10 @@ "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": { + "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", + "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" ], @@ -6304,10 +6304,10 @@ "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": { + "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", + "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": { }, @@ -6541,10 +6541,10 @@ "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": { + "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", + "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]" ], @@ -6580,10 +6580,10 @@ "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": { + "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", + "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" ], @@ -6780,10 +6780,10 @@ "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": { + "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", + "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": { }, @@ -7057,10 +7057,10 @@ "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": { + "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", + "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]" ], @@ -7096,10 +7096,10 @@ "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": { + "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", + "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" ], diff --git a/src/PostgreSql/test/New-AzPostgreSqlFlexibleServerFirewallRule.Recording.json b/src/PostgreSql/test/New-AzPostgreSqlFlexibleServerFirewallRule.Recording.json index c75b619910ae..cf770159a395 100644 --- a/src/PostgreSql/test/New-AzPostgreSqlFlexibleServerFirewallRule.Recording.json +++ b/src/PostgreSql/test/New-AzPostgreSqlFlexibleServerFirewallRule.Recording.json @@ -1,8 +1,8 @@ { - "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": { + "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", + "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": { }, @@ -76,10 +76,10 @@ "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": { + "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", + "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]" ], @@ -115,10 +115,10 @@ "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": { + "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", + "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" ], @@ -235,10 +235,10 @@ "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": { + "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", + "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": { }, @@ -312,10 +312,10 @@ "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": { + "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", + "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]" ], @@ -351,10 +351,10 @@ "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": { + "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", + "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" ], @@ -471,10 +471,10 @@ "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": { + "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", + "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": { }, @@ -548,10 +548,10 @@ "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": { + "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", + "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]" ], @@ -587,10 +587,10 @@ "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": { + "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", + "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" ], diff --git a/src/PostgreSql/test/New-AzPostgreSqlVirtualNetworkRule.Recording.json b/src/PostgreSql/test/New-AzPostgreSqlVirtualNetworkRule.Recording.json index ebba75c1b426..0bafb6d42676 100644 --- a/src/PostgreSql/test/New-AzPostgreSqlVirtualNetworkRule.Recording.json +++ b/src/PostgreSql/test/New-AzPostgreSqlVirtualNetworkRule.Recording.json @@ -3,7 +3,7 @@ "Request": { "Method": "PUT", "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}", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1\"\r\n }\r\n}", "Headers": { }, "ContentHeaders": { @@ -112,7 +112,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "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\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1\",\"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/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+4": { diff --git a/src/PostgreSql/test/New-AzPostgreSqlVirtualNetworkRule.Tests.ps1 b/src/PostgreSql/test/New-AzPostgreSqlVirtualNetworkRule.Tests.ps1 index a30f8cc11e8f..e779999a74b5 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/PostgreSqlVnet/subnets/MysqlSubnet1" + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1" $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-AzPostgreSqlFlexibleServer.Recording.json b/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServer.Recording.json index b935ade5f795..956756e4a03d 100644 --- a/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServer.Recording.json +++ b/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServer.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "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}", + "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\": \"postgresql_test\",\r\n \"administratorLoginPassword\": \"Pasword01!!2020\",\r\n \"version\": \"12\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", "Headers": { }, "ContentHeaders": { @@ -76,10 +76,10 @@ "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": { + "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", + "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]" ], @@ -115,10 +115,10 @@ "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": { + "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", + "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" ], @@ -151,10 +151,10 @@ "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": { + "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", + "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" ], @@ -187,10 +187,10 @@ "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": { + "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", + "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" ], @@ -223,10 +223,10 @@ "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": { + "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", + "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" ], @@ -259,10 +259,10 @@ "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": { + "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", + "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" ], diff --git a/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServer.Tests.ps1 b/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServer.Tests.ps1 index a9a5ddb714ee..3ffbcf56ee7b 100644 --- a/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServer.Tests.ps1 +++ b/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServer.Tests.ps1 @@ -17,7 +17,7 @@ Describe 'Remove-AzPostgreSqlFlexibleServer' { 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 + New-AzPostgreSqlFlexibleServer -Location $env.location -ResourceGroupName $env.resourceGroup -Name $env.serverName2 -AdministratorUserName postgresql_test -AdministratorLoginPassword $password } Remove-AzPostgreSqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName2 } | Should -Not -Throw @@ -25,11 +25,11 @@ Describe 'Remove-AzPostgreSqlFlexibleServer' { It 'DeleteViaIdentity' { { - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForPostgreSql/flexibleServers/$($env.serverName2)" + $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 + New-AzPostgreSqlFlexibleServer -Location $env.location -ResourceGroupName $env.resourceGroup -Name $env.serverName2 -AdministratorUserName postgre_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 index 9fbd1344d434..6c4a1a2200dc 100644 --- a/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServerFirewallRule.Recording.json +++ b/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServerFirewallRule.Recording.json @@ -1,8 +1,8 @@ { - "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": { + "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", + "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": { }, @@ -76,10 +76,10 @@ "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": { + "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", + "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]" ], @@ -115,10 +115,10 @@ "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": { + "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", + "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" ], @@ -235,10 +235,10 @@ "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": { + "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", + "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": { }, @@ -312,10 +312,10 @@ "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": { + "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", + "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]" ], @@ -351,10 +351,10 @@ "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": { + "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", + "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" ], diff --git a/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 b/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 index 369f2615a4ef..615a7c9b3f33 100644 --- a/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 +++ b/src/PostgreSql/test/Remove-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 @@ -19,7 +19,7 @@ Describe 'Remove-AzPostgreSqlFlexibleServerFirewallRule' { 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)" + $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-AzPostgreSqlVirtualNetworkRule.Recording.json b/src/PostgreSql/test/Remove-AzPostgreSqlVirtualNetworkRule.Recording.json index 7183de3e8fdb..67c9c1a0516d 100644 --- a/src/PostgreSql/test/Remove-AzPostgreSqlVirtualNetworkRule.Recording.json +++ b/src/PostgreSql/test/Remove-AzPostgreSqlVirtualNetworkRule.Recording.json @@ -3,7 +3,7 @@ "Request": { "Method": "PUT", "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}", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1\"\r\n }\r\n}", "Headers": { }, "ContentHeaders": { @@ -112,7 +112,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "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\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1\",\"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/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+4": { @@ -239,7 +239,7 @@ "Request": { "Method": "PUT", "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}", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1\"\r\n }\r\n}", "Headers": { }, "ContentHeaders": { @@ -348,7 +348,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "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\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1\",\"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/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+4": { diff --git a/src/PostgreSql/test/Remove-AzPostgreSqlVirtualNetworkRule.Tests.ps1 b/src/PostgreSql/test/Remove-AzPostgreSqlVirtualNetworkRule.Tests.ps1 index 9e367fa15a1d..32b9d44c4d66 100644 --- a/src/PostgreSql/test/Remove-AzPostgreSqlVirtualNetworkRule.Tests.ps1 +++ b/src/PostgreSql/test/Remove-AzPostgreSqlVirtualNetworkRule.Tests.ps1 @@ -13,7 +13,7 @@ while(-not $mockingPath) { Describe 'Remove-AzPostgreSqlVirtualNetworkRule' { It 'Delete' { - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1" + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1" New-AzPostgreSqlVirtualNetworkRule -Name $env.VNetName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -SubnetId $ID { Remove-AzPostgreSqlVirtualNetworkRule -Name $env.VNetName -ResourceGroupName $env.resourceGroup-ServerName $env.serverName @@ -21,7 +21,7 @@ Describe 'Remove-AzPostgreSqlVirtualNetworkRule' { } It 'DeleteViaIdentity' -Skip { - $VnetID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1" + $VnetID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1" 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 index dea729ccb413..0ad75d82273a 100644 --- a/src/PostgreSql/test/Restart-AzPostgreSqlFlexibleServer.Recording.json +++ b/src/PostgreSql/test/Restart-AzPostgreSqlFlexibleServer.Recording.json @@ -1,8 +1,8 @@ { - "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": { + "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", + "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" ], @@ -160,10 +160,10 @@ "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": { + "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", + "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" ], diff --git a/src/PostgreSql/test/Restart-AzPostgreSqlFlexibleServer.Tests.ps1 b/src/PostgreSql/test/Restart-AzPostgreSqlFlexibleServer.Tests.ps1 index 74fce6bdcae0..22f27e476fc4 100644 --- a/src/PostgreSql/test/Restart-AzPostgreSqlFlexibleServer.Tests.ps1 +++ b/src/PostgreSql/test/Restart-AzPostgreSqlFlexibleServer.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'Restart-AzPostgreSqlFlexibleServer' { It 'RestartViaIdentity' { { - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForPostgreSql/flexibleServers/$($env.flexibleServerName)/restart" + $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/Restore-AzPostgreSqlFlexibleServer.Recording.json b/src/PostgreSql/test/Restore-AzPostgreSqlFlexibleServer.Recording.json index 56136e31182a..619025797cbd 100644 --- a/src/PostgreSql/test/Restore-AzPostgreSqlFlexibleServer.Recording.json +++ b/src/PostgreSql/test/Restore-AzPostgreSqlFlexibleServer.Recording.json @@ -1,8 +1,8 @@ { - "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": { + "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", + "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": { }, @@ -316,10 +316,10 @@ "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": { + "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", + "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]" ], diff --git a/src/PostgreSql/test/Start-AzPostgreSqlFlexibleServer.Recording.json b/src/PostgreSql/test/Start-AzPostgreSqlFlexibleServer.Recording.json index 80a1fae6258e..da55b8b85098 100644 --- a/src/PostgreSql/test/Start-AzPostgreSqlFlexibleServer.Recording.json +++ b/src/PostgreSql/test/Start-AzPostgreSqlFlexibleServer.Recording.json @@ -1,8 +1,8 @@ { - "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": { + "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", + "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" ], @@ -160,10 +160,10 @@ "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": { + "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", + "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" ], @@ -321,10 +321,10 @@ "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": { + "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", + "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" ], @@ -482,10 +482,10 @@ "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": { + "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", + "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" ], diff --git a/src/PostgreSql/test/Start-AzPostgreSqlFlexibleServer.Tests.ps1 b/src/PostgreSql/test/Start-AzPostgreSqlFlexibleServer.Tests.ps1 index 58b4c15fccfa..750184e8fb85 100644 --- a/src/PostgreSql/test/Start-AzPostgreSqlFlexibleServer.Tests.ps1 +++ b/src/PostgreSql/test/Start-AzPostgreSqlFlexibleServer.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Start-AzPostgreSqlFlexibleServer' { It 'StartViaIdentity' { { - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForPostgreSql/flexibleServers/$($env.flexibleServerName)/start" + $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 index 77b411460b39..b3bc961fe2da 100644 --- a/src/PostgreSql/test/Stop-AzPostgreSqlFlexibleServer.Recording.json +++ b/src/PostgreSql/test/Stop-AzPostgreSqlFlexibleServer.Recording.json @@ -1,8 +1,8 @@ { - "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": { + "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", + "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" ], @@ -160,10 +160,10 @@ "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": { + "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", + "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" ], @@ -321,10 +321,10 @@ "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": { + "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", + "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" ], @@ -482,10 +482,10 @@ "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": { + "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", + "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" ], diff --git a/src/PostgreSql/test/Stop-AzPostgreSqlFlexibleServer.Tests.ps1 b/src/PostgreSql/test/Stop-AzPostgreSqlFlexibleServer.Tests.ps1 index 3101005ee6de..195f635b412b 100644 --- a/src/PostgreSql/test/Stop-AzPostgreSqlFlexibleServer.Tests.ps1 +++ b/src/PostgreSql/test/Stop-AzPostgreSqlFlexibleServer.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Stop-AzPostgreSqlFlexibleServer' { It 'StopViaIdentity' { { - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForPostgreSql/flexibleServers/$($env.flexibleServerName)/stop" + $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/Test-AzPostgreSqlFlexibleServerConnect.Recording.json b/src/PostgreSql/test/Test-AzPostgreSqlFlexibleServerConnect.Recording.json index 1af2f7bffe0f..663c4265ec38 100644 --- a/src/PostgreSql/test/Test-AzPostgreSqlFlexibleServerConnect.Recording.json +++ b/src/PostgreSql/test/Test-AzPostgreSqlFlexibleServerConnect.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzPostgreSqlFlexibleServerConnect+[NoContext]+Get+$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+1": { + "Get-AzPostgreSqlFlexibleServerConnect+[NoContext]+Get+$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+1": { "Request": { "Method": "GET", - "RequestUri": "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", + "RequestUri": "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", "Content": null, "Headers": { "x-ms-unique-id": [ "2" ], @@ -38,10 +38,10 @@ "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-test-100.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\":\"2021-01-13T23:05:07.58235+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US 2 EUAP\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" } }, - "Get-AzPostgreSqlFlexibleServerConnect+[NoContext]+GetViaIdentity+$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+1": { + "Get-AzPostgreSqlFlexibleServerConnect+[NoContext]+GetViaIdentity+$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+1": { "Request": { "Method": "GET", - "RequestUri": "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", + "RequestUri": "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", "Content": null, "Headers": { "x-ms-unique-id": [ "3" ], @@ -77,10 +77,10 @@ "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-test-100.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\":\"2021-01-13T23:05:09.3791602+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US 2 EUAP\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" } }, - "Get-AzPostgreSqlFlexibleServerConnect+[NoContext]+GetAndQuery+$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+1": { + "Get-AzPostgreSqlFlexibleServerConnect+[NoContext]+GetAndQuery+$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+1": { "Request": { "Method": "GET", - "RequestUri": "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", + "RequestUri": "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", "Content": null, "Headers": { "x-ms-unique-id": [ "4" ], @@ -116,10 +116,10 @@ "Content": "{\"sku\":{\"name\":\"Standard_D2s_v3\",\"tier\":\"GeneralPurpose\",\"capacity\":2},\"properties\":{\"fullyQualifiedDomainName\":\"postgresql-test-100.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\":\"2021-01-13T23:05:10.5366928+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0}},\"location\":\"East US 2 EUAP\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-test-100\",\"name\":\"postgresql-test-100\",\"type\":\"Microsoft.DBforPostgreSQL/flexibleServers\"}" } }, - "Get-AzPostgreSqlFlexibleServerConnect+[NoContext]+GetViaIdentityAndQuery+$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+1": { + "Get-AzPostgreSqlFlexibleServerConnect+[NoContext]+GetViaIdentityAndQuery+$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+1": { "Request": { "Method": "GET", - "RequestUri": "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", + "RequestUri": "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", "Content": null, "Headers": { "x-ms-unique-id": [ "5" ], diff --git a/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServer.Recording.json b/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServer.Recording.json index 87eb3d48f9a0..db3a9340fdff 100644 --- a/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServer.Recording.json +++ b/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServer.Recording.json @@ -1,8 +1,8 @@ { - "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": { + "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", + "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": { }, @@ -16,35 +16,35 @@ "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" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/61436b8c-8ace-41ff-98d3-3ea94a226950?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" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/61436b8c-8ace-41ff-98d3-3ea94a226950?api-version=2020-02-14-preview" ], "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "799402b2-112c-456d-976b-e6326fed6b48" ], + "x-ms-request-id": [ "29edff19-86a7-41ba-9273-0a3e19c424a5" ], "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" ], + "x-ms-correlation-request-id": [ "b8a08f07-75e2-4a8f-afb2-1caac8bf736c" ], + "x-ms-routing-request-id": [ "WESTUS2:20210210T000006Z:b8a08f07-75e2-4a8f-afb2-1caac8bf736c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Date": [ "Thu, 12 Nov 2020 23:27:09 GMT" ] + "Date": [ "Wed, 10 Feb 2021 00:00:05 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "87" ], + "Content-Length": [ "88" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-11-12T23:27:09.98Z\"}" + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2021-02-10T00:00:06.227Z\"}" } }, - "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": { + "Update-AzPostgreSqlFlexibleServer+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/61436b8c-8ace-41ff-98d3-3ea94a226950?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", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/61436b8c-8ace-41ff-98d3-3ea94a226950?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" ], + "x-ms-client-request-id": [ "2c6140ee-0ddf-4627-879f-d3054a8c31a1" ], "CommandName": [ "Az.PostgreSql.internal\\Update-AzPostgreSqlFlexibleServer" ], "FullCommandName": [ "Update-AzPostgreSqlFlexibleServer_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -60,31 +60,31 @@ "Pragma": [ "no-cache" ], "Retry-After": [ "60" ], "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "276defb9-1452-4cc2-87ea-5bb36dc66802" ], + "x-ms-request-id": [ "8f80469a-0f82-4c6b-8d08-1c185b8630d3" ], "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" ], + "x-ms-correlation-request-id": [ "ca798984-9f93-493d-8fc5-cc0ecc70a7d4" ], + "x-ms-routing-request-id": [ "WESTUS2:20210210T000106Z:ca798984-9f93-493d-8fc5-cc0ecc70a7d4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Date": [ "Thu, 12 Nov 2020 23:28:10 GMT" ] + "Date": [ "Wed, 10 Feb 2021 00:01:06 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "106" ], + "Content-Length": [ "107" ], "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\"}" + "Content": "{\"name\":\"61436b8c-8ace-41ff-98d3-3ea94a226950\",\"status\":\"Succeeded\",\"startTime\":\"2021-02-10T00:00:06.227Z\"}" } }, - "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": { + "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", + "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" ], + "x-ms-client-request-id": [ "2c6140ee-0ddf-4627-879f-d3054a8c31a1" ], "CommandName": [ "Az.PostgreSql.internal\\Update-AzPostgreSqlFlexibleServer" ], "FullCommandName": [ "Update-AzPostgreSqlFlexibleServer_UpdateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -99,27 +99,182 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "95c4e95f-4524-4b55-b493-245af07d2a61" ], + "x-ms-request-id": [ "43bf5255-3433-4ce0-9d6c-3479e95ff93f" ], "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" ], + "x-ms-correlation-request-id": [ "f768222e-ac6d-4a2f-b5db-e5db1bf34608" ], + "x-ms-routing-request-id": [ "WESTUS2:20210210T000107Z:f768222e-ac6d-4a2f-b5db-e5db1bf34608" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Date": [ "Thu, 12 Nov 2020 23:28:10 GMT" ] + "Date": [ "Wed, 10 Feb 2021 00:01:06 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "880" ], + "Content-Length": [ "915" ], + "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\":\"2021-02-04T21:21:11.446085+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]+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+4": { + "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 \"maintenanceWindow\": {\r\n \"customWindow\": \"Enabled\",\r\n \"startHour\": 1,\r\n \"startMinute\": 30,\r\n \"dayOfWeek\": 1\r\n }\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "168" ] + } + }, + "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/0a006e5b-2630-49cc-ab6e-ad04dec1e30c?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/0a006e5b-2630-49cc-ab6e-ad04dec1e30c?api-version=2020-02-14-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3db1df68-277c-446d-ad91-d804faa1849d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "4aa6f334-3276-4c65-8f54-7f6f5579ea56" ], + "x-ms-routing-request-id": [ "WESTUS2:20210210T000107Z:4aa6f334-3276-4c65-8f54-7f6f5579ea56" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 10 Feb 2021 00:01:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2021-02-10T00:01:07.833Z\"}" + } + }, + "Update-AzPostgreSqlFlexibleServer+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/0a006e5b-2630-49cc-ab6e-ad04dec1e30c?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/0a006e5b-2630-49cc-ab6e-ad04dec1e30c?api-version=2020-02-14-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "72488e02-aaa1-4c35-ab24-a65513e70b9a" ], + "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": [ "c35982ec-f7b1-4ba0-9451-affb8b8b9076" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "4444053b-fb7f-4776-af61-4f4350f2cfa9" ], + "x-ms-routing-request-id": [ "WESTUS2:20210210T000208Z:4444053b-fb7f-4776-af61-4f4350f2cfa9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 10 Feb 2021 00:02:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"0a006e5b-2630-49cc-ab6e-ad04dec1e30c\",\"status\":\"Succeeded\",\"startTime\":\"2021-02-10T00:01:07.833Z\"}" + } + }, + "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+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": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "72488e02-aaa1-4c35-ab24-a65513e70b9a" ], + "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": [ "c4d072e9-3581-4068-b94c-99afc0e833d5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "881fe2f4-1c9a-4d95-bc00-4724901ed121" ], + "x-ms-routing-request-id": [ "WESTUS2:20210210T000208Z:881fe2f4-1c9a-4d95-bc00-4724901ed121" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 10 Feb 2021 00:02:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "915" ], + "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\":\"2021-02-04T21:21:11.446085+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Enabled\",\"dayOfWeek\":1,\"startHour\":1,\"startMinute\":30}},\"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+$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": [ "7559da8d-41d7-4a61-a942-c991d68a3896" ], + "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": [ "6c414f26-58e8-4b6a-b6f2-3752a53db170" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "dba7140a-46a0-4faf-a4c5-28b4121c3930" ], + "x-ms-routing-request-id": [ "WESTUS2:20210210T001401Z:dba7140a-46a0-4faf-a4c5-28b4121c3930" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 10 Feb 2021 00:14:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "915" ], "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\"}" + "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\":\"2021-02-04T21:21:11.446085+00:00\",\"byokEnforcement\":\"Disabled\",\"maintenanceWindow\":{\"customWindow\":\"Enabled\",\"dayOfWeek\":1,\"startHour\":1,\"startMinute\":30}},\"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": { + "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+2": { "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}", + "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 \"storageMB\": 20480\r\n }\r\n }\r\n}", "Headers": { }, "ContentHeaders": { @@ -152,7 +307,7 @@ "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": { + "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+3": { "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", @@ -192,10 +347,10 @@ "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": { + "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+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", + "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]" ], @@ -228,7 +383,7 @@ "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\"}" + "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\":20480,\"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 index e79291febdec..8df488cfcdb7 100644 --- a/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServer.Tests.ps1 +++ b/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServer.Tests.ps1 @@ -16,14 +16,22 @@ Describe 'Update-AzPostgreSqlFlexibleServer' { { $server = Update-AzPostgreSqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.flexibleServerName -BackupRetentionDay 15 $server.StorageProfileBackupRetentionDay | Should -Be 15 + + $server = Update-AzPostgreSqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.flexibleServerName -MaintenanceWindow "Mon:1:30" + $server.MaintenanceWindowCustomWindow | Should -Be 'Enabled' + $server.MaintenanceWindowDayOfWeek | Should -Be '1' + $server.MaintenanceWindowStartHour | Should -Be '1' + $server.MaintenanceWindowStartMinute | Should -Be '30' + } | 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 + # $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBforPostgreSQL/flexibleServers/$($env.flexibleServerName)/" + $server = Get-AzPostgreSqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.flexibleServerName + $server = Update-AzPostgreSqlFlexibleServer -InputObject $server -StorageInMb 20480 + $server.StorageProfileStorageMb | Should -Be 20480 } | Should -Not -Throw } } diff --git a/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerConfiguration.Recording.json b/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerConfiguration.Recording.json index e9d510ae3ecf..ef87ee6d1ef7 100644 --- a/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerConfiguration.Recording.json +++ b/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerConfiguration.Recording.json @@ -1,8 +1,8 @@ { - "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": { + "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", + "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": { }, @@ -76,10 +76,10 @@ "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": { + "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", + "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]" ], @@ -115,10 +115,10 @@ "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": { + "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", + "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": { }, @@ -192,10 +192,10 @@ "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": { + "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", + "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]" ], diff --git a/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerConfiguration.Tests.ps1 b/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerConfiguration.Tests.ps1 index 2977b59c314a..5c74411a265b 100644 --- a/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerConfiguration.Tests.ps1 +++ b/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerConfiguration.Tests.ps1 @@ -19,7 +19,7 @@ Describe 'Update-AzPostgreSqlFlexibleServerConfiguration' { } It 'UpdateViaIdentityExpanded' { - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForPostgreSql/flexibleServers/$($env.flexibleServerName)/configurations/work_mem" + $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 index 01a0cb2a2d4f..43aa940b9995 100644 --- a/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerFirewallRule.Recording.json +++ b/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerFirewallRule.Recording.json @@ -1,8 +1,8 @@ { - "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": { + "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", + "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": { }, @@ -76,10 +76,10 @@ "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": { + "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", + "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]" ], @@ -115,10 +115,10 @@ "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": { + "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", + "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": { }, @@ -192,10 +192,10 @@ "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": { + "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", + "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]" ], @@ -231,10 +231,10 @@ "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": { + "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", + "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": { }, @@ -308,10 +308,10 @@ "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": { + "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", + "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]" ], @@ -347,10 +347,10 @@ "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": { + "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", + "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": { }, @@ -424,10 +424,10 @@ "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": { + "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", + "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]" ], @@ -463,10 +463,10 @@ "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": { + "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", + "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": { }, @@ -540,10 +540,10 @@ "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": { + "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", + "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]" ], diff --git a/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 b/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 index 762fd300c027..bf6e75233b09 100644 --- a/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 +++ b/src/PostgreSql/test/Update-AzPostgreSqlFlexibleServerFirewallRule.Tests.ps1 @@ -26,14 +26,14 @@ Describe 'Update-AzPostgreSqlFlexibleServerFirewallRule' { } It 'UpdateViaIdentityExpanded' { - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForPostgreSql/flexibleServers/$($env.flexibleServerName)/firewallRules/$($env.firewallRuleName)" + $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)" + $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-AzPostgreSqlVirtualNetworkRule.Recording.json b/src/PostgreSql/test/Update-AzPostgreSqlVirtualNetworkRule.Recording.json index 46b5fe61f50a..1e6448c7fd97 100644 --- a/src/PostgreSql/test/Update-AzPostgreSqlVirtualNetworkRule.Recording.json +++ b/src/PostgreSql/test/Update-AzPostgreSqlVirtualNetworkRule.Recording.json @@ -3,7 +3,7 @@ "Request": { "Method": "PUT", "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}", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1\"\r\n }\r\n}", "Headers": { }, "ContentHeaders": { @@ -112,14 +112,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "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\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1\",\"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/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/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}", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet2\"\r\n }\r\n}", "Headers": { }, "ContentHeaders": { @@ -228,7 +228,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "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\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet2\",\"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/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+7": { @@ -355,7 +355,7 @@ "Request": { "Method": "PUT", "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}", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1\"\r\n }\r\n}", "Headers": { }, "ContentHeaders": { @@ -464,14 +464,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "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\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1\",\"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/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/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}", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet2\"\r\n }\r\n}", "Headers": { }, "ContentHeaders": { @@ -580,7 +580,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "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\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet2\",\"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/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/PostgreSqlTest/providers/Microsoft.DBForPostgreSQL/servers/postgresql-test-100/virtualNetworkRules/postgresqlvnet?api-version=2017-12-01+7": { diff --git a/src/PostgreSql/test/Update-AzPostgreSqlVirtualNetworkRule.Tests.ps1 b/src/PostgreSql/test/Update-AzPostgreSqlVirtualNetworkRule.Tests.ps1 index b6621a2c4e86..b57b692c2aac 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/PostgreSqlVnet/subnets/MysqlSubnet1" + $ID1 = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1" New-AzPostgreSqlVirtualNetworkRule -Name $env.VNetName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -SubnetId $ID1 - $ID2 = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet2" + $ID2 = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet2" $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' -Skip { - $SubnetID1 = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet1" + $SubnetID1 = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet1" New-AzPostgreSqlVirtualNetworkRule -Name $env.VNetName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -SubnetId $SubnetID1 - $SubnetID2 = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/MysqlSubnet2" + $SubnetID2 = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/PostgreSqlVnet/subnets/PostgresqlSubnet2" $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 87c14629d327..0552b89f1405 100644 --- a/src/PostgreSql/test/deployment-templates/virtual-network/template.json +++ b/src/PostgreSql/test/deployment-templates/virtual-network/template.json @@ -25,7 +25,7 @@ }, "subnet1Name": { "type": "string", - "defaultValue": "MysqlSubnet1", + "defaultValue": "PostgresqlSubnet1", "metadata": { "description": "Subnet 1 Name" } @@ -39,7 +39,7 @@ }, "subnet2Name": { "type": "string", - "defaultValue": "MysqlSubnet2", + "defaultValue": "PostgresqlSubnet2", "metadata": { "description": "Subnet 2 Name" } diff --git a/src/PostgreSql/test/env.json b/src/PostgreSql/test/env.json index 476695bba816..5b7b3e754252 100644 --- a/src/PostgreSql/test/env.json +++ b/src/PostgreSql/test/env.json @@ -1,19 +1,19 @@ { - "firewallRuleName": "postgresqlrule01", - "SubscriptionId": "7fec3109-5b78-4a24-b834-5d47d63e2596", - "replicaName": "postgresql-test-100-replica", - "VNetName": "postgresqlvnet", - "SubnetName": "postgresql-subnet", - "firewallRuleName2": "postgresqlrule02", - "serverName2": "postgresql-test-200", + "Sku": "GP_Gen5_4", "serverName3": "postgresql-test-300", - "serverName": "postgresql-test-100", + "firewallRuleName": "postgresqlrule01", + "FlexibleSku": "Standard_D2s_v3", "flexibleServerName": "postgresql-flexible-test-100", "location": "eastus2euap", + "replicaName": "postgresql-test-100-replica", + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "serverName": "postgresql-test-100", "resourceGroup": "PostgreSqlTest", + "SubscriptionId": "7fec3109-5b78-4a24-b834-5d47d63e2596", + "restoreName2": "postgresql-test-100-restore-2", + "VNetName": "postgresqlvnet", "restoreName": "postgresql-test-100-restore", - "Sku": "GP_Gen5_4", - "FlexibleSku": "GP_Gen5_4", - "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "restoreName2": "postgresql-test-100-restore-2" + "SubnetName": "postgresql-subnet", + "serverName2": "postgresql-test-200", + "firewallRuleName2": "postgresqlrule02" } diff --git a/src/PostgreSql/test/utils.ps1 b/src/PostgreSql/test/utils.ps1 index 73a3c0f6dc5c..7522b7ecfd1e 100644 --- a/src/PostgreSql/test/utils.ps1 +++ b/src/PostgreSql/test/utils.ps1 @@ -16,6 +16,7 @@ function setupEnv() { #[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine")] $password = 'Pa88word!' | ConvertTo-SecureString -AsPlainText -Force $serverName = "postgresql-test-100" + $flexibleServerName = "postgresql-flexible-test-100" $serverName2 = "postgresql-test-200" $serverName3 = "postgresql-test-300" $restoreName = "postgresql-test-100-restore" @@ -44,7 +45,6 @@ function setupEnv() { $firewallRuleName = $PowershellPrefix + "firewallrule" + $RandomNumbers } - $env.Add("serverName", $serverName) $env.Add("flexibleServerName", $flexibleServerName) $env.Add("serverName2", $serverName2)