Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,335 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am tying to update existing webservice using new Azure ML package
Its failing with error - AttributeError: 'str' object has no attribute 'id'
Here is the script I am using -
ws = Workspace.get(
name=workspace_name,
subscription_id=subscription_id,
resource_group=resource_group,
auth=cli_auth)
model = Model.register(model_path = model_path,
model_name = model_name,
#tags = {"key": "1"},
description = model_description,
workspace = ws)
image_config = ContainerImage.image_configuration(execution_script="score.py",
runtime="python",
conda_file="packagesenv.yml")
image = 'testazureml'
service_name = 'testazureml'
# Retrieve existing service
service = Webservice(name = service_name, workspace = ws)
print(service)
service.update(image,'image.id')
please help
I have been trying with different methods
as - 'id', 'image_id'
its still failing
@Akanksha Kothari Thanks for the question. Please follow the webservice class to update and document to deploy update web service.