From dcaef1266d46c882395ebb912cd1bc17d0b67902 Mon Sep 17 00:00:00 2001 From: Shiying Chen Date: Tue, 20 Feb 2024 13:33:37 +0800 Subject: [PATCH] Temp change ci test for a bug in azps (#416) --- .github/workflows/azure-login-positive.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/azure-login-positive.yml b/.github/workflows/azure-login-positive.yml index 46550cb0f..651af0cb4 100644 --- a/.github/workflows/azure-login-positive.yml +++ b/.github/workflows/azure-login-positive.yml @@ -219,7 +219,7 @@ jobs: with: azPSVersion: "latest" inlineScript: | - $checkResult = (Get-AzContext -ListAvailable).Count -eq 2 + $checkResult = (Get-AzContext).Environment.Name -eq 'AzureCloud' if(-not $checkResult){ throw "Not all checks passed!" }