Skip to content

Commit 2043332

Browse files
issacnitinmsftlawrencegripperbishal-pdMSFT
authored
Fix addSpnToEnvironment casing bug due to difference in casing (#12934) (#12959)
* Fix `addSpnToEnvironment` casing bug #12933 * Update task.json * Update task.loc.json Co-authored-by: Bishal Prasad <[email protected]> Co-authored-by: Nitin Issac Joy <[email protected]> Co-authored-by: Nitin Issac Joy <[email protected]> Co-authored-by: Lawrence Gripper <[email protected]> Co-authored-by: Bishal Prasad <[email protected]>
1 parent 2f534e9 commit 2043332

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Tasks/AzureCLIV2/azureclitask.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class azureclitask {
4141
});
4242

4343
var addSpnToEnvironment: boolean = tl.getBoolInput("addSpnToEnvironment", false);
44-
if (!!addSpnToEnvironment && tl.getEndpointAuthorizationScheme(connectedService, true) == "ServicePrincipal") {
44+
if (!!addSpnToEnvironment && tl.getEndpointAuthorizationScheme(connectedService, true).toLowerCase() == "serviceprincipal") {
4545
exitCode = await tool.exec({
4646
failOnStdErr: false,
4747
ignoreReturnCode: true,

Tasks/AzureCLIV2/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"version": {
2121
"Major": 2,
2222
"Minor": 0,
23-
"Patch": 12
23+
"Patch": 14
2424
},
2525
"minimumAgentVersion": "2.0.0",
2626
"instanceNameFormat": "Azure CLI $(scriptPath)",

Tasks/AzureCLIV2/task.loc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"version": {
2121
"Major": 2,
2222
"Minor": 0,
23-
"Patch": 12
23+
"Patch": 14
2424
},
2525
"minimumAgentVersion": "2.0.0",
2626
"instanceNameFormat": "ms-resource:loc.instanceNameFormat",
@@ -198,4 +198,4 @@
198198
"GlobalCliConfigAgentVersionWarning": "ms-resource:loc.messages.GlobalCliConfigAgentVersionWarning",
199199
"UnacceptedScriptLocationValue": "ms-resource:loc.messages.UnacceptedScriptLocationValue"
200200
}
201-
}
201+
}

0 commit comments

Comments
 (0)