Azure function - disabled create function button & restricting to view and deploy only one app

Rohith Venu 0 Reputation points
2024-05-03T06:37:35.6666667+00:00

User's image

Hi,

When i created my function app(nodejs Runtime) the +create function UI button is present to create the function and also i created the function from the azure portal and then after deployed my newly created function from vscode to my function app the +create function button is not present in azure portal and also the function created from the azure portal before also gone only the deployed function from vscode is present as shown in attached image.

And also i tried creating new function(nodejs) from vscode and deploy it to my functionapp then also the already existing functions deployed from vscode available in my function app is gone and only the recently deploy function only is there.

Regards,

Rohith V

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,352 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 18,951 Reputation points Microsoft Employee
    2024-05-03T11:19:30.1666667+00:00

    @Rohith Venu Thanks for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.

    When i created my function app(nodejs Runtime) the +create function UI button is present to create the function and also i created the function from the azure portal and then after deployed my newly created function from vscode to my function app the +create function button is not present in azure portal

    When you deploy code to a function app from outside the portal, you can no longer edit any of the code for that function app in the portal. In this case, just continue using local development.

    Also, there were set of development limitation of functions through azure portal which were mentioned in this documentation here.

    also the function created from the azure portal before also gone only the deployed function from vscode is present as shown in attached image.

    This is an expected behavior, except when working on the portal, deployment overwrites by default.

    Azure Functions creates an Azure File Share to store the functions. So, you can configure backups or create snapshots manually for this file share to keep track of changes being made but nothing is done by default. Without either of these enabled, I don't believe there is any way to recover the deleted files.

    Also, the best way to maintain functions deployments in Production is by having all the code in a git repo and configure your function app to deploy on push to that repo.

    For more information, you refer to the best practices in azure functions.

    Hope this helps, let me know if you have any further questions on this.