Merge pull request #877 from anosov1960/master

Added database password example
This commit is contained in:
Alexander (Sasha) Nosov
2021-01-14 00:48:42 -08:00
committed by GitHub
@@ -82,7 +82,8 @@ The following command will scan the subscription `<sub_id>` and save the results
The following command will scan all the subscriptions in the account and save the results in a SQL database `<db_name>` on a SQL Server instance `<sql_server_name>.database.windows.net`.
```PowerShell
.\sql-license-usage.ps1 -Server <server_name>.database.windows.net -Database <db_name> -Username <user_name> -Password $pwd
$cred = Get-Credential -credential <user_name>
.\sql-license-usage.ps1 -Server <server_name>.database.windows.net -Database <db_name> -Username $cred.Username -Password $cred.Password
```
# Running the script using Cloud Shell