appservice - check for deployment service availability before zip deployment#30066
Conversation
|
Internal Microsoft review: recommended to add debug log on the polling refresh so we have data to investigate future support cases. Other than this the PR looks good and ready for Hashicorp review. Nice work! |
catriona-m
left a comment
There was a problem hiding this comment.
Hi @ezhong-msft thanks for submitting this. Although there are some existing usages of WaitForStateContext still in the provider, going forward we prefer to use custom pollers instead. Could we rework this pr to use a custom poller? Here is an example of an existing poller for reference. Thanks!
|
@catriona-m Thanks for the review, updated and will keep that in mind for the future. |
catriona-m
left a comment
There was a problem hiding this comment.
Thanks for updating this @ezhong-msft - LGTM!
|
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Community Note
Description
When an appsetting update is made, this causes the app recycle. On the most basic B1 sku plan, I've observed this takes 4-5 mins which exceeds the 4 minute timeout for the zip deployment. Added a simple poll to the deployment service to check availability before starting the zip deployment as recommended by service team (this is similar to what is done in AzCLI).
PR Checklist
For example: “
resource_name_here- description of change e.g. adding propertynew_property_name_here”Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_linux_function_app- check for deployment service availability before zip deployment [azurerm_linux_web_app - Zip application deployment failure due to container restart with application setting update in same terraform apply operation #30014]azurerm_linux_web_app- check for deployment service availability before zip deployment [azurerm_linux_web_app - Zip application deployment failure due to container restart with application setting update in same terraform apply operation #30014]azurerm_windows_function_app- check for deployment service availability before zip deployment [azurerm_linux_web_app - Zip application deployment failure due to container restart with application setting update in same terraform apply operation #30014]azurerm_windows_web_app- check for deployment service availability before zip deployment [azurerm_linux_web_app - Zip application deployment failure due to container restart with application setting update in same terraform apply operation #30014]This is a (please select all that apply):
Related Issue(s)
Fixes #30014
Rollback Plan
If a change needs to be reverted, we will publish an updated version of the provider.
Changes to Security Controls
Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.
Note
If this PR changes meaningfully during the course of review please update the title and description as required.