Skip to content

Commit d69b15a

Browse files
authored
Merge pull request #877 from anosov1960/master
Added database password example
2 parents 98acfea + 640bbf2 commit d69b15a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

samples/manage/azure-hybrid-benefit/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ The following command will scan the subscription `<sub_id>` and save the results
8282
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`.
8383

8484
```PowerShell
85-
.\sql-license-usage.ps1 -Server <server_name>.database.windows.net -Database <db_name> -Username <user_name> -Password $pwd
85+
$cred = Get-Credential -credential <user_name>
86+
.\sql-license-usage.ps1 -Server <server_name>.database.windows.net -Database <db_name> -Username $cred.Username -Password $cred.Password
8687
```
8788

8889
# Running the script using Cloud Shell

0 commit comments

Comments
 (0)