azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

.env file is included when deploying using az webapp up, different from extension behavior

Open chenlomis opened this issue 6 years ago • 2 comments

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug _" Using the extension's version of zip deployment, the .env file is not included in the deploy.

I'm not sure this is the best behavior -- I believe it's one that the user should have a choice over. Regardless, the extension and az webapp up should exhibit the same behavior."_

To Reproduce Steps to reproduce the behavior.

Expected behavior A clear and concise description of what you expected to happen.

Environment summary Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build) / CLI version (az --version) / OS version / Shell Type (e.g. bash, cmd.exe, Bash on Windows)

Additional context "Could look into what the right behavior is here. I think it's best that az webapp excludes the .env file, but then this means we should have a) an easy way to override this behavior (configure what files are skipped) b) the CLI should offer an easy way to apply .env files as app settings (like the VS Code extension does) c) the output should indicate which files are being skipped"

chenlomis avatar Dec 20 '19 18:12 chenlomis

2.0.62 is an older version of Azure-cli we have had several updates/ fixes to az webapp up please use the latest 2.0.77 & let us know if you still see the issue.

panchagnula avatar Dec 26 '19 23:12 panchagnula

This is still an issue...

timja avatar Nov 28 '25 11:11 timja