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:
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.
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.
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.
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)
After that, we can open this project in visual studio.
Hope it would be helpful to your question~
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With