Questions tagged [azureml-python-sdk]

188 questions
0
votes
1 answer

azureml mlflow.projects.run raises AttributeError: 'Project' object has no attribute 'conda_env_path'

I've tried running the code on this page through pycharm on my local machine and connecting an an azureml compute cluster. azureml mlflow projects (Preview) I have my MLProject file: name: mlflow_test conda_env: conda.yaml entry_points: testing: …
C.Holmes
  • 13
  • 3
0
votes
1 answer

MLmodel local deployment with azure python sdk

I'm trying to deploy a mlflow model locally using azure sdk for python. I'm following this example https://github.com/Azure/azureml-examples/blob/main/sdk/python/endpoints/online/mlflow/online-endpoints-deploy-mlflow-model.ipynb and this…
0
votes
2 answers

I am getting by policy Error while invoking Azure ML Batch end point via python SDK V2. Can anyone explain how to resolve?

I am trying to invoke an azure ml batch end point vis python sdk v2 job = ml_client.batch_endpoints.invoke( endpoint_name="test-batch-v2", input=my_test_data_input, deployment_name="test-deploy1" ) I am getting below error, can anyone…
0
votes
1 answer

(NoMatchingArtifactsFoundFromJob) No artifacts matching outputs/model.pt found from Job - Azure ML

I am trying to create a regitered Azure ML Model using the the existing best model from the experiment which is run. The documentation I have refered said we can create it via this code. but it returns a error import datetime from…
0
votes
2 answers

AzureML Python SDK v2: How to programmatically stop a compute instance upon creation?

I'm working on a script that creates compute instances if they don't already exist. Upon creating a compute instance, it is in running state. I'd like to be able to immediately stop that compute instance, as I won't be needing it immediately. I want…
0
votes
1 answer

Cant deploy the trained model on Azure ML service

Unable to deploy the trained model using Azure Machine Learning SDK v2 I have created and trained the model whose directory looks something like this - enter image description here The main model script is 'OpenTag2018' and that script is importing…
0
votes
1 answer

How can we upload local files to azure ml studio notebooks using python?

I want to upload the local files to azure-ml notebook tab. In azure-ml GUI we have options to upload files and folders, can we do the same thing using python sdk!
0
votes
1 answer

AzureML not finding DBFS path when registering a model locally

I have a set of ML models that have been tracked and registered using mlflow in Databricks that I want to register on AzureML. Model .pkl files are stored on DBFS and when I run the below code in a Databricks notebook it works as expected. However,…
Kasia Kulma
  • 1,683
  • 1
  • 14
  • 39
0
votes
1 answer

Endpoint deployment state is failing, while deploying a model through AKSCompute/AMLCompute (both)

Here, when I ran the code for deployment using AKSCompute, I am getting an error Tips: You can try get_logs(): https://aka.ms/debugimage#dockerlog or local deployment: https://aka.ms/debugimage#debug-locally to debug if deployment takes longer than…
0
votes
1 answer

Can I use local compute for Azure AutoML Forecasting?

I would like to use my PC to train a model using Azure AutoML Forecasting, rather than paying for a compute cluster. I am using the Azure ML Python SDK v2, and when setting the compute to local, I get an error NoneType' object does not support item…
0
votes
1 answer

How to get all jobs associated with an experiment in Azure ML Python SDK v2?

I am trying to get a list of all the jobs in my workspace belonging to a certain experiment. This is a trivial matter using the v1 of the SDK (relevant documentation). However, I am unable to do that using the v2. More in general, I can't figure out…
0
votes
1 answer

azure datastore access issue

I am new to azure. I have created a azure datastore using the azure blob storage. I have 12000+ image files. I want to use azure ml studio notebooks to perform some image processing on these images. However, I don't know how to access these files…
0
votes
1 answer

How to create data asset programatically (manually in python code) from data store uri in Azure ML studio

I have connected my blob container of Azure Data lake as Data store in Azure ML studio, Also I am able to create a data asset from there on the screen - It reads all the files in different folder in to one file as well. I want to perform the same…
0
votes
0 answers

Why does my Azure ML endpoint give me the error: Content: b"run() missing 1 required positional argument: 'method'

I'm trying to make a request to my Azure ML model via a Azure Notebook, that has deployed on an endpoint. I confirmed the JSON submission via Swagger JSON and my python code looks like this: data = { 'data': [36,0,0,1,1,1], 'method':…
0
votes
0 answers

TypeError: Session.request() got an unexpected keyword argument 'tenant_id' while trying to access keyvault with azureml sdk v2 python

I am trying to access key vault from my python code, using SDK v2. Context: I am trying to access the key vault within a step of a pipeline created with SDK version 2. My code looks like this: This is source for a component: import…