question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expose environment status in the response of `az ml environment show` command

See original GitHub issue

Related command

az ml environment show

The version of az CLI being used:

% az --version
azure-cli                         2.38.0

core                              2.38.0
telemetry                          1.0.6

Extensions:
storage-preview                    0.8.3
ml                                 2.6.1

Dependencies:
msal                            1.18.0b1
azure-mgmt-resource             21.1.0b1

Is your feature request related to a problem? Please describe.

We use the az ml environment command to automate the management of environments in AzureML in our CI/CD pipeline. When creating a new (version of) environment, the command az ml environment create returns immediately when the environment is created (while the environment is being built), we need a way to pull the environment status to make sure that the environment is successfully built before triggering the next step where the newly version of environment is used. But the az ml environment show command does not expose the status in the response.

Describe the solution you’d like

Expose environment status (e.g., Running, Succeeded, Not built, etc.) in the response of az ml environment show command.

Describe alternatives you’ve considered

N/A

Additional context

N/A

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:3
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Rainfarmcommented, Aug 2, 2022

Thank you @hugoaponte! This is an important feature to fully automate the CI/CD pipeline (covering the whole path from environment building to model training). The only work-around I can think of is to rely on a timeout, which is obviously not nice. Or, do you have suggestions on other possible nicer work-arounds?

Thanks again! Looking forward to this feature!

0reactions
glebrhcommented, Nov 3, 2022

Is there any update on this feature request? As @Rainfarm mentioned this one will enable full automation of CI/CD workflow. Now, if there is any error while environment build, it could be only detected while pipeline execution.

Seems that neither CLI/SDK v2 nor Azure ML REST API do not provide the ability to check build status.

Read more comments on GitHub >

github_iconTop Results From Across the Web

az ml environment - Microsoft Learn
This reference is part of the ml extension for the Azure CLI (version 2.15. 0 or higher). The extension will automatically install the...
Read more >
How to use variables with Azure CLI - Stack Overflow
The easiest way to pass variables to any CLI command is by using environment variables. An environment variable is a variable whose value...
Read more >
Provision a paid org from the command line | Apigee X
Step 1: Define environment variables: Set up gcloud and define ... The response shows all enabled services, including the APIs that you just...
Read more >
8 mins to Production Machine Learning! - Aaron (Ari) Bornstein
Local Environment: You can set up a local environment to deploy and ... Command format: az ml env set -n {your environment name}...
Read more >
Environment | Azure Machine Learning
Directly via the Azure ML Python SDK; From custom Docker image. Azure ML Managed Python Environments#. From pip#. Create Environment from pip requirements.txt ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found