adamrushuk / devops-lab

This is the main repo where I test and use DevOps tools and processes.
27 stars 2 forks source link

Troubleshoot Function App not working after initial build #113

Closed adamrushuk closed 3 years ago

adamrushuk commented 4 years ago

The Function App should start straight away, but requires manually restarting app service before it starts working. I thought this was a known issue (terraform-provider-azurerm issue 8546) but it's not quite the same behaviour.

adamrushuk commented 4 years ago

Check passing powershellversion site config: https://github.com/neumanndaniel/armtemplates/blob/aa14255f3a2be592ac60dc8ff541fda7cb10c649/aks-snapshot-backup/aks-snapshot-backup-infrastructure.json#L97

siteConfig.PowerShellVersion is also mentioned here: https://github.com/Azure/Azure-Functions/issues/1503#issuecomment-642271111

adamrushuk commented 4 years ago

Waiting on response from known issue: https://github.com/terraform-providers/terraform-provider-azurerm/issues/8867

adamrushuk commented 3 years ago

Just noticed this started working, despite missing siteConfig.PowerShellVersion. It just seems to takes 10-15 mins to kick in.

adamrushuk commented 3 years ago

This issue is intermittent, so I'm just using PowerShell 6.2 until 7.0 becomes the default