@@ -20,6 +20,7 @@ Activate Azure Stack: final step in connecting Azure Stack to be able to call ou
2020
2121. PARAMETER azureSubscriptionId
2222
23+
2324Azure subscription ID that you want to register your Azure Stack with. This parameter is mandatory.
2425
2526. PARAMETER azureDirectoryTenantName
@@ -71,8 +72,10 @@ param(
7172 [String ] $azureEnvironment = " AzureCloud" ,
7273
7374 [Parameter (Mandatory = $false )]
74- [String ] $azureResourceManagerEndpoint = " https://management.azure.com"
75-
75+ [String ] $azureResourceManagerEndpoint = " https://management.azure.com" ,
76+
77+ [Parameter (Manadator= $false )]
78+ [Switch ] $reportUsage = $false
7679 )
7780
7881# requires -Module AzureRM .Profile
@@ -145,12 +148,11 @@ Write-Verbose "Register Azure Stack with Azure completed"
145148$activationDataFile = " c:\temp\regOutput2.json"
146149$reg = Get-Content $registrationOutputFile | ConvertFrom-Json
147150$enablesyndication = $true
148- $reportusage = $true
149151$newProps = @ {
150152 ObjectId = $reg.properties.ObjectId
151153 ProvisioningState = $reg.properties.provisioningState
152154 enablesyndication = $enablesyndication
153- reportusage = $reportusage
155+ reportusage = $reportUsage
154156}
155157
156158$reg.properties = $newProps
@@ -166,4 +168,4 @@ $bytes = [System.Text.Encoding]::UTF8.GetBytes($regResponse)
166168$activationCode = [Convert ]::ToBase64String($bytes )
167169
168170.\Activate- Bridge.ps1 - activationCode $activationCode - AzureResourceManagerEndpoint $azureResourceManagerEndpoint - Verbose
169- Write-Verbose " Azure Stack activation completed"
171+ Write-Verbose " Azure Stack activation completed"
0 commit comments