From 7401caa1b19f086efc3475a5858d4d5542eef70a Mon Sep 17 00:00:00 2001 From: anosov1960 Date: Tue, 2 Feb 2021 22:33:17 -0800 Subject: [PATCH 1/2] Removed extrenious files --- samples/manage/azure-hybrid-benefit/sql-license-usage.csv | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 samples/manage/azure-hybrid-benefit/sql-license-usage.csv diff --git a/samples/manage/azure-hybrid-benefit/sql-license-usage.csv b/samples/manage/azure-hybrid-benefit/sql-license-usage.csv deleted file mode 100644 index 64923cc8..00000000 --- a/samples/manage/azure-hybrid-benefit/sql-license-usage.csv +++ /dev/null @@ -1,3 +0,0 @@ -"Date","Time","Subscription Name","Subscription ID","AHB ECs","PAYG ECs","AHB Std vCores","AHB Ent vCores","PAYG Std vCores","PAYG Ent vCores","HADR Std vCores","HADR Ent vCores","Developer vCores","Express vCores" -"2021-02-02","16:47:24","geodr_m2_365640","10a238d6-a139-46d0-818d-d091394072b6","310","6","66","61","2","1","0","0","0","0" -"2021-02-02","16:50:06","geodr_m2_365640","10a238d6-a139-46d0-818d-d091394072b6","310","6","66","61","2","1","0","0","0","0" From da96d5708031c4e2e69ccbe930279761cd082428 Mon Sep 17 00:00:00 2001 From: anosov1960 Date: Tue, 2 Feb 2021 22:39:47 -0800 Subject: [PATCH 2/2] Minor tweaks --- samples/manage/azure-hybrid-benefit/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/manage/azure-hybrid-benefit/README.md b/samples/manage/azure-hybrid-benefit/README.md index ed5e5381..ab106e45 100644 --- a/samples/manage/azure-hybrid-benefit/README.md +++ b/samples/manage/azure-hybrid-benefit/README.md @@ -78,11 +78,11 @@ The following command will scan the subscription `` and save the results ## Example 3 -The following command will scan all the subscriptions in the account and save the results in a SQL database `` on a SQL Server instance `.database.windows.net`. It will prompt for the database user name and password. +The following command will scan all the subscriptions in the account and save the results in a SQL database `sql-license-usage` on a SQL Server instance `my-westus2-server.database.windows.net`. It will prompt for the database user name and password. ```PowerShell $cred = Get-Credential -.\sql-license-usage.ps1 -Server .database.windows.net -Database -Cred $cred +.\sql-license-usage.ps1 -Server my-westus2-server.database.windows.net -Database sql-license-usage -Cred $cred ``` ## Example 4 @@ -137,7 +137,7 @@ You can track your license utilization over time by running this script on sched 1. Open the [script file](https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/manage/azure-hybrid-benefit/sql-license-usage.ps1), copy the entire file and paste it into the editor, click on *Save* and then click on *Publish*. 1. From the runbook blade, click on the *Link to schedule* button and select an existing schedule or create a new one with the desired frequency of runs and the expiration time. 1. Click on *Parameters and run settings* and specify the following parameters: - - SUBID. Leave it blank if you want to scan all the subscriptions + - SUBID. Leave it blank if you want to scan all the subscriptions in the account. - SERVER. Put in the SQL Server connection endpoint (e.g. my-westus2-sql-server.database.windows.net) - CRED. Put in the name of the credential object you created in Step 2. - DATABASE. Put in the database name where you want to save the license utilization data.