azure-cli-extensions icon indicating copy to clipboard operation
azure-cli-extensions copied to clipboard

What will be the cli equivalent of creating an environment using private pip wheel

Open Aditya369nair opened this issue 1 year ago • 3 comments

  • If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at Azure/azure-cli

Related command

Extension name (the extension in question)

azure ml extension

Description of issue (in as much detail as possible)

How can I achieve the equivalent of the following python code using the environment yaml ?

Environment.add_private_pip_wheel(ws, "./my-custom-module.whl", exist_ok=True)

I create az ml env using a yaml file like with this

$schema: https://azuremlschemas.azureedge.net/latest/environment.schema.json
name: rnair-tips-env-2
image: mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu20.04:20220504.v1
conda_file: conda-yamls/tips.yaml
description: Environment containing TIPS

and tips.yaml looks like this

name: tips-conda
channels:
  - conda-forge
dependencies:
  - python=3.7
  - pip:
    - azureml-defaults
    - https://testml1769050118.blob.core.windows.net/azureml/Environment/azureml-private-packages/tips-1.0.12-py3-none-any.whl

where the whl file is uploaded manually and I would want to automate that process


Aditya369nair avatar Jul 12 '22 20:07 Aditya369nair

route to CXP team

yonzhan avatar Jul 12 '22 23:07 yonzhan

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureml-github.

Issue Details
  • If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at Azure/azure-cli

Related command

Extension name (the extension in question)

azure ml extension

Description of issue (in as much detail as possible)

How can I achieve the equivalent of the following python code using the environment yaml ?

Environment.add_private_pip_wheel(ws, "./my-custom-module.whl", exist_ok=True)

I create az ml env using a yaml file like with this

$schema: https://azuremlschemas.azureedge.net/latest/environment.schema.json
name: rnair-tips-env-2
image: mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu20.04:20220504.v1
conda_file: conda-yamls/tips.yaml
description: Environment containing TIPS

and tips.yaml looks like this

name: tips-conda
channels:
  - conda-forge
dependencies:
  - python=3.7
  - pip:
    - azureml-defaults
    - https://testml1769050118.blob.core.windows.net/azureml/Environment/azureml-private-packages/tips-1.0.12-py3-none-any.whl

where the whl file is uploaded manually and I would want to automate that process


Author: Aditya369nair
Assignees: -
Labels:

question, extension/ml, customer-reported, Machine Learning, Service Attention, Auto-Assign

Milestone: -

ghost avatar Jul 13 '22 02:07 ghost

Tagging @hugoaponte for environments insight

diondrapeck avatar Jul 15 '22 15:07 diondrapeck

I too have the same question. Is there any way we could use the equivalent command using components using yaml then use these components to build pipeline.

whl_url = Environment.add_private_pip_wheel(workspace=ws,file_path = wheel_path1, exist_ok=True)

SouravMalliK avatar Apr 20 '23 10:04 SouravMalliK