Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Az.MySql Syntax Errors #17696

Merged
merged 2 commits into from
May 7, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/MySql/help/New-AzMySqlFlexibleServer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/MySql/help/New-AzMySqlServer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/MySql/help/Remove-AzMySqlVirtualNetworkRule.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions src/MySql/help/Test-AzMySqlFlexibleServerConnect.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Test out the connection to the database server
### Example 1: Test connection by name
```powershell
$password = ConvertTo-SecureString <YourPassword> -AsPlainText
Get-AzMySqlFlexibleServerConnect -ResourceGroupName PowershellMySqlTest -Name mysql-test -AdministratorLoginPassword $password
Test-AzMySqlFlexibleServerConnect -ResourceGroupName PowershellMySqlTest -Name mysql-test -AdministratorLoginPassword $password
```

```output
Expand All @@ -59,7 +59,7 @@ Test connection by the resource group and the server name
### Example 2: Test connection by identity
```powershell
$password = ConvertTo-SecureString <YourPassword> -AsPlainText
Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Get-AzMySqlFlexibleServerConnect -AdministratorLoginPassword $password
Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Test-AzMySqlFlexibleServerConnect -AdministratorLoginPassword $password
```

```output
Expand All @@ -71,7 +71,7 @@ Test connection by the identity
### Example 3: Test query by name
```powershell
$password = ConvertTo-SecureString <YourPassword> -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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-QueryText

```

```output
Expand All @@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-QueryText

```

```output
Expand Down
2 changes: 1 addition & 1 deletion src/MySql/help/Update-AzMySqlFirewallRule.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ These cmdlets update MySql Firewall Rule by identity.
### Example 3: Update MySql Firewall Rule by -ClientIPAddress.
```powershell
$ID = "/subscriptions/<SubscriptionId>/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
Expand Down
2 changes: 1 addition & 1 deletion src/MySql/help/Update-AzMySqlServer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down