Azure Function using Docker image doesn't update with new deployment from VSCode

OD 6 Reputation points
2021-04-12T16:59:33.533+00:00

I have created an Azure Function, using Python and a Docker image. When I make changes to the function and try to deploy those changes to the function, using the "Deploy to Function App..." button in VSCode, the deployment completes with no errors but the function does not change at all. Why is this happening?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,609 questions
1 vote

1 answer

Sort by: Most helpful
  1. Mike Urnun 4,951 Reputation points Microsoft Employee
    2021-04-26T04:50:47.567+00:00

    Hello @OD Sorry for the delay in responses. After making changes in your code, you'll need to re-build your image, re-publish to your registry, and then redeploy again using the CLI command: az functionapp create --name <app_name> --storage-account <storage_name> --resource-group AzureFunctionsContainers-rg --plan myPremiumPlan --runtime <functions runtime stack> --deployment-container-image-name <docker_id>/azurefunctionsimage:v1.0.0

    "Deploy to Function App" will not work in this case because this particular configuration expects to source the new deployments from the (Docker) registry only.

    No comments