Skip to content

Commit 0154f59

Browse files
author
BradleyBartlett
committed
make registration name mandatory parameter
1 parent 55dd98f commit 0154f59

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Registration/RegisterWithAzure.psm1

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ function Set-AzsRegistration{
164164
[Parameter(Mandatory = $true)]
165165
[String] $PrivilegedEndpoint,
166166

167+
[Parameter(Mandatory = $true)]
168+
[String] $RegistrationName,
169+
167170
[Parameter(Mandatory = $false)]
168171
[ValidateNotNullorEmpty()]
169172
[PSObject] $AzureContext = (Get-AzureRmContext),
@@ -186,10 +189,7 @@ function Set-AzsRegistration{
186189

187190
[Parameter(Mandatory = $false)]
188191
[ValidateNotNull()]
189-
[string] $AgreementNumber,
190-
191-
[Parameter(Mandatory = $false)]
192-
[String] $RegistrationName = "AzureStackRegistration"
192+
[string] $AgreementNumber
193193
)
194194
#requires -Version 4.0
195195
#requires -Modules @{ModuleName = "AzureRM.Profile" ; ModuleVersion = "1.0.4.4"}
@@ -638,6 +638,9 @@ Function Register-AzsEnvironment{
638638
[ValidateNotNull()]
639639
[String] $RegistrationToken,
640640

641+
[Parameter(Mandatory = $true)]
642+
[String] $RegistrationName,
643+
641644
[Parameter(Mandatory = $false)]
642645
[ValidateNotNullorEmpty()]
643646
[PSObject] $AzureContext = (Get-AzureRmContext),
@@ -646,10 +649,7 @@ Function Register-AzsEnvironment{
646649
[String] $ResourceGroupName = 'azurestack',
647650

648651
[Parameter(Mandatory = $false)]
649-
[String] $ResourceGroupLocation = 'westcentralus',
650-
651-
[Parameter(Mandatory = $false)]
652-
[String] $RegistrationName = "AzureStackRegistration"
652+
[String] $ResourceGroupLocation = 'westcentralus'
653653
)
654654
#requires -Version 4.0
655655
#requires -Modules @{ModuleName = "AzureRM.Profile" ; ModuleVersion = "1.0.4.4"}
@@ -864,7 +864,7 @@ Function Get-AzsActivationKey{
864864
param(
865865
[Parameter(Mandatory = $true)]
866866
[ValidateNotNullOrEmpty()]
867-
[String] $RegistrationName = "AzureStackRegistration",
867+
[String] $RegistrationName,
868868

869869
[Parameter(Mandatory = $false)]
870870
[ValidateNotNullorEmpty()]

0 commit comments

Comments
 (0)