Skip to content

Commit

Permalink
Remove plain text password
Browse files Browse the repository at this point in the history
  • Loading branch information
msJinLei committed Dec 1, 2020
1 parent c1acffe commit 664091e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/MySql/examples/New-AzMySqlFlexibleServer.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
### Example 1: Create a new MySql flexible server
```powershell
PS C:\> $password = 'Pasword01!!2020' | ConvertTo-SecureString -AsPlainText -Force
PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \
-Location eastus -AdministratorUserName mysqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -Version 12 -StorageInMb 10240
Expand All @@ -12,7 +11,6 @@ mysql-test West US 2 mysqltest 5.7 10240 Standar

### Example 2: Create a new MySql flexible server with default setting
```powershell
PS C:\> $password = 'Pasword01!!2020' | ConvertTo-SecureString -AsPlainText -Force
PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \
-AdministratorUserName mysqltest -AdministratorLoginPassword $password
Expand Down
2 changes: 0 additions & 2 deletions src/MySql/exports/New-AzMySqlFlexibleServer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@ Creates a new MySQL flexible server
.Description
Creates a new server.
.Example
PS C:\> $password = 'Pasword01!!2020' | ConvertTo-SecureString -AsPlainText -Force
PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \
-Location eastus -AdministratorUserName mysqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -Version 12 -StorageInMb 10240
Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier
---- -------- ------------------ ------- ----------------------- ------------ -------------
mysql-test West US 2 mysqltest 5.7 10240 Standard_B1ms Burstable
.Example
PS C:\> $password = 'Pasword01!!2020' | ConvertTo-SecureString -AsPlainText -Force
PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \
-AdministratorUserName mysqltest -AdministratorLoginPassword $password
Expand Down
2 changes: 0 additions & 2 deletions src/MySql/exports/ProxyCmdletDefinitions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4961,15 +4961,13 @@ Creates a new MySQL flexible server
.Description
Creates a new server.
.Example
PS C:\> $password = 'Pasword01!!2020' | ConvertTo-SecureString -AsPlainText -Force
PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \
-Location eastus -AdministratorUserName mysqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -Version 12 -StorageInMb 10240
Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier
---- -------- ------------------ ------- ----------------------- ------------ -------------
mysql-test West US 2 mysqltest 5.7 10240 Standard_B1ms Burstable
.Example
PS C:\> $password = 'Pasword01!!2020' | ConvertTo-SecureString -AsPlainText -Force
PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \
-AdministratorUserName mysqltest -AdministratorLoginPassword $password
Expand Down
2 changes: 0 additions & 2 deletions src/MySql/help/New-AzMySqlFlexibleServer.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ Creates a new server.

### Example 1: Create a new MySql flexible server
```powershell
PS C:\> $password = 'Pasword01!!2020' | ConvertTo-SecureString -AsPlainText -Force
PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \
-Location eastus -AdministratorUserName mysqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -Version 12 -StorageInMb 10240
Expand All @@ -40,7 +39,6 @@ mysql-test West US 2 mysqltest 5.7 10240 Standar

### Example 2: Create a new MySql flexible server with default setting
```powershell
PS C:\> $password = 'Pasword01!!2020' | ConvertTo-SecureString -AsPlainText -Force
PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \
-AdministratorUserName mysqltest -AdministratorLoginPassword $password
Expand Down

0 comments on commit 664091e

Please sign in to comment.