Skip to content

Commit e1807b5

Browse files
authored
Fixed integration test setup script error (Azure#15572)
SubscriptionName on the result of `Get-AzureRmSubscription` should have been Name
1 parent 532aa04 commit e1807b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/batch/Microsoft.Azure.Batch/SetupBatchIntegrationTestEnvironment.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ Login-AzureRmAccount
4949
if ([String]::IsNullOrEmpty($subscriptionName))
5050
{
5151
$subs = Get-AzureRmSubscription
52-
$sub = PromptSelect "subscription" $subs { Param($s) $s.SubscriptionName }
53-
$subscriptionName = $sub.SubscriptionName
52+
$sub = PromptSelect "subscription" $subs { Param($s) $s.Name }
53+
$subscriptionName = $sub.Name
5454
}
5555
Select-AzureRmSubscription -SubscriptionName $subscriptionName
5656

0 commit comments

Comments
 (0)