@@ -36,9 +36,10 @@ param (
3636 [ValidateNotNullOrEmpty ()]
3737 [string ] $TenantId ,
3838
39- [Parameter (ParameterSetName = ' Provisioner' )]
39+ # Azure SDK Developer Playground subscription
40+ [Parameter ()]
4041 [ValidatePattern (' ^[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$' )]
41- [string ] $SubscriptionId ,
42+ [string ] $SubscriptionId = ' faa080af-c1d8-40ad-9cce-e1a450ca5b57 ' ,
4243
4344 [Parameter (ParameterSetName = ' Provisioner' , Mandatory = $true )]
4445 [ValidatePattern (' ^[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$' )]
@@ -141,8 +142,6 @@ try {
141142 $root = [System.IO.Path ]::Combine($repositoryRoot , " sdk" , $ServiceDirectory ) | Resolve-Path
142143 $templateFileName = ' test-resources.json'
143144 $templateFiles = @ ()
144- # Azure SDK Developer Playground
145- $defaultSubscription = " faa080af-c1d8-40ad-9cce-e1a450ca5b57"
146145
147146 Write-Verbose " Checking for '$templateFileName ' files under '$root '"
148147 Get-ChildItem - Path $root - Filter $templateFileName - Recurse | ForEach-Object {
@@ -202,7 +201,7 @@ try {
202201 $context = Get-AzContext ;
203202 if (! $context ) {
204203 Log " You are not logged in; connecting to 'Azure SDK Developer Playground'"
205- $context = (Connect-AzAccount - Subscription $defaultSubscription ).Context
204+ $context = (Connect-AzAccount - Subscription $SubscriptionId ).Context
206205 }
207206
208207 # If no test application ID is specified during an interactive session, create a new service principal.
@@ -583,6 +582,8 @@ is passed to the ARM template as 'tenantId'.
583582Optional subscription ID to use for new resources when logging in as a
584583provisioner. You can also use Set-AzContext if not provisioning.
585584
585+ The default is the Azure SDK Developer Playground subscription ID.
586+
586587. PARAMETER ProvisionerApplicationId
587588The AAD Application ID used to provision test resources when a provisioner is
588589specified.
0 commit comments