Azure / Azure/Azure-Functions

[CLI] Fix WEBSITE_RUN_FROM_PACKAGE race condition

Open
#1,545 0 comments 0 reactions 1 assignee Claimed by @gzuber View on GitHub
bug CLI
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

Mirror of https://github.com/Azure/azure-cli/issues/12840

We've seen a case where an app is having deployment issues because the `WEBSITE_RUN_FROM_PACKAGE` app setting isn't being set at app creation but rather during deployment. Because of this, the app setting didn't have enough time to propogate to workers. See details from the RCA below:

> This was due to a race condition in adjust WEBSITE_RUN_FROM_PACKAGE property, delay propagation on the settings and deployment. The workaround is to make sure to create the site with WEBSITE_RUN_FROM_PACKAGE set from the beginning (in the case the python CLI).
>
> Timeline:
>
> 2020-03-17 09:43:40 Python CLI update appSetting w/o WEBSITE_RUN_FROM_PACKAGE
>
> 2020-03-17 09:44:20 VSTS update appSetting with WEBSITE_RUN_FROM_PACKAGE (however it is yet to propagate to workers).
>
> 2020-03-17 09:44:21 ZipDeploy without WEBSITE_RUN_FROM_PACKAGE - which will fail the runtime if WEBSITE_RUN_FROM_PACKAGE is set.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.