You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1
+9-1
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,15 @@ function Login([string]$subscription, [string]$tenant, [string]$clusterGroup, [s
48
48
Write-Host"Logging in to subscription, cluster and container registry"
49
49
az account show -s "$subscription"*>$null
50
50
if ($LASTEXITCODE) {
51
-
RunOrExitOnFailure az login --allow-no-subscriptions --tenant $tenant
51
+
Run az login --allow-no-subscriptions --tenant $tenant
52
+
if ($LASTEXITCODE) {
53
+
throw"You do not have access to the TME subscription. Follow these steps to join the group: https://dev.azure.com/azure-sdk/internal/_wiki/wikis/internal.wiki/206/Subscription-and-Tenant-Usage?anchor=azure-sdk-test-resources-tme"
54
+
}
55
+
}
56
+
57
+
$subscriptions= (Run az account list -o json) |ConvertFrom-Json
58
+
if ($subscriptions.Length-eq0) {
59
+
throw"You do not have access to the TME subscription. Follow these steps to join the group: https://dev.azure.com/azure-sdk/internal/_wiki/wikis/internal.wiki/206/Subscription-and-Tenant-Usage?anchor=azure-sdk-test-resources-tme"
52
60
}
53
61
54
62
# Discover cluster name, only one cluster per group is expected
0 commit comments