Skip to content

Commit

Permalink
ensure test principal creation succeeds properly (#20446)
Browse files Browse the repository at this point in the history
Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
  • Loading branch information
2 people authored and iscai-msft committed Sep 29, 2021
1 parent 5e6e38a commit 355ee08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/common/TestResources/New-TestResources.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ try {
$AzureTestPrincipal
} else {
Log "TestApplicationId was not specified; creating a new service principal in subscription '$SubscriptionId'"
$global:AzureTestPrincipal = New-AzADServicePrincipal -Role Owner -Scope "/subscriptions/$SubscriptionId"
$global:AzureTestPrincipal = New-AzADServicePrincipal -Role Owner -Scope "/subscriptions/$SubscriptionId" -DisplayName "test-resources-$($baseName).microsoft.com"
$global:AzureTestSubscription = $SubscriptionId

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

0 comments on commit 355ee08

Please sign in to comment.