Skip to content

Commit d99ff95

Browse files
azure-sdkscbedd
andauthored
ensure test principal creation succeeds properly (#20446)
Co-authored-by: scbedd <[email protected]>
1 parent 09e5067 commit d99ff95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/common/TestResources/New-TestResources.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ try {
289289
$AzureTestPrincipal
290290
} else {
291291
Log "TestApplicationId was not specified; creating a new service principal in subscription '$SubscriptionId'"
292-
$global:AzureTestPrincipal = New-AzADServicePrincipal -Role Owner -Scope "/subscriptions/$SubscriptionId"
292+
$global:AzureTestPrincipal = New-AzADServicePrincipal -Role Owner -Scope "/subscriptions/$SubscriptionId" -DisplayName "test-resources-$($baseName).microsoft.com"
293293
$global:AzureTestSubscription = $SubscriptionId
294294

295295
Log "Created service principal '$($AzureTestPrincipal.ApplicationId)'"

0 commit comments

Comments
 (0)