Added database password example

This commit is contained in:
anosov1960
2021-01-14 00:47:49 -08:00
parent 99ce2c64c4
commit 640bbf20f1
@@ -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