79394594

Date: 2025-01-28 16:57:57
Score: 2.5
Natty:
Report link

Building on the answer from @mr3k I was able to us the AzureFunctionApp@2 task to deploy out my flex consumption function app but initially got the "Failed to deploy web package to App Service. Not Found (CODE: 404)" error @Crwydryn had mentioned. To resolve this I needed to make two changes:

  1. Set the following attributes in the AzureFunctionApp@2 task: appType to functionAppLinux and isFlexConsumption to true
  2. Manually create the storage account blob container the function app was looking to deploy to based on the functionAppConfig.deployment.storage.value attribute defined within the function app bicep template.

See https://github.com/Azure-Samples/azure-functions-flex-consumption-samples/blob/main/IaC/bicep/main.bicep for an example of how to setup the storage account blob container for the deployment

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @mr3k
  • User mentioned (0): @Crwydryn
  • Low reputation (1):
Posted by: Beau