Add option like [--build-remote {false, true}] on az webapp/functionapp deploy command
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
**Related command**
_az webapp deploy --name --resource-group --src-path --type zip_
OR
_az functionapp deploy --name --resource-group --src-path --type zip_
**Is your feature request related to a problem? Please describe.**
I used to use the “az webapp deployment source config-zip” command, but it was deprecated in az cli 2.59.0 (is it still the case? I don't see “warning deprecated” anymore).
This command had the “--build-remote” argument set to “false” by default, so the webapp or functionapp didn't build.
This is exactly what I needed because my app services don't have access to the Internet.
So I can't easily switch to the az webapp/functionapp deploy command, as build cannot be disabled on this one.
**Describe the solution you'd like**
_az webapp deploy --name --resource-group --src-path --type zip **--build-remote false**
az functionapp deploy --name --resource-group --src-path --type zip **--build-remote false**_
**Describe alternatives you've considered**
I always build locally because my app services don't have access to the Internet.
My workaround (which isn't ideal) is to add a “startup_script.sh” script to my zip with this content:
`echo “Bypassing oryx”`
`cp -R /tmp/zipdeploy/extracted/* /home/site/wwwroot/`
Next, I add an environment variable to the app service concerned, like this:
COMMAND = /tmp/zipdeploy/extracted/startup_script.sh
By doing this, it works
Contributor guide
Assessment
This issue has not been assessed yet.