We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e595715 commit 946b290Copy full SHA for 946b290
eng/common/TestResources/New-TestResources.ps1
@@ -289,7 +289,8 @@ try {
289
$AzureTestPrincipal
290
} else {
291
Log "TestApplicationId was not specified; creating a new service principal in subscription '$SubscriptionId'"
292
- $global:AzureTestPrincipal = New-AzADServicePrincipal -Role Owner -Scope "/subscriptions/$SubscriptionId" -DisplayName "test-resources-$($baseName).microsoft.com"
+ $suffix = (New-Guid).ToString('n').Substring(0, 4)
293
+ $global:AzureTestPrincipal = New-AzADServicePrincipal -Role Owner -Scope "/subscriptions/$SubscriptionId" -DisplayName "test-resources-$($baseName)$suffix.microsoft.com"
294
$global:AzureTestSubscription = $SubscriptionId
295
296
Log "Created service principal '$($AzureTestPrincipal.ApplicationId)'"
0 commit comments