Skip to content

Commit 504fcf0

Browse files
author
Alexander (Sasha) Nosov
committed
Removed hard coded IDs
1 parent ead011f commit 504fcf0

3 files changed

Lines changed: 7 additions & 10 deletions

File tree

samples/manage/azure-arc-enabled-sql-server/modify-license-type/modify-arc-sql-license-type.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
param (
5353
[Parameter (Mandatory=$false)]
54-
[string] $SubId="216b4c73-ee15-4ce0-957b-0a3bc0ec9975",
54+
[string] $SubId,
5555

5656
[Parameter (Mandatory= $false)]
5757
[string] $ResourceGroup,

samples/manage/azure-hybrid-benefit/modify-license-type/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ The scripts is seamlessly integrated with Azure Authentication. It uses managed
5959
|:--|:--|:--|
6060
|`-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|
6161
|`-ResourceGroup` |`resource_group_name`|Optional: Limits the scope to a specific resource group|
62-
|`-ResourceName` |`resource_name`|Optional: Limits the scope to a specific resource |
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 |
6363
|`-LicenseType` | `LicenseIncluded` (default) or `BasePrice` | Optional: Sets the license type to the specified value |
6464
|`-ExclusionTags`| `{"name":"value","name":"value"}` |*Optional*. If specified, excludes the resources that have this tag assigned.|
6565
|`-TenantId`| `tenant_id` |*Optional*. If specified, uses this tenant id to log in. Otherwise, the current context is used.|

samples/manage/azure-hybrid-benefit/modify-license-type/modify-azure-sql-license-type.ps1

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@
2424
.PARAMETER ResourceGroup
2525
Optional. Limit the scope to a specific resource group.
2626
27-
.PARAMETER ResourceName
28-
Optional. Limit the scope to a specific resource.
29-
30-
.PARAMETER LicenseType
27+
.PARAMETER LicenseType
3128
Optional. License type to set. Allowed values: "LicenseIncluded" (default) or "BasePrice".
3229
3330
.PARAMETER ExclusionTags
@@ -51,10 +48,10 @@
5148

5249
param (
5350
[Parameter(Mandatory = $false)]
54-
[string] $SubId="216b4c73-ee15-4ce0-957b-0a3bc0ec9975",
51+
[string] $SubId,
5552

5653
[Parameter(Mandatory = $false)]
57-
[string] $ResourceGroup="PayGoDBTest",
54+
[string] $ResourceGroup,
5855

5956
[Parameter(Mandatory = $false)]
6057
[ValidateSet("LicenseIncluded", "BasePrice", IgnoreCase = $false)]
@@ -64,7 +61,7 @@ param (
6461
[object] $ExclusionTags,
6562

6663
[Parameter (Mandatory= $false)]
67-
[string] $TenantId="bad63398-8c5a-4af1-a2f8-b95c2f57d2b3",
64+
[string] $TenantId,
6865

6966
[Parameter (Mandatory= $false)]
7067
[switch] $ReportOnly,
@@ -73,7 +70,7 @@ param (
7370
[switch] $UseManagedIdentity,
7471

7572
[Parameter (Mandatory= $false)]
76-
[string] $ResourceName="paygodb"
73+
[string] $ResourceName
7774
)
7875

7976

0 commit comments

Comments
 (0)