Skip to content

az ml component create progress indicator should log to stderr, not stdout #27424

@toera

Description

@toera

Describe the bug

When creating a component using az ml component create, it prints dots .. indicating that the process is running. These are printed to stdout and not stderr. This becomes a problem when using --query argument to capture e.g. the id of the created component --query "id" -o tsv. Since both are using stdout, one gets dtos at the beginning of the id

Related command

az ml component create

Errors

The command does not fail, but any attempt to use the output from --query will

Issue script & Debug output

Not applicable

Expected behavior

The dots indicating progress should log to stderr as all the other logging output.

Environment Summary

azure-cli 2.52.0

core 2.52.0
telemetry 1.1.0

Extensions:
ml 2.19.1

Dependencies:
msal 1.24.0b1
azure-mgmt-resource 23.1.0b2

Python location '/opt/az/bin/python3'
Extensions directory '/home/toera/.azure/cliextensions'

Python (Linux) 3.10.10 (main, Aug 31 2023, 09:13:53) [GCC 11.4.0]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

No response

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botMachine Learningaz mlService AttentionThis issue is responsible by Azure service team.act-codegen-extensibility-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions