Skip to content

Commit 452cd7d

Browse files
authored
[Monitor] Adjust live test post script (#40319)
Signed-off-by: Paul Van Eck <[email protected]>
1 parent c83193d commit 452cd7d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

sdk/monitor/test-resources-post.ps1

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,7 @@ $audience = $audienceMappings[$environment]
4545

4646
az cloud set --name $environment
4747

48-
if ($CI) {
49-
az login --service-principal -u $TestApplicationId --tenant $tenantId --allow-no-subscriptions --federated-token $env:ARM_OIDC_TOKEN
50-
} else {
51-
az login
52-
}
48+
az login --service-principal -u $TestApplicationId --tenant $tenantId --allow-no-subscriptions --federated-token $env:ARM_OIDC_TOKEN
5349
az account set --subscription $SubscriptionId
5450

5551
$bearerToken = az account get-access-token --output json --resource $audience | ConvertFrom-Json | Select-Object -ExpandProperty accessToken

0 commit comments

Comments
 (0)