Questions tagged [azureml-python-sdk]
The azureml-python-sdk tag has no usage guidance.
azureml-python-sdk
217
questions
10
votes
2
answers
4k
views
How to use azureml.core.runconfig.DockerConfiguration class in azureml.core.Environment or azureml.core.ScriptRunConfig class
I use Microsoft Azure Machine Learning (Azure-ml) to run my (python) experiments.
For specifying the VM and python environment I use:
from azureml.core import Environment
from azureml.core import ...
8
votes
0
answers
1k
views
Getting error Missing required package "azureml-dataset-runtime" in VSCode
I am trying to setup my virtual environment for Azure in VS Code. I have installed the required packages, e.g., azureml-core and azureml-widgets and azureml-dataset-runtime. Both azureml-core and ...
4
votes
2
answers
3k
views
Azure ML workspace: how to publish pipeline to existing endpoint instead of creating new
I'm working on deploying an inference pipeline in Azure machine learning workspace.
I have created a pipeline using a couple of PythonScriptSteps and want to automate the pipeline publishing using CI/...
4
votes
1
answer
2k
views
Write to a mounted filesystem in azureml with azureml-sdk
I am trying to use and AMLCompute instance to preprocess my data. To do so I need to be able to write the processed data back to the datastore. I am taking this approach because the cluster will ...
4
votes
1
answer
222
views
AzureML Batch endpoint invocation: Failed to load dataset definition with azureml-dataprep==4.12.9
Context
Images are uploaded to a folder in Blob storage. An AzureML Data asset is created pointing to that folder, and it is used as data input when invoking a batch inference endpoint in AzureML.
The ...
4
votes
1
answer
309
views
Azure ML: DeploymentIdentityError: Failed to create Kubernetes deployment identity, Reason:RefreshExtensionIdentityNotSet
I'm using Azure Machine Learning v2 SDK to create a model deployment on a kubernetes compute attached to an AML workspace. I'm able to deploy it locally as part of testing before deploying online. ...
4
votes
0
answers
1k
views
Is there a way to create virtual env (and kernel) in Azure ML notebook from a custom registered environment?
I have registered a custom environment (through Environments tab) in Azure Machine Learning (providing Docker file and conda_dependencies.yaml) which I plan to use for training jobs. Now I would like ...
4
votes
1
answer
1k
views
How to store the output dataframe/data of an azure ml job as a data asset
I've been following this "tutorial" by azure on how to create an end to end pipeline in azure: https://github.com/Azure/azureml-examples/blob/main/tutorials/e2e-ds-experience/e2e-ml-workflow....
3
votes
3
answers
3k
views
Retrieving current job for Azure ML v2
Using the v2 Azure ML Python SDK (azure-ai-ml) how do I get an instance of the currently running job?
In v1 (azureml-core) I would do:
from azureml.core import Run
run = Run.get_context()
if ...
3
votes
1
answer
871
views
Azure ML Studio Designer - Is it possible to copy pipeline or pipeline drafts from one workspace to another?
Is it possible to export or copy Pipelines created in Azure ML Studio Designer from one Workspace to another, using the UI, python sdk, and/or azure CLI? If so, how?
EDIT: My Designer does not ...
3
votes
3
answers
2k
views
How to set environment variables in pipelines in Azure ML SDK v2 with jobs.create_or_update()?
I am changing some of our code from Azure ML's SDK v1 to v2.
However, when I invoke pipelines with components via ml_client.jobs.create_or_update, I just can't get them to use my environment variables....
3
votes
2
answers
1k
views
How to import modules in Azure Machine Learning run script?
I am new to Azure Machine Learning and have been struggling with importing modules into my run script. I am using the AzureML SDK for Python. I think I somehow have to append the script location to ...
3
votes
1
answer
453
views
SSL Error accessing azure datastore for Azure Auto ML
I am implementing Azure AutoML dashboard in a docker container.
When I access container without Docker it works. But in docker it gives SSL Error.
def upload_dataset_to_blob(ws):
datastore = ws....
3
votes
0
answers
429
views
Authentication unavailable when i load data_asset with MLTABLE in Azure ML SDK Python2
credential = DeviceCodeCredential()
ml_client = MLClient(credential,
auth_subscription_id,
auth_resource_group,
...
3
votes
0
answers
563
views
How to pass a string through pipeline steps azureml sdk v2?
There is a way to pass a string from a pipeline step to another in azure machine learning sdk v2? E.g.:
def step_1(<inputs>):
var: str = 'lorem ipsum'
<function>
return var # ...