Azure-docs: Service does not seem to recognize image update

Created on 15 Oct 2018  Â·  7Comments  Â·  Source: MicrosoftDocs/azure-docs

When I update my image, due to changes in my scoring file, I expect the service to automatically update the reference to the newest version of the image. However, when inspecting the service, e.g. by calling service.image.id or looking in the portal, it still refer to the previous image id. I tried manually updating the service by calling service.update(image=updated_image), but then the scoring_uri got broken and only returned None.

Shouldn't the reference from the service to the image update automatically? I have not yet tried, but the reference between the image and the model should also update automatically, right?

Thank you
/Arvid Bäärnhielm


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

assigned-to-author machine-learninsvc product-feedback triaged

All 7 comments

@ArvidBaa Thanks for the feedback! We are currently investigating and will update you shortly.

@raymondlaghaeian Hi, do you have any idea about this? I think this is kind of product suggestion. Thanks.

I have tested a few more times and found that the service.update(image=updated_image) actually do work. If I add a call to service.wait_for_deployment(), the scoring_uri does get updated as expected. I assume that my initial thought that it didn't work was because I didn't wait long enough to see the update finish.

Anyhow. I still think this should happen automatically when updating an image. The service should update its reference without any additional calls.

@ArvidBaa - good to know. Thanks for sharing. We'll see what we can add to the documentation around this. @Blackmist

I can add that I have been in contact with the support department about this and learned that it is by design that the service doesn't update automatically. If the image is used by multiple external services and not, as in my case, only one or few internal services, then it might be a bad idea to force everyone to update their image reference.

However, I could perhaps wish for a parameter for the service that could be set to "automatic" or "manual" update of the image reference. But it might also be better to always update manually, I don't know. I have at least set up my workflow to always update manually as soon as the image is updated.

Thanks for all help with this!

@ArvidBaa Thanks for the feedback. I've updated the document to add an "update" section that talks about using the update method. It should be published later today.

Was this page helpful?
0 / 5 - 0 ratings