Skip to content

Commit 2256e90

Browse files
authored
Merge pull request #1122 from anosov1960/master
Fixed parameter validation tag
2 parents 2f01c92 + 03fd9c1 commit 2256e90

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,16 @@ Use the following steps to run the script in a PowerShell session on your PC.
9696
curl https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/manage/azure-arc-enabled-sql-server/modify-license-type/modify-license-type.ps1 -o modify-license-type.ps1
9797
```
9898

99-
1. Use the following commands to install the Az module. For more information, see [Install the Azure Az PowerShell module](https://learn.microsoft.com/powershell/azure/install-az-ps):
99+
1. Make sure the NuGet package provider is installed:
100100

101101
```console
102102
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
103-
Install-packageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
103+
Install-packageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Scope CurrentUser -Force
104+
```
105+
106+
1. Make sure the the Az module is installed. For more information, see [Install the Azure Az PowerShell module](https://learn.microsoft.com/powershell/azure/install-az-ps):
107+
108+
```console
104109
Install-Module Az -Scope CurrentUser -Repository PSGallery -Force
105110
```
106111

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
#
2323

2424
param (
25-
[Parameter (Mandatory= $false)]
25+
[Parameter (Mandatory=$false)]
2626
[string] $SubId,
2727
[Parameter (Mandatory= $false)]
2828
[string] $ResourceGroup,
2929
[Parameter (Mandatory= $false)]
3030
[string] $MachineName,
3131
[Parameter (Mandatory= $true)]
32-
[ValidateSet(PAYG,Paid,"LicenseOnly)]
32+
[ValidateSet("PAYG","Paid","LicenseOnly", IgnoreCase=$false)]
3333
[string] $LicenseType,
3434
[Parameter (Mandatory= $false)]
3535
[boolean] $All=$false

0 commit comments

Comments
 (0)