question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WebApp:`az webapp deploy --src-url` should use ARM Proxy

See original GitHub issue

The command az webapp deploy has an optional parameter, --src-url, where the user can specify a remote URL for the file they want to deploy to their Web App. If this parameter is used, the CLI should use the ARM proxy API for the deployment request so that if the user has any networking restrictions such as Private Endpoints or ILB ASEs, then this deployment request will go through the management plane and circumvent any networking restrictions. Today the CLI sends the request directly to Kudu, and does not use this ARM proxy.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
jlieowcommented, Sep 26, 2022

Hi,

In case anyone is still struggling with this, I managed to deploy a simple nodejs app to an app service using private endpoints via the workaround az rest command. You may reference this deployment yaml file: https://github.com/jlieow/node-hello/blob/master/.github/workflows/deploy_via_storage_account.yml

The example follows the guide here: https://azure.github.io/AppService/2021/03/01/deploying-to-network-secured-sites-2.html The az rest command was fixed thanks to this stackoverflow thread here: https://stackoverflow.com/questions/71558607/deploy-to-an-azure-web-app-with-a-private-endpoint

1reaction
jlieowcommented, Sep 29, 2022

Hi @mpalmahsf. I have not tried it myself but I don’t see why it wouldn’t work. You could try depositing your artifacts into a location which generates a url download link like Google Drive and run the az run command with that url to see if it works.

I tried googling but I don’t think GitHub provides a url to download artifacts during the build process natively which I think is the reason why the guide uses storage accounts.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deploy to an Azure Web App with a private endpoint
This call will go via ARM proxy and won't be blocked by your private endpoint setup. Save this answer.
Read more >
Azure App Service deploy v4 task - Microsoft Learn
Deploy to Azure App Service a web, mobile, or API app using Docker, Java, .NET, . ... task: AzureRmWebAppDeployment@4 inputs: ConnectionType: 'AzureRM' ...
Read more >
Deploying a secure, resilient site with a custom domain
One or more instances of your Web App in multiple regions with Azure AD ... I will be using Azure CLI throughout the...
Read more >
Building deployment pipelines for Azure Function proxies and ...
The ARM template will resolve the key during deployment for ... to the Logic App backend URL which is determined during deployment time....
Read more >
Getting Started with Azure Static Web Apps - Blog
What does it take to deploy a modern JavaScript web app? Your initial response might be, “Copy the files up to the server...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found