Skip to content

Commit 0759315

Browse files
author
BradleyBartlett
committed
allow customizing connection options for Get-AzsRegistrationToken
1 parent dc9acd7 commit 0759315

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Registration/RegisterWithAzure.psm1

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,10 @@ Function Get-AzsRegistrationToken{
462462
[String] $TokenOutputFilePath,
463463

464464
[Parameter(Mandatory = $false)]
465-
[Switch] $UsageReportingEnabled = $true,
465+
[Switch] $UsageReportingEnabled = $false,
466+
467+
[Parameter(Mandatory = $false)]
468+
[Switch] $MarketplaceSyndicationEnabled = $false,
466469

467470
[Parameter(Mandatory = $false)]
468471
[ValidateNotNull()]
@@ -504,10 +507,10 @@ Function Get-AzsRegistrationToken{
504507
Log-Output "*********************** Begin log: $($PSCmdlet.MyInvocation.MyCommand.Name) ***********************`r`n"
505508

506509
$params = @{
507-
PrivilegedEndpointCredential = $PrivilegedEndpointCredential
510+
PrivilegedEndpointCredential = $PrivilegedEndpointCredential
508511
PrivilegedEndpoint = $PrivilegedEndpoint
509512
BillingModel = $BillingModel
510-
MarketplaceSyndicationEnabled = $false
513+
MarketplaceSyndicationEnabled = $MarketplaceSyndicationEnabled
511514
UsageReportingEnabled = $UsageReportingEnabled
512515
AgreementNumber = $AgreementNumber
513516
TokenOutputFilePath = $TokenOutputFilePath

0 commit comments

Comments
 (0)