From 26d48bab95b69842aa2941b23cc231672820c83f Mon Sep 17 00:00:00 2001 From: "v-yuzhichen@microsoft.com" Date: Fri, 1 Apr 2022 11:48:33 +0800 Subject: [PATCH 1/2] Fix Az.MySql Syntax Errors --- src/MySql/help/New-AzMySqlFlexibleServer.md | 3 +-- src/MySql/help/New-AzMySqlServer.md | 2 +- src/MySql/help/Remove-AzMySqlVirtualNetworkRule.md | 2 +- src/MySql/help/Test-AzMySqlFlexibleServerConnect.md | 8 ++++---- src/MySql/help/Update-AzMySqlFirewallRule.md | 2 +- src/MySql/help/Update-AzMySqlServer.md | 2 +- 6 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/MySql/help/New-AzMySqlFlexibleServer.md b/src/MySql/help/New-AzMySqlFlexibleServer.md index e48c4fc20257..cb3b155aa3a0 100644 --- a/src/MySql/help/New-AzMySqlFlexibleServer.md +++ b/src/MySql/help/New-AzMySqlFlexibleServer.md @@ -29,8 +29,7 @@ Creates a new MySQL flexible server. ### Example 1: Create a new MySql flexible server with arguments ```powershell -New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ --Location eastus -AdministratorUserName mysqltest -AdministratorLoginPassword $password -Sku Standard_D2ds_v4 -SkuTier Burstable -Version 12 -StorageInMb 20480 -PublicAccess none -Zone 1 -BackupRetentionDay 10 -StorageAutogrow Enabled -Iops 500 -HighAvailability ZoneRedundant +New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -Location eastus -AdministratorUserName mysqltest -AdministratorLoginPassword $password -Sku Standard_D2ds_v4 -SkuTier Burstable -Version 12 -StorageInMb 20480 -PublicAccess none -Zone 1 -BackupRetentionDay 10 -StorageAutogrow Enabled -Iops 500 -HighAvailability ZoneRedundant ``` ```output diff --git a/src/MySql/help/New-AzMySqlServer.md b/src/MySql/help/New-AzMySqlServer.md index 45e791384aba..f8b0795d1751 100644 --- a/src/MySql/help/New-AzMySqlServer.md +++ b/src/MySql/help/New-AzMySqlServer.md @@ -28,7 +28,7 @@ Creates a new server. ### Example 1: Create a new MySql server ```powershell -New-AzMySqlServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -Location eastus -AdministratorUser mysql_test -AdministratorLoginPassword $password -Sku GP_Gen5_4 +New-AzMySqlServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -Location eastus -AdministratorUserName mysql_test -AdministratorLoginPassword $password -Sku GP_Gen5_4 ``` ```output diff --git a/src/MySql/help/Remove-AzMySqlVirtualNetworkRule.md b/src/MySql/help/Remove-AzMySqlVirtualNetworkRule.md index 7d8429451890..17c5f128ffb2 100644 --- a/src/MySql/help/Remove-AzMySqlVirtualNetworkRule.md +++ b/src/MySql/help/Remove-AzMySqlVirtualNetworkRule.md @@ -32,7 +32,7 @@ Deletes the virtual network rule with the given name. ### Example 1: Remove MySql server Virtual Network Rule by name ```powershell -Remove-AzMySqlVirtualNetworkRule -Name vnet -ResourceGroupName PowershellMySqlTest-ServerName mysql-test +Remove-AzMySqlVirtualNetworkRule -Name vnet -ResourceGroupName PowershellMySqlTest -ServerName mysql-test ``` This cmdlet removes MySql server Virtual Network Rule by name. diff --git a/src/MySql/help/Test-AzMySqlFlexibleServerConnect.md b/src/MySql/help/Test-AzMySqlFlexibleServerConnect.md index 94c6a2835b0a..bb2a6a3aed4b 100644 --- a/src/MySql/help/Test-AzMySqlFlexibleServerConnect.md +++ b/src/MySql/help/Test-AzMySqlFlexibleServerConnect.md @@ -47,7 +47,7 @@ Test out the connection to the database server ### Example 1: Test connection by name ```powershell $password = ConvertTo-SecureString -AsPlainText -Get-AzMySqlFlexibleServerConnect -ResourceGroupName PowershellMySqlTest -Name mysql-test -AdministratorLoginPassword $password +Test-AzMySqlFlexibleServerConnect -ResourceGroupName PowershellMySqlTest -Name mysql-test -AdministratorLoginPassword $password ``` ```output @@ -59,7 +59,7 @@ Test connection by the resource group and the server name ### Example 2: Test connection by identity ```powershell $password = ConvertTo-SecureString -AsPlainText -Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Get-AzMySqlFlexibleServerConnect -AdministratorLoginPassword $password +Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Test-AzMySqlFlexibleServerConnect -AdministratorLoginPassword $password ``` ```output @@ -71,7 +71,7 @@ Test connection by the identity ### Example 3: Test query by name ```powershell $password = ConvertTo-SecureString -AsPlainText -Get-AzMySqlFlexibleServerConnect -ResourceGroupName PowershellMySqlTest -Name mysql-test -AdministratorLoginPassword $password -Query "SELECT * FROM test" +Test-AzMySqlFlexibleServerConnect -ResourceGroupName PowershellMySqlTest -Name mysql-test -AdministratorLoginPassword $password -Query "SELECT * FROM test" ``` ```output @@ -86,7 +86,7 @@ Test a query by the resource group and the server name ### Example 4: Test connection by identity ```powershell -Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Get-AzMySqlFlexibleServerConnect -Query "SELECT * FROM test" -AdministratorLoginPassword $password +Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Test-AzMySqlFlexibleServerConnect -Query "SELECT * FROM test" -AdministratorLoginPassword $password ``` ```output diff --git a/src/MySql/help/Update-AzMySqlFirewallRule.md b/src/MySql/help/Update-AzMySqlFirewallRule.md index 14e8c4c89024..c877d119387e 100644 --- a/src/MySql/help/Update-AzMySqlFirewallRule.md +++ b/src/MySql/help/Update-AzMySqlFirewallRule.md @@ -73,7 +73,7 @@ These cmdlets update MySql Firewall Rule by identity. ### Example 3: Update MySql Firewall Rule by -ClientIPAddress. ```powershell $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test/firewallRules/rule" -Update-AzMySqlFirewallRule -InputObject $ID --ClientIPAddress 0.0.0.2 +Update-AzMySqlFirewallRule -InputObject $ID -ClientIPAddress 0.0.0.2 ``` ```output diff --git a/src/MySql/help/Update-AzMySqlServer.md b/src/MySql/help/Update-AzMySqlServer.md index a8bbd7362f44..47bda168275c 100644 --- a/src/MySql/help/Update-AzMySqlServer.md +++ b/src/MySql/help/Update-AzMySqlServer.md @@ -55,7 +55,7 @@ This cmdlet updates MySql server by resource group and server name. ### Example 2: Update MySql server by identity. ```powershell -Get-AzMySqlServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Update-AzMySqlServer -BackupRetentionDay 23 -StorageMb 10240 +Get-AzMySqlServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Update-AzMySqlServer -BackupRetentionDay 23 -StorageInMb 10240 ``` ```output From 4a2c2f0bfafe615e1535a001d1078d6dc31ee607 Mon Sep 17 00:00:00 2001 From: "v-yuzhichen@microsoft.com" Date: Fri, 15 Apr 2022 15:09:55 +0800 Subject: [PATCH 2/2] Fix Az.MySql Syntax Errors --- src/MySql/help/Test-AzMySqlFlexibleServerConnect.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MySql/help/Test-AzMySqlFlexibleServerConnect.md b/src/MySql/help/Test-AzMySqlFlexibleServerConnect.md index bb2a6a3aed4b..d7e566148068 100644 --- a/src/MySql/help/Test-AzMySqlFlexibleServerConnect.md +++ b/src/MySql/help/Test-AzMySqlFlexibleServerConnect.md @@ -71,7 +71,7 @@ Test connection by the identity ### Example 3: Test query by name ```powershell $password = ConvertTo-SecureString -AsPlainText -Test-AzMySqlFlexibleServerConnect -ResourceGroupName PowershellMySqlTest -Name mysql-test -AdministratorLoginPassword $password -Query "SELECT * FROM test" +Test-AzMySqlFlexibleServerConnect -ResourceGroupName PowershellMySqlTest -Name mysql-test -AdministratorLoginPassword $password -QueryText "SELECT * FROM test" ``` ```output @@ -86,7 +86,7 @@ Test a query by the resource group and the server name ### Example 4: Test connection by identity ```powershell -Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Test-AzMySqlFlexibleServerConnect -Query "SELECT * FROM test" -AdministratorLoginPassword $password +Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Test-AzMySqlFlexibleServerConnect -QueryText "SELECT * FROM test" -AdministratorLoginPassword $password ``` ```output