简体   繁体   中英

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

是否可以从ARM模板创建azure函数,并使其从zip文件或存储在azure存储器中的与代码相关的文件中获取代码?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM