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-arc-enabled-sql-server/modify-license-type/README.md
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,14 +48,23 @@ The script accepts the following command line parameters:
48
48
|`-UsePcoreLicense`|`Yes`, `No`|*Optional*. Enables unlimited virtualization license if the value is "Yes" or disables it if the value is "No". To enable, the license type must be "Paid" or "PAYG"|
49
49
|`-EnableESU`|`Yes`, `No`|*Optional*. Enables the ESU policy the value is "Yes" or disables it if the value is "No". To enable, the license type must be "Paid" or "PAYG"|
50
50
|`-Force`||*Optional*. Forces the change of the license type to the specified value on all installed extensions. If `-Force` is not specified, the `-LicenseType` value is set only if undefined. Ignored if `-LicenseType` is not specified|
51
-
|`-ExclusionTags`|`{"name":"value","name":"value"}`|*Optional*. If specified, excludes the resources that have this tag assigned.|
51
+
|`-ExclusionTags`|`{"tag1":"value1","tag2":"value2"}`|*Optional*. If specified, excludes the resources that have these tags assigned.|
52
52
|`-TenantId`|`tenant_id`|*Optional*. If specified, uses this tenant id to log in. Otherwise, the current context is used.|
53
53
|`-ReportOnly`||*Optional*. If true, generates a csv file with the list of resources that are to be modified, but doesn't make the actual change.|
54
54
|`-UseManagedIdentity`||*Optional*. If true, logs in both PowerShell and CLI using managed identity. Required to run the script as a runbook.|
55
55
56
-
<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.
56
+
<sup>1</sup>You can generate a .csv file that lists only specific subscriptions. E.g., the following command will include only production subscriptions (exclude dev/test).
Copy file name to clipboardExpand all lines: samples/manage/azure-hybrid-benefit/modify-license-type/README.md
+23-3Lines changed: 23 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,12 @@ This script is designed to help administrators standardize SQL licensing across
32
32
- SQL Databases & Elastic Pools: Scans individual SQL servers to locate databases and elastic pools with a different license type and updates them accordingly.
33
33
- SQL Instance Pools: Locates instance pools that require an update.
34
34
- DataFactory SSIS Integration Runtimes: Checks for integration runtimes with an out-of-date license setting and updates them.
35
+
36
+
> [!IMPORTANT]
37
+
> - SQL Virtual Machines must be in PowerState = "VM running" to be updated
38
+
> - SQL Managed Instances must be in State = "Ready" to be updated
39
+
> - DataFactory SSIS Integration Runtimes must be in State = "Stopped" to be updated
40
+
35
41
36
42
# Required Permissions
37
43
The automation account needs to have the bellow permissions in order to be able to successfully run the Runbook and update all the SQL Server resources license type:
@@ -42,7 +48,7 @@ The automation account needs to have the bellow permissions in order to be able
A *Subscription Contributor* role has sufficient permissions to mdify any of the above resources.
51
+
A *Subscription Contributor* role has sufficient permissions to modify any of the above resources.
46
52
47
53
# Interactive Reporting
48
54
@@ -59,13 +65,27 @@ The scripts is seamlessly integrated with Azure Authentication. It uses managed
59
65
|:--|:--|:--|
60
66
|`-SubId`|`subscription_id`*or* a file_name|Optional: Subscription id or a .csv file with the list of subscriptions<sup>1</sup>. If not specified all subscriptions will be scanned|
61
67
|`-ResourceGroup`|`resource_group_name`|Optional: Limits the scope to a specific resource group|
62
-
|`-ResourceName`|`resource_name`|Optional: Limits the scope to resouyrces associated with this name. For SQL Server - updates all databases under the specified server. For SQL Managed Instance - updates the specified instance. For SQL VM - updates the specified VM |
68
+
|`-ResourceName`|`resource_name`|Optional: Limits the scope to resources associated with this name. For SQL Server - updates all databases under the specified server. For SQL Managed Instance - updates the specified instance. For SQL VM - updates the specified VM |
63
69
|`-LicenseType`|`LicenseIncluded` (default) or `BasePrice`| Optional: Sets the license type to the specified value |
64
-
|`-ExclusionTags`|`{"name":"value","name":"value"}`|*Optional*. If specified, excludes the resources that have this tag assigned.|
70
+
|`-ExclusionTags`|`{"tag1":"value1","tag2":"value2"}`|*Optional*. If specified, excludes the resources that have these tags assigned.|
65
71
|`-TenantId`|`tenant_id`|*Optional*. If specified, uses this tenant id to log in. Otherwise, the current context is used.|
66
72
|`-ReportOnly`||*Optional*. If true, generates a csv file with the list of resources that are to be modified, but doesn't make the actual change.|
67
73
|`-UseManagedIdentity`||*Optional*. If true, logs in both PowerShell and CLI using managed identity. Required to run the script as a runbook.|
68
74
75
+
<sup>1</sup>You can generate a .csv file that lists only specific subscriptions. E.g., the following command will include only production subscriptions (exclude dev/test).
The script logs key actions to the console and captures error messages using Write-Error. Check the console output for a summary report detailing which resources were updated.
0 commit comments