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
No output toggle for az login within the AzureCLIV2 task (#16701)
* Update task.json
Added `visibleAzLogin` boolean to enable hiding az login output (which can be verbose at times with all subscriptions)
* Update azureclitask.ts
Added option to both login schemes to suppress the output.
* Update azureclitask.ts
* Update task.json
bumped version
* Update task.loc.json
bumped version
* Update task.json
* Typos and var type fixed
* bumped the version
* tested with bumbed version
* fixed typo on Major version
* fixed typo on Major version
* Bumping AzureCLIV2 version to current sprint
* Bumping AzureCLIV2 patch version
* Bumping AzureCLIV2 patch version
* Bumping AzureCLIV2 patch version
* Bump task version and add node 20 generated files
---------
Co-authored-by: Maxim Zaytsev <[email protected]>
Co-authored-by: Vladyslav Horbachov <[email protected]>
Co-authored-by: Vladyslav Horbachov <[email protected]>
Copy file name to clipboardExpand all lines: Tasks/AzureCLIV2/Strings/resources.resjson/en-US/resources.resjson
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,8 @@
29
29
"loc.input.help.failOnStandardError": "If this is true, this task will fail when any errors are written to the StandardError stream. Unselect the checkbox to ignore standard errors and rely on exit codes to determine the status",
"loc.input.help.powerShellIgnoreLASTEXITCODE": "If this is false, the line `if ((Test-Path -LiteralPath variable:\\LASTEXITCODE)) { exit $LASTEXITCODE }` is appended to the end of your script. This will cause the last exit code from an external command to be propagated as the exit code of powershell. Otherwise the line is not appended to the end of your script.",
32
+
"loc.input.label.visibleAzLogin": "az login output visibility",
33
+
"loc.input.help.visibleAzLogin": "If this is set to true, az login command will output to the task. Setting it to false will suppress the az login output",
32
34
"loc.messages.ScriptReturnCode": "Script exited with return code: %d",
33
35
"loc.messages.ScriptFailed": "Script failed with error: %s",
34
36
"loc.messages.ScriptFailedStdErr": "Script has output to stderr. Failing as failOnStdErr is set to true.",
"helpMarkDown": "If this is false, the line `if ((Test-Path -LiteralPath variable:\\LASTEXITCODE)) { exit $LASTEXITCODE }` is appended to the end of your script. This will cause the last exit code from an external command to be propagated as the exit code of powershell. Otherwise the line is not appended to the end of your script.",
173
173
"groupName": "advanced"
174
-
}
174
+
},
175
+
{
176
+
"name": "visibleAzLogin",
177
+
"type": "boolean",
178
+
"label": "az login output visibility",
179
+
"defaultValue": "true",
180
+
"required": false,
181
+
"helpMarkDown": "If this is set to true, az login command will output to the task. Setting it to false will suppress the az login output",
Copy file name to clipboardExpand all lines: _generated/AzureCLIV2/Strings/resources.resjson/en-US/resources.resjson
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,8 @@
29
29
"loc.input.help.failOnStandardError": "If this is true, this task will fail when any errors are written to the StandardError stream. Unselect the checkbox to ignore standard errors and rely on exit codes to determine the status",
"loc.input.help.powerShellIgnoreLASTEXITCODE": "If this is false, the line `if ((Test-Path -LiteralPath variable:\\LASTEXITCODE)) { exit $LASTEXITCODE }` is appended to the end of your script. This will cause the last exit code from an external command to be propagated as the exit code of powershell. Otherwise the line is not appended to the end of your script.",
32
+
"loc.input.label.visibleAzLogin": "az login output visibility",
33
+
"loc.input.help.visibleAzLogin": "If this is set to true, az login command will output to the task. Setting it to false will suppress the az login output",
32
34
"loc.messages.ScriptReturnCode": "Script exited with return code: %d",
33
35
"loc.messages.ScriptFailed": "Script failed with error: %s",
34
36
"loc.messages.ScriptFailedStdErr": "Script has output to stderr. Failing as failOnStdErr is set to true.",
"helpMarkDown": "If this is false, the line `if ((Test-Path -LiteralPath variable:\\LASTEXITCODE)) { exit $LASTEXITCODE }` is appended to the end of your script. This will cause the last exit code from an external command to be propagated as the exit code of powershell. Otherwise the line is not appended to the end of your script.",
173
173
"groupName": "advanced"
174
+
},
175
+
{
176
+
"name": "visibleAzLogin",
177
+
"type": "boolean",
178
+
"label": "az login output visibility",
179
+
"defaultValue": "true",
180
+
"required": false,
181
+
"helpMarkDown": "If this is set to true, az login command will output to the task. Setting it to false will suppress the az login output",
182
+
"groupName": "advanced"
174
183
}
175
184
],
176
185
"execution": {
@@ -204,7 +213,7 @@
204
213
"ExpiredServicePrincipalMessageWithLink": "Secret expired, update service connection at\u00A0%s See\u00A0https://aka.ms/azdo-rm-workload-identity-conversion to learn more about conversion to secret-less service connections."
Copy file name to clipboardExpand all lines: _generated/AzureCLIV2_Node20/Strings/resources.resjson/en-US/resources.resjson
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,8 @@
29
29
"loc.input.help.failOnStandardError": "If this is true, this task will fail when any errors are written to the StandardError stream. Unselect the checkbox to ignore standard errors and rely on exit codes to determine the status",
"loc.input.help.powerShellIgnoreLASTEXITCODE": "If this is false, the line `if ((Test-Path -LiteralPath variable:\\LASTEXITCODE)) { exit $LASTEXITCODE }` is appended to the end of your script. This will cause the last exit code from an external command to be propagated as the exit code of powershell. Otherwise the line is not appended to the end of your script.",
32
+
"loc.input.label.visibleAzLogin": "az login output visibility",
33
+
"loc.input.help.visibleAzLogin": "If this is set to true, az login command will output to the task. Setting it to false will suppress the az login output",
32
34
"loc.messages.ScriptReturnCode": "Script exited with return code: %d",
33
35
"loc.messages.ScriptFailed": "Script failed with error: %s",
34
36
"loc.messages.ScriptFailedStdErr": "Script has output to stderr. Failing as failOnStdErr is set to true.",
0 commit comments