# Deploy an ASP.NET Core application to Azure App Service from the command line
By [Cam Soper](https://twitter.com/camsoper)
This tutorial will show you how to build and deploy an ASP.NET Core application to Microsoft Azure App Service using command line tools. When finished, you'll have a web application built in ASP.NET MVC Core hosted as an Azure App Service Web App. This tutorial is written using Windows command line tools, but can be applied to macOS and Linux environments, as well.
In this tutorial, you learn how to:
> [!div class="checklist"]
> * Create an Azure App Service website using Azure CLI
> * Deploy an ASP.NET Core application to Azure App Service using the Git command line tool
## Prerequisites
To complete this tutorial, you'll need:
* A [Microsoft Azure subscription](https://azure.microsoft.com/free/)
Git prompts for the deployment credentials that were set earlier. After authenticating, the application will be pushed to the remote location, built, and deployed.
Test the application by browsing to `https://<web app name>.azurewebsites.net`. To display the address in the Cloud Shell (or Azure CLI), use the following:
```azurecli-interactive
az webapp show -n $webappname -g DotNetAzureTutorial --query defaultHostName -o tsv
```
![The app running in Azure](publish-to-azure-webapp-using-cli/_static/app_deployed.png)
## Clean up
When finished testing the app and inspecting the code and resources, delete the web app and plan by deleting the resource group.
```azurecli-interactive
az group delete -n DotNetAzureTutorial
```
## Next steps
In this tutorial, you learned how to:
> [!div class="checklist"]
> * Create an Azure App Service website using Azure CLI
> * Deploy an ASP.NET Core application to Azure App Service using the Git command line tool
Next, learn to use the command line to deploy an existing web app that uses CosmosDB.