0
votes

We have a requirement, where we publish a docker image, and a client through an automation workflow tool such as Logic App pull down a docker image and upload it to an Azure App Service instance. Is #2, #3 achievable via some from of RESTFul API?

  1. We publish an image into docker hub

  2. Client runs a process to pull this image down via HTTP request

  3. And upload it to an instance of an Azure app service via HTTP Request

I found this : https://docs.docker.com/registry/spec/api/#pulling-an-image just unsure if this is useful in the sense where we need to deploy this image to an Azure App Service instance and let it run the image?

1

1 Answers

0
votes

You don't download an image from a container registry and upload it to App Service, you need to update the App Service configuration and App Service will pull the image. You can do this using the Azure CLI:

az webapp config container set --docker-custom-image-name org/hello-app:1.0  --name demoforharry --resource-group demo

Documentation

If you want to use HTTP, I guess that you can also use the Azure Management API.

Documentation