Azure / Azure/azure-cli

az webapp deploy --src-path should use ARM Proxy

Open
#29,999 3 comments 0 reactions 1 assignee Assigned to @tulikac View on GitHub
act-observability-squad app-service-deployment Auto-Assign customer-reported Service Attention Web Apps
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**
az webapp deploy --src-path

**Is your feature request related to a problem? Please describe.**
My application infrastructure is secured using virtual networks and private endpoints. Rather than logging into VMs and deploying updates to the app, I should be able to do it from my on-premises machines. But I get an 'Error 403 - Forbidden. The web app you have attempted to reach has blocked your access' message - which is expected. This is the current flow of the cli command

![image](https://github.com/user-attachments/assets/afc7a923-c0b2-45fc-8cb8-781e14f77fcd)

**Describe the solution you'd like**
A way to deploy my application from on-premise machines using az webapp deploy --src-path command. So that it can execute like this

![image](https://github.com/user-attachments/assets/05bff121-f417-4bad-9136-12b3dd4758f0)

**Describe alternatives you've considered**
[This article](https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/use-your-data-securely#configure-gateway-and-client) proposes using VPN which would be my last resort.

**Additional context**
A similar issue has been raised #21168 and was fixed in this PR #26620. Please note that I've tried and cannot use --src-url argument for deployment. Thanks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.