File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -289,7 +289,8 @@ 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 " - DisplayName " test-resources-$ ( $baseName ) .microsoft.com"
292+ $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"
293294 $global :AzureTestSubscription = $SubscriptionId
294295
295296 Log " Created service principal '$ ( $AzureTestPrincipal.ApplicationId ) '"
You can’t perform that action at this time.
0 commit comments