Azure / Azure/azure-cli

azure-cli 2.24.0 az container create writes to STDERR

Open
#18,262 10 comments 0 reactions 0 assignees View on GitHub
act-observability-squad Container Instances Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Describe the bug**
We have been deploying to MS-hosted agents without issue. It looks like some of the agents started picking up azure-cli v2.24.0 recently and our deployments now fail only on those agents with: `2021-05-26T21:13:12.9875423Z ##[error]Script failed with error: Error: The process 'D:\a\_temp\azureclitaskscript1622063412668.bat' failed because one or more lines were written to the STDERR stream
2021-05-26T21:13:12.9964337Z [command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd" account clear"` The lines immediately before the error statement are the logs from a call to `az container create` There are no other errors reported in the tasklog. This error does not occur when we are assigned an agent with azure-cli v2.23.0. The error is not fixed by unchecking "fail on standard error" in the Azure CLI task.

**To Reproduce**
Be assigned an agent with v2.24.0 and run the Azure CLI task to create a container

**Expected behavior**
The Azure CLI task should succeed on both v2.23.0 and v2.24.0

**Environment summary**
Microsoft-hosted agent w/ vs2017-win2016 image
Azure pipelines Azure CLI task v1.164.0
azure-cli 2.24.0
core 2.24.0
telemetry 1.0.6
azure-devops 0.18.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.