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
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ 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`|`{"tag1":"value1","tag2":"value2"}`|*Optional*. If specified, excludes the resources that have these tags 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.|
Copy file name to clipboardExpand all lines: samples/manage/azure-hybrid-benefit/modify-license-type/README.md
+21-3Lines changed: 21 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ The scripts is seamlessly integrated with Azure Authentication. It uses managed
67
67
|`-ResourceGroup`|`resource_group_name`|Optional: Limits the scope to a specific resource group|
68
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 |
69
69
|`-LicenseType`|`LicenseIncluded` (default) or `BasePrice`| Optional: Sets the license type to the specified value |
70
-
|`-ExclusionTags`|`{"tag1":"value1","tag2":"value2"}`|*Optional*. If specified, excludes the resources that have these tags assigned.|
70
+
|`-ExclusionTags`|`'{"tag1":"value1","tag2":"value2"}'`|*Optional*. If specified, excludes the resources that have these tags assigned.|
71
71
|`-TenantId`|`tenant_id`|*Optional*. If specified, uses this tenant id to log in. Otherwise, the current context is used.|
72
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.|
73
73
|`-UseManagedIdentity`||*Optional*. If true, logs in both PowerShell and CLI using managed identity. Required to run the script as a runbook.|
@@ -119,18 +119,36 @@ The following command will scan all the subscriptions in tenant `<tenant_id>`, a
119
119
120
120
## Example 2
121
121
122
+
The following commands will create a list of production subscriptions in tenant `<tenant_id>`, and generates the list of the resources that would change the license type to "LicenseIncluded".
The following command will scan resource group `<resource_group_name>` in the subscription `<sub_id>` within the current tenant, set the license type value to "LicenseIncluded" on each resource that has a different license type.
The following command will scan all subscriptions in the account using managed identity, set the license type value to "LicenseIncluded" on all resources in tenant <tenant_id> that have a different license type. The resources with the tag `Environment:Dev` will be excluded.
0 commit comments