[Issue] 503 when running up on template with func
I'm seeing this when running up on a template with func in it. I think it is because we try to deploy to a function before the zip deploy endpoint is ready.
I believe we need to have a retry here.
Error: deploying service: deploying service api package: POST https://func-api-rwhhjrs4jzmkg.scm.azurewebsites.net/api/zipdeploy
--------------------------------------------------------------------------------
RESPONSE 503: 503 Site Unavailable
ERROR CODE UNAVAILABLE
--------------------------------------------------------------------------------
The service is unavailable.
--------------------------------------------------------------------------------
Also, since the previous provision step is not truly done. The subsequent deploys are failing since the services are not fully up and running yet.
- It will be good to also look at how we can add post-validations to the provision step and fail provision if the post-validations don't succeed.
- It will be good to also look at other deploy scenarios/hosts which might potentially return 5XX error codes for adding retries.
For such deploy operations, it will be good to have such abstractions as part of the Go SDK itself.
Is the below fix good enough or should we make additional fixes across different deployment types?
- https://github.com/Azure/azure-dev/pull/1051
I have not seen this issue since that fix was implemented. Will close and reopen if we see it again.