Skip to content

Commit ab90282

Browse files
author
BradleyBartlett
committed
make secondary directory mandatory
1 parent 169c835 commit ab90282

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Registration/RegisterWithAzure.psm1

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ function Set-AzsRegistrationSubscription{
389389
[Parameter(Mandatory = $true)]
390390
[String] $JeaComputerName,
391391

392-
[Parameter(Mandatory = $false)]
392+
[Parameter(Mandatory = $true)]
393393
[String] $NewAzureDirectoryTenantName,
394394

395395
[Parameter(Mandatory = $false)]
@@ -474,10 +474,7 @@ function Set-AzsRegistrationSubscription{
474474
Log-Output "Remove-AzsRegistration params: `r`n $(ConvertTo-Json $params)"
475475
Remove-AzSRegistration @params
476476
$params["AzureSubscriptionId"] = $NewAzureSubscriptionId
477-
if($NewAzureDirectoryTenantName)
478-
{
479-
$params["AzureDirectoryTenantName"] = $NewAzureDirectoryTenantName
480-
}
477+
$params["AzureDirectoryTenantName"] = $NewAzureDirectoryTenantName
481478
Log-Output "Add-AzsRegistration params: `r`n $(ConvertTo-Json $params)"
482479
RegistrationWorker @params
483480

0 commit comments

Comments
 (0)