Skip to content

Commit 81e970d

Browse files
authored
Merge pull request #872 from anosov1960/master
More tweaks
2 parents 77ecbcc + c977e7c commit 81e970d

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

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

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.author: sashan
66
ms.date: 1/11/2021
77
---
88

9-
# Overview
9+
# Overview
1010

1111
This script provides a simple solution to analyze and track the consolidated utilization of SQL Server licenses by all of the SQL resources in a specific subscription or the entire the account. By default, the script scans all subscriptions the user account has access. Alternatively, you can specify a single subscription or a .CSV file with a list of subscription. The usage report includes the following information for each scanned subscription.
1212

@@ -26,20 +26,19 @@ This script provides a simple solution to analyze and track the consolidated uti
2626
|Express vCores|Total vCores used by SQL Server Express edition|
2727

2828
The following resources are in scope for the license utilization analysis:
29-
- Azure SQL databases (vCore-based purchasing model only<sup>1</sup>)
30-
- Azure SQL elastic pools (vCore-based purchasing model only<sup>1</sup>)
29+
- Azure SQL databases (vCore-based purchasing model only)
30+
- Azure SQL elastic pools (vCore-based purchasing model only)
3131
- Azure SQL managed instances
3232
- Azure SQL instance pools
3333
- Azure Data Factory SSIS integration runtimes
3434
- SQL Servers in Azure virtual machines
3535
- SQL Servers in Azure virtual machines hosted in Azure dedicated host
3636

37-
<sup>1</sup>The DTU-based resources are not eligible for Azure Hybrid Benefit or HADR benefit.
38-
3937
>[!NOTE]
4038
> - The usage data is a snapshot at the time of the script execution based on the size of the deployed SQL resources in vCores.
4139
> - For IaaS workloads, such as SQL Server in Virtual Machines or SSIS integration runtimes, each vCPU is counted as one vCore.
4240
> - For PaaS workloads, each vCore of Business Critical service tier is counted as one Enterprise vCore and each vCore of General Purpose service tier is counted as one Standard vCore.
41+
> - In the DTU-based purchasing model, the SQL license cost is built into the individual SKU prices. These resources are not eligible for Azure Hybrid Benefit or HADR benefit, and therefore are not in scope of the tool.
4342
> - The values AHB ECs and PAYG ECs are reserved for the future use and should be ignored
4443
4544
# Launching the script
@@ -48,15 +47,15 @@ The script accepts the following command line parameters:
4847

4948
| **Parameter** &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | **Value** | **Description** |
5049
|:--|:--|:--|
51-
|-SubId|subscription_id *or* a file_name|Accepts a .csv file with the list of subscriptions<sup>2</sup>|
50+
|-SubId|subscription_id *or* a file_name|Accepts a .csv file with the list of subscriptions<sup>1</sup>|
5251
|-UseInRunbook||Must be specified when executed as a Runbook|
5352
|-Server|[protocol:]server[instance_name][,port]|Required to save data to the database|
5453
|-Database|database_name|Required to save data to the database|
5554
|-Username|user_name|Required to save data to the database|
5655
|-Password|password|Required to save data to the database, must be passed as secure string|
5756
|-FilePath|csv_file_name|Required to save data in a .csv format. Ignored if database parameters are specified|
5857

59-
<sup>2</sup>You can create a .csv file using the following command and then edit to remove the subscriptions you don't want to scan.
58+
<sup>1</sup>You can create a .csv file using the following command and then edit to remove the subscriptions you don't want to scan.
6059
```PowerShell
6160
Get-AzSubscription | Export-Csv .\mysubscriptions.csv -NoTypeInformation
6261
```
@@ -110,8 +109,8 @@ Use the following steps to calculate the SQL Server license usage:
110109

111110
# Tracking SQL license usage over time
112111

113-
You can track your license utilization over time by periodically running this script. To schedule automatic execution of the script, create a PowerShell runbook using an Azure Automation account. See the [Runbook tutorial](https://docs.microsoft.com/en-us/azure/automation/learn/automation-tutorial-runbook-textual-powershell) for the details of how to create a PowerShell runbook. Because the script accesses the resources across multiple subscriptions, the runbook must be able to authenticate using the Run As account that was automatically created when you created your Automation account. The logic required for the Runbooks is part of the script.
112+
You can track your license utilization over time by periodically running this script. To schedule automatic execution of the script, create a PowerShell runbook using an Azure Automation account. See the [Runbook tutorial](https://docs.microsoft.com/en-us/azure/automation/learn/automation-tutorial-runbook-textual-powershell) for the details of how to create a PowerShell runbook. Because the script accesses the resources across multiple subscriptions, the runbook must be able to authenticate using the Run As account that was automatically created when you created your Automation account. The logic required for the Runbooks is part of the script.
114113

115114
>[!IMPORTANT]
116115
> - When running the script as a runbook, use a database to ensure that the results can be analyzed outside of the runbook.
117-
> - You must specify a *-UseInRunbook* switch to ensure that the runbook is authenticated using the Run As account.
116+
> - You must specify a *-UseInRunbook* switch to ensure that the runbook is authenticated using the Run As account.

0 commit comments

Comments
 (0)