Azure Function APP Deployment Issue

Mohanraj Vijayan 5 Reputation points
2024-01-22T12:50:31.0766667+00:00

I am working with the Azure Function app for my client project deliverables. I have been using it multiple times to develop and deploy the code, but ever since for the last two days I could not able to deploy my code in the function app properly. I got an successful message in the local vs code while deployment. Image taken from my vs code: User's image

Issue:

The deployed function app does not get reflected in the azure portal.

Image taken from Azure Portal: User's image

Runtime Stack: Python 3.11 Trigger: ServiceBus Queue Trigger Function Version: Model V2

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
{count} vote

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2024-01-23T12:19:12.18+00:00

    @Mohanraj Vijayan Thank you for contacting us! If you are using VSCode or Visual Studio, please make sure that SCM_DO_BUILD_DURING_DEPLOYMENT is either set to false or removed from the app settings.

    This is because VSCode and Visual Studio use OneDeploy instead of Oryx build, and using both methods simultaneously can cause this issue.

    SCM_DO_BUILD_DURING_DEPLOYMENT works in scenarios where the code is deployed from Azure CLI, Local Git and GitHub repos using the ZIPDEPLOY method.

    You can learn more about it here: https://learn.microsoft.com/en-us/azure/app-service/reference-app-settings?tabs=kudu%2Cdotnet#build-automation

    Also Suggest you please double check this official document if any step missing Quickstart: Create a function in Azure with Python using Visual Studio Code   You may try using- Deploy by using Azure CLI Let us know.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.