Skip to content

Commit 24c9bc8

Browse files
committed
Fix Az.PostgreSql Syntax Errors
1 parent 5725504 commit 24c9bc8

7 files changed

+15
-16
lines changed

src/PostgreSql/help/New-AzPostgreSqlFlexibleServer.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ Creates a new server.
2828

2929
### Example 1: Create a new PostgreSql flexible server with arguments
3030
```powershell
31-
New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName PowershellPostgreSqlTest \
32-
-Location eastus -AdministratorUserName postgresqltest -AdministratorLoginPassword $password -Sku Standard_D2s_v3 -SkuTier GeneralPurpose -Version 12 -StorageInMb 131072 -PublicAccess none
31+
New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName PowershellPostgreSqlTest -Location eastus -AdministratorUserName postgresqltest -AdministratorLoginPassword $password -Sku Standard_D2s_v3 -SkuTier GeneralPurpose -Version 12 -StorageInMb 131072 -PublicAccess none
3332
```
3433

3534
```output

src/PostgreSql/help/Restart-AzPostgreSqlFlexibleServer.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,29 +46,29 @@ Restarts a server.
4646

4747
### Example 1: Restart the server by resource name
4848
```powershell
49-
Restart-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test
49+
Restart-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test
5050
```
5151

5252
Restart the server by name
5353

5454
### Example 2: Restart the server by identity
5555
```powershell
56-
$ID = "/subscriptions/<SubscriptionId>/resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test/restart"
57-
Restart-AzPostgreSqlFlexibleServer -InputObject $ID
56+
$ID = "/subscriptions/<SubscriptionId>/resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test/restart"
57+
Restart-AzPostgreSqlFlexibleServer -InputObject $ID
5858
```
5959

6060
Restart the server by identity
6161

6262
### Example 3: Restart the server with planned failover
6363
```powershell
64-
Restart-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test -RestartWithFailover -FailoverMode PlannedFailover
64+
Restart-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test -RestartWithFailover -FailoverMode PlannedFailover
6565
```
6666

6767
Restart the server by name with planned failover
6868

6969
### Example 4: Restart the server with forced failover
7070
```powershell
71-
Restart-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test -RestartWithFailover -FailoverMode ForcedFailover
71+
Restart-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test -RestartWithFailover -FailoverMode ForcedFailover
7272
```
7373

7474
Restart the server by name with forced failover

src/PostgreSql/help/Restore-AzPostgreSqlFlexibleServer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Restore a server from an existing backup
2626
### Example 1: Restore PostgreSql server using PointInTime Restore
2727
```powershell
2828
$restorePointInTime = (Get-Date).AddMinutes(-10)
29-
Restore-AzPostgreSqlFlexibleServer -Name pg-restore -ResourceGroupName PowershellPostgreSqlTest -SourceServerName postgresql-test -Location eastus -RestorePointInTime $restorePointInTime
29+
Restore-AzPostgreSqlFlexibleServer -Name pg-restore -ResourceGroupName PowershellPostgreSqlTest -SourceServerName postgresql-test -RestorePointInTime $restorePointInTime
3030
```
3131

3232
```output
@@ -43,7 +43,7 @@ These cmdlets restore PostgreSql server using PointInTime Restore.
4343
$Subnet = '/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnetname'
4444
$DnsZone = '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/postgresqltest/providers/Microsoft.Network/privateDnsZones/testserver.private.postgres.database.azure.com'
4545
$restorePointInTime = (Get-Date).AddMinutes(-10)
46-
Restore-AzPostgreSqlFlexibleServer -Name pg-restore -ResourceGroupName PowershellPostgreSqlTest -SourceServerName postgresql-test -Location eastus -RestorePointInTime $restorePointInTime -Subnet $subnet -PrivateDnsZone $DnsZone
46+
Restore-AzPostgreSqlFlexibleServer -Name pg-restore -ResourceGroupName PowershellPostgreSqlTest -SourceServerName postgresql-test -RestorePointInTime $restorePointInTime -Subnet $subnet -PrivateDnsZone $DnsZone
4747
```
4848

4949
```output

src/PostgreSql/help/Test-AzPostgreSqlFlexibleServerConnect.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Test out the connection to the database server
4848
### Example 1: Test connection by name
4949
```powershell
5050
$password = ConvertTo-SecureString <YourPassword> -AsPlainText
51-
Get-AzPostgreSqlFlexibleServerConnect -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test -AdministratorLoginPassword $password
51+
Test-AzPostgreSqlFlexibleServerConnect -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test -AdministratorLoginPassword $password
5252
```
5353

5454
```output
@@ -72,7 +72,7 @@ Test connection by the identity
7272
### Example 3: Test query by name
7373
```powershell
7474
$password = ConvertTo-SecureString <YourPassword> -AsPlainText
75-
Test-AzPostgreSqlFlexibleServerConnect -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test -AdministratorLoginPassword $password -Query "SELECT * FROM test"
75+
Test-AzPostgreSqlFlexibleServerConnect -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test -AdministratorLoginPassword $password -QueryText "SELECT * FROM test"
7676
```
7777

7878
```output
@@ -87,7 +87,7 @@ Test a query by the resource group and the server name
8787

8888
### Example 4: Test connection by identity
8989
```powershell
90-
Get-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test | Test-AzPostgreSqlFlexibleServerConnect -Query "SELECT * FROM test" -AdministratorLoginPassword $password
90+
Get-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test | Test-AzPostgreSqlFlexibleServerConnect -QueryText "SELECT * FROM test" -AdministratorLoginPassword $password
9191
```
9292

9393
```output

src/PostgreSql/help/Update-AzPostgreSqlFirewallRule.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ These cmdlets update PostgreSql Firewall Rule by identity.
7474
### Example 3: Update PostgreSql Firewall Rule by -ClientIPAddress.
7575
```powershell
7676
$ID = "/subscriptions/<SubscriptionId>/resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.DBforPostgreSQL/servers/PostgreSqlTestServer/firewallRules/rule"
77-
Update-AzPostgreSqlFirewallRule -InputObject $ID --ClientIPAddress 0.0.0.2
77+
Update-AzPostgreSqlFirewallRule -InputObject $ID -ClientIPAddress 0.0.0.2
7878
```
7979

8080
```output

src/PostgreSql/help/Update-AzPostgreSqlFlexibleServer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ This cmdlet updates PostgreSql server by resource group and server name.
5252

5353
### Example 2: Update PostgreSql server by identity.
5454
```powershell
55-
Get-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test | Update-AzPostgreSqlFlexibleServer -BackupRetentionDay 23 -StorageMb 262144
55+
Get-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test | Update-AzPostgreSqlFlexibleServer -BackupRetentionDay 23 -StorageInMb 262144
5656
```
5757

5858
```output

src/PostgreSql/help/Update-AzPostgreSqlFlexibleServerConfiguration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Use Update-AzPostgreSqlFlexibleServer instead if you want update AdministratorLo
3434

3535
### Example 1: Updatae specified PostgreSql configuration by name
3636
```powershell
37-
Update-AzPostgreSqlFlexibleServerConfiguration -Name work_mem -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test -Value 8192
37+
Update-AzPostgreSqlFlexibleServerConfiguration -Name work_mem -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test -Value 8192
3838
```
3939

4040
```output
@@ -49,7 +49,7 @@ This cmdlet updates specified PostgreSql configuration by name.
4949
### Example 2: Updatae specified PostgreSql configuration by identity
5050
```powershell
5151
$ID = "/subscriptions/<SubscriptionId>/resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresql-test/configurations/work_mem"
52-
Get-AzPostgreSqlFlexibleServerConfiguration -Name work_mem -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test -Value 8192
52+
Update-AzPostgreSqlFlexibleServerConfiguration -Name work_mem -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test -Value 8192
5353
```
5454

5555
```output

0 commit comments

Comments
 (0)