Share via

Function cannot be generated after changing from a Consumption plan to a Premium plan

研修 太郎 0 Reputation points
2023-10-01T12:40:06.1033333+00:00

I deleted a function resource and changed from a Consumption plan to a Premium plan. However, when I deploy again, the function is not generated; the CLI shows success. What is the solution?

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.


1 answer

Sort by: Most helpful
  1. navba-MSFT 27,625 Reputation points Microsoft Employee Moderator
    2023-10-03T03:50:52.4166667+00:00

    @研修 太郎 Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    I understand that you are facing an issue where a function resource is not generated after changing from a Consumption plan to a Premium plan. The CLI shows success, but the function is not generated.

    Please follow the below action plan for now:

    • Please confirm if you used the az functionapp deployment source config-zip CLI command to perform the deployment. More info about the Zip deployment through CLI. Did you try with most recent CLI version (2.53.0) ?
    • Did you try restarting the function app and check if that makes a difference ?
    • Could you please make sure that the d:\home\data\SitePackages (Windows) or /home/data/SitePackages (Linux) folder has a file named packagename.txt ?This file contains only the name, without any whitespace, of the package file in this folder that's currently running.
    • Open the d:\home\site\wwwroot (Windows) or /home/site/wwwroot and then navigate to your function app folder and check if your updated code is present here. This step is to isolate that you deployment is done successfully.
    • Could you please perform the deployment as mentioned in this document and check if that helps ? If you have tried it already try publishing with func azure functionapp publish command (see here) and check if that makes a difference.
    • Could you please try setting ``SCM_DO_BUILD_DURING_DEPLOYMENTto true`and then deploy using AzCLI and check if that helps.
    • Could you please let me know if you are seeing the error function is unreachable on the function app portal ?

    If none of the above action plan helps, please try creating a new function app and then try deploying to the newly created function app and check if that works.

    **

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    Was this answer helpful?

    0 comments No comments

Your answer

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