Skip to content

Add option like [--build-remote {false, true}] on az webapp/functionapp deploy command #31311

@ju-ge

Description

@ju-ge

Related command
az webapp deploy --name <app_name> --resource-group <rg_name> --src-path <file.zip> --type zip
OR
az functionapp deploy --name <app_name> --resource-group <rg_name> --src-path <file.zip> --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 <app_name> --resource-group <rg_name> --src-path <file.zip> --type zip --build-remote false
az functionapp deploy --name <app_name> --resource-group <rg_name> --src-path <file.zip> --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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions