Jaumir
Jaumir

Reputation: 41

Creating Azure Functions programmatically

I´m looking at Azure Functions capabilities and the documentation does not say anything about uploading, creating or deleting a Function programmatically, nor anything about listing enabled/disabled Functions. Any ideas on how to do that? The Azure API reference has no section for Azure Functions.

Upvotes: 4

Views: 2788

Answers (2)

joakimgrr
joakimgrr

Reputation: 1

You can create functions from the cli using:

func new

Alternatively you can pass in some parameters (not required):

func new --language JavaScript --template HttpTrigger --name MyFunction

If you don't pass in the parameters, you are prompted with the questions and you can choose the correct options.

I've done deletion by removing the function specific folder and then deploying the application again.

Upvotes: 0

Stefan Crain
Stefan Crain

Reputation: 2060

This functionality exists within the Azure CLI toolset.

Hopefully these two resources should help get started. If you were looking for a publicly facing API, you may be out of luck.

Upvotes: 3

Related Questions