Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to edit an existing azure function in vs code

In all tutorials i found so far regarding azure functions with visual studio code, they are all about creating and deplyoing. i'm just wondering, how to open an existing azure function in vs code, modify it and redeploy it. Is that possible?

I can open the function but i can't edit it: enter image description here

like image 577
Mario Semper Avatar asked Nov 12 '19 14:11

Mario Semper


People also ask

How do I edit an Azure function?

The Functions editor built into the Azure portal lets you update your function code and configuration (function. json) files directly in the portal. Select your function app, then under Functions select Functions. Choose your function and select Code + test under Developer.

Can we write Azure functions in VS Code?

Visual Studio Code integrates with Azure Functions Core tools to let you run this project on your local development computer before you publish to Azure. To call your function, press F5 to start the function app project. The Terminal panel displays the output from Core Tools.

How do I change my Azure function runtime in Visual Studio?

In the Azure portal, browse to your function app. Under Settings, choose Configuration. In the Function runtime settings tab, locate the Runtime version. Note the specific runtime version.


1 Answers

You can install the azure functions extension in VS code and then you can login your azure account and open the existing azure function from VS code.

Update:

If we want to develop the code of the existing azure function on local(here the solution if for visual studio), we can download it from azure portal(shown as the screenshot below) enter image description here enter image description here

After that, we can open this project in visual studio.

Hope it would be helpful to your question~

like image 54
Hury Shen Avatar answered Sep 19 '22 01:09

Hury Shen