-
Notifications
You must be signed in to change notification settings - Fork 2.6k
No Login Output Flag #14156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @bishal-pdMSFT Any thoughts on this? It would be extremely helpful to organizations/enterprises with more than one Azure subscription to limit the login output to a few lines instead of thousands of lines. |
@bishal-pdMSFT any updates one this? Seems like a simple enough fix that would add a value to the login task. |
@doittjdoughty, I will take a look and get back. |
@ashwinsangem Awesome! Thank you! |
@ashwinsangem , Hi 👋 . Sorry to poke, but just wondering if any updates to this. It is also very useful feature to our team. The task works great, but the output is so verbose, it makes reviewing the logs very difficult for all jobs we use this for. We have 100's of subscriptions that spam the logs. Much appreciated. |
@ashwinsangem , |
@ashwinsangem and @bishal-pdMSFT any update on this? This would be a big help to our organization. |
@doittjdoughty, my apologies for the delay. I'll discuss this with our team and prioritize this. |
Awesome! Thank you @ashwinsangem. |
Hi @doittjdoughty @georambo @maxim-nyc3 , Since other customers have not yet reported this issue, and the workaround should work, we won't likely be modifying the task for this. |
Hi @tejasd1990 , it seems i have gotten that to work by setting var AZURE_CORE_OUTPUT=none in our pipeline, then as you said, setting back to empty string in our azure cli script. I have concerns w/ this solution though, as it will be a global var, and suppress output for all azure commands? so now anywhere we want output, we need to override this value? it would be much nicer if we could just suppress the output for the login command, or as a flag of the task instead. I also dont see ability to pass ENV variable just to the azure cli task from the docs: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-cli?view=azure-devops |
@tejasd1990 I completely agree with @georambo. After reviewing the code it is a simple fix to add a var to hold a bool that can then be appended to the end of the login function that would suppress the output. We use a lot of azure cli calls in our pipelines and this means we have to constantly switch back and forth to view content. |
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days |
@bishal-pdMSFT I think this should be reopened and responded to as there have been multiple follow-ups/similar requests (e.g. #15845 and #15970 ) |
I've come across this issue too and found it frustrating. I have attempted to create a change to facilitate this, please contribute as I'm not much of a developer, just a frustrated sysadmin: #16701 Especially looking to validate my understanding on how input variable can be used in private function (loginAzureRM), and writing some tests :) |
Please reopen this issues, there is no harm in reducing the log size. |
azure-pipelines-tasks/Tasks/AzureCLIV2/azureclitask.ts
Line 137 in 37b7bee
We have dozens of pipelines running over 100 Azure subscriptions and each time our pipelines run the AzureCLI@2 task is used to log into Azure all of our subscriptions are logged to the pipeline output. This means that the important pipeline content that we care about usually starts on line 1620. Can the line of code referenced here be updated with "--output none" as an option. Below is the sample step included in our pipelines:
The text was updated successfully, but these errors were encountered: