You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/manage/azure-hybrid-benefit/README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ services: Azure SQL
3
3
platforms: Azure
4
4
author: anosov1960
5
5
ms.author: sashan
6
-
ms.date: 3/9/2021
6
+
ms.date: 3/27/2021
7
7
---
8
8
9
9
# Overview
@@ -16,10 +16,10 @@ This script provides a simple solution to analyze and track the consolidated uti
16
16
|Time|Time of the scan|
17
17
|Subscription name|The name of the subscription|
18
18
|Subscription ID|The unique subscription ID|
19
-
|AHB Std vCores|Total vCores used by General Purpose service tier or SQL Server Standard edition billed with hybrid benefit discount|
20
-
|AHB Ent vCores|Total vCores used by Business Critical service tier or SQL Server Enterprise edition billed with hybrid benefit discount|
21
-
|PAYG Std vCores|Total vCores used by General Purpose service tier or SQL Server Standard editionbilled at full price|
22
-
|PAYG Ent vCores|Total vCores used by Business Critical service tier or SQL Server Enterprise editionbilled at full price|
19
+
|AHB Std vCores|Total vCores used by Standard level SQL services (General Purpose service tier or SQL Server Standard edition) that have Azure hybrid benefit enabled|
20
+
|AHB Ent vCores|Total vCores used by Premium level SQL services (Business Critical service tier or SQL Server Enterprise edition) that have Azure hybrid benefit enabled|
21
+
|PAYG Std vCores|Total vCores used by Standard level SQL services (General Purpose service tier or SQL Server Standard edition) that are billed using the pay-as-you-go method|
22
+
|PAYG Ent vCores|Total vCores used by Premium level SQL services (Business Critical service tier or SQL Server Enterprise edition) that are billed using the pay-as-you-go method|
23
23
|HADR Std vCores|Total vCores used by HADR replicas running SQL Server Standard edition|
24
24
|HADR Ent vCores|Total vCores used by HADR replicas running SQL Server Enterprise edition|
25
25
|Developer vCores|Total vCores used by SQL Server Developer edition|
@@ -42,7 +42,7 @@ The following resources are in scope for the license utilization analysis:
42
42
> - 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.
43
43
> - 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.
44
44
> - You must be at least a *Reader* of each subscription you scan.
45
-
> - To report unregistered vCores, you must be a subscription *Contributor* or *Owner*, otherwise this column will show a zero value.
45
+
> - To report unregistered vCores, you must be a subscription *Contributor* or *Owner*, otherwise this column will show a zero value. Selecting this option will substantially increase the execution time, especially for the subscriptions with large numbers of virtual machines.
46
46
> - The values AHB ECs and PAYG ECs are reserved for the future use and should be ignored
47
47
48
48
# Launching the script
@@ -57,7 +57,7 @@ The script accepts the following command line parameters:
57
57
|-Database|database_name|Optional: database name where data will be saved.<br> Must be accompanied by -Server and -Cred|
58
58
|-Cred|credential_object|Optional: value of type PSCredential to securely pass database user and password|
59
59
|-FilePath|csv_file_name|Optional: filename where the data will be saved in a .csv format. Ignored if database parameters are specified|
60
-
|-ShowUnregistered|\$True or \$False (default)|Optional: causes the script to report the total size of VMs that self-host SQL server instance that is unregistered with the IaaS SQL extension|
60
+
|-ShowUnregistered|\$True or \$False (default)|Optional: causes the script to report the total size of VMs with a self-hosted SQL server instance that is unregistered with the IaaS SQL extension|
61
61
62
62
<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.
Copy file name to clipboardExpand all lines: samples/manage/sql-assessment-api/ruleset.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
{
2
2
"schemaVersion": "1.0",
3
3
"name": "Microsoft ruleset",
4
-
"version": "1.0.304",
4
+
"version": "1.0.305",
5
5
"rules": [
6
6
{
7
7
"id": "AutoCreateStats",
@@ -8871,7 +8871,7 @@
8871
8871
"version": "[11.0,)"
8872
8872
},
8873
8873
"implementation": {
8874
-
"query": "DECLARE @cmd NVARCHAR(max) = N''; SELECT @cmd = @cmd + N' USE ' + QUOTENAME([name]) + N'; SELECT msa.publisher_db ,msa.publication FROM dbo.MSdistribution_history AS msh INNER JOIN dbo.MSrepl_errors AS mse ON mse.id = msh.error_id INNER JOIN dbo.MSdistribution_agents AS msa ON msh.agent_id = msa.id WHERE mse.TIME >= DATEADD(hh, - 24, GETDATE()) GROUP BY msa.publisher_db ,msa.publication;' FROM [master].sys.databases WHERE is_distributor = 1; EXEC (@cmd);"
8874
+
"query": "DECLARE @cmd NVARCHAR(max) = N''; SELECT @cmd = @cmd + N' USE ' + QUOTENAME([name]) + N'; SELECT msa.publisher_db ,msa.publication FROM dbo.MSdistribution_history AS msh INNER JOIN dbo.MSrepl_errors AS mse ON mse.id = msh.error_id INNER JOIN dbo.MSdistribution_agents AS msa ON msh.agent_id = msa.id WHERE mse.time >= DATEADD(hh, - 24, GETDATE()) GROUP BY msa.publisher_db ,msa.publication;' FROM [master].sys.databases WHERE is_distributor = 1; EXEC (@cmd);"
0 commit comments