TransWikia.com

Azure Functions in VS Code

Stack Overflow Asked by NJE on February 7, 2021

I am trying to run my Python code with Azure Functions using Visual Studio Code. I have run the "Hello World" project with Azure Functions in VS Code, but I am looking for a way to deploy my Python code with Azure Functions. I would really appreciate it if anyone can help me with this issue by introducing a relevant tutorial or sharing some ideas.

2 Answers

This is Azure for Python Developers

and you want to deploy python code to azure, there are three options for you to choose with regard to different code situation:

  1. Deploy a web app with VS Code

  2. Deploy Docker containers to Azure App Service with Visual Studio Code

  3. Create and deploy serverless Azure Functions in Python with Visual Studio Code

Answered by Molly Wang on February 7, 2021

First, you need to create a function app on azure. This is a container to deploy your function.

Then you have two ways to deploy:

1, use VS code:

enter image description here

click the upload button, and then select the folder you want to deploy, the subscription, and select the function app you created just now.

2, use cmd:

Go to the root folder of your function, and run this command:

func azure functionapp publish <FunctionAppName>

The name of function app is absolutely unique, so if you have the authority then your folder will deploy to this function app directly.

Let me know whether this can answer your question.

Answered by Bowman Zhu on February 7, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP