Skip to content

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

@Aditya369nair

Description

@Aditya369nair
  • 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


Metadata

Metadata

Labels

Auto-AssignAuto assign by botMachine LearningService AttentionThis issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.extension/mlissue-addressedThis issue is addressed and ready to close.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions