0

Having a ASP.Net Core/Angular app I know I can publish to Azure using git like in this link on the ASP.Net Core page in Visual Studio Code

But I can't find any tutorial or directions on how to publish my web app directly to Azure from the cli.

Any help would be appreciated!

1

1 Answer 1

1

You can use this cli (az webapp deployment source ) to publish to Azure web app. see https://learn.microsoft.com/en-us/azure/app-service/scripts/cli-deploy-staging-environment

Sign up to request clarification or add additional context in comments.

4 Comments

Hi looking at the link I see it sets up everything (resource group, app service, etc) I have all that, I just need to publish from VS Code to my web app in Azure. Also what is the purpose of the slot? I know I can publish without a slot, so why is it needed?
Additionally is there a way to publish to Azure from VS Code without having to use az cli?
You can use the Azure App Service extension for Visual Studio Code to publish from VS code. see learn.microsoft.com/en-us/aspnet/core/tutorials/…. The slot is used for staging and test. For example, you can first publish to a stage slot, and if there is no problem, then you can swap two slots (usually from a staging slot into the production slot). For more information, see learn.microsoft.com/en-us/azure/app-service/…
Hi Farid. Thanks for the explanation. Do you know best practices for creating a second db for testing/staging? So if I push to a staging/testing slot I can use a staging/testing db!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.