infodev
infodev

Reputation: 5235

pull azure function to locally and install npm

I have craeted a new serverless function from the azure portal.

Now I would install a library with npm.

I can access to function using the Azure VS Code extension.

The problem is that I can't run npm install because the function is not in local repository.

How can I pull the azure function?

Upvotes: 2

Views: 932

Answers (2)

Jay Dadhaniya
Jay Dadhaniya

Reputation: 199

You can also create, run and publish Azure function locally in VS CODE using some azure extension Like Azure function, azurite, azure account, azure storage You also need Microsoft azure storage explorer for testing Azure Queue Messages.

Upvotes: 0

Hemant Halwai
Hemant Halwai

Reputation: 446

Pull/clone just for a specific function from Function App is not possible. All functions in a Function App are deployed as a single project. So you will have to download the site content from the Overview section of Function App, after which you can open it in VS Code. enter image description here

Upvotes: 4

Related Questions