explorer
explorer

Reputation: 769

is it possible to create azure function from ARM template and let it get the code from zip file stored in azure storage?

is it possible to create azure function from ARM template and let it get the code from zip file or Code related files stored in azure storage?

Upvotes: 0

Views: 93

Answers (1)

David Ebbo
David Ebbo

Reputation: 43183

The best way to do this is to use Run-From-Zip. See here for details.

All you have to do in your template is set WEBSITE_RUN_FROM_ZIP to the sas URL of your zip file in Storage.

Do note that the sas needs to remain valid as long as the app needs to run. It is not a 'deploy time only' URL.

Upvotes: 1

Related Questions