0

I have a bicep template that is run from a 'scaffolding' devops pipeline that creates an azure function app. This includes an app setting for WEBSITE_RUN_FROM_PACKAGE set to 1.

I have a separate devops pipeline that runs a dotnet build and deploys the function app's code zip into the newly provisioned function app. My problem is, this fails because it seems the function app is down - due to the fact that WEBSITE_RUN_FROM_PACKAGE is set to 1 and it can't find the code zip file yet.

I've described the problem in more detail here

Anyone else run into this chicken-egg problem?

Rob Bowman
  • 7,632
  • 22
  • 93
  • 200
  • so when you create the function app, you dont wanna set the WEBSITE_RUN_FROM_PACKAGE settings but once code is deployed this should be et and dont change ? – Thomas Aug 30 '23 at 10:41
  • Hi @Thomas yes I think that should work. Just wanting to check my process / strategy for deployment is valid. I've not found anyone else complaining about this online which makes me think I'm doing something wrong – Rob Bowman Aug 30 '23 at 11:29
  • This should help: https://stackoverflow.com/a/72946083/4167200. You won't need to define WEBSITE_RUN_FROM_PACKAGE in your bicep file. – Thomas Aug 30 '23 at 19:15

0 Answers0