Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
There was a problem hiding this comment.
Pull request overview
This PR fixes a bug where Bicep installation messages were incorrectly printed to stdout during az deployment commands, polluting the command output. The issue occurred because recent print statements were added without checking the stdout parameter.
Key Changes:
- Introduced a helper function
output()withinensure_bicep_installation()that respects thestdoutparameter - Replaced all direct
print()calls with calls to theoutput()helper function - Simplified conditional logic for installation message output
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Please fix CI issues |
az deployment: Fix the issue where the Bicep installation message is printed in the command output
|
@yonzhan I fixed the PR title. Could you trigger a new CI run? |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
Can CI please be run again? It looks the curl command that fetches may have had a transient error. Trying to reproduce the error locally results in a successful response. |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
Any Update on the status of this issue? Pipelines are still broken due to json breaking output. |
|
Also experiencing this issue, can the fix please be merged? |
|
@zhoxing-ms, @yonzhan - could we get a review + merge this if we're happy with the changes? |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
…sage is printed in the command output (#32552)
Related command
az deploymentDescription
Two print statements were recently added to ensure_bicep_installation without checking whether stdout is True, which pollutes the command output.
Fixes #32549.
Testing Guide
Run any
az deploymentcommands with Bicep files.History Notes
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.