You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yieldexecuteAzCliCommand(`account set --subscription "${subscriptionId}"`);
54
+
isAzCLISuccess=true;
53
55
if(enablePSSession){
54
56
// Attempting Az PS login
55
57
console.log(`Running Azure PS Login`);
@@ -60,12 +62,18 @@ function main() {
60
62
console.log("Login successful.");
61
63
}
62
64
catch(error){
63
-
core.error("Login failed. Please check the credentials. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows");
65
+
if(!isAzCLISuccess){
66
+
core.error("Az CLI Login failed. Please check the credentials. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows");
67
+
}
68
+
else{
69
+
core.error(`Azure PowerShell Login failed. Please check the credentials. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows"`);
awaitexecuteAzCliCommand(`account set --subscription "${subscriptionId}"`);
40
+
isAzCLISuccess=true;
39
41
if(enablePSSession){
40
42
// Attempting Az PS login
41
43
console.log(`Running Azure PS Login`);
@@ -45,11 +47,16 @@ async function main() {
45
47
}
46
48
console.log("Login successful.");
47
49
}catch(error){
48
-
core.error("Login failed. Please check the credentials. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows");
50
+
if(!isAzCLISuccess){
51
+
core.error("Az CLI Login failed. Please check the credentials. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows");
52
+
}else{
53
+
core.error(`Azure PowerShell Login failed. Please check the credentials. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows"`);
0 commit comments