- Open Visual Studio and then select Create a new project.
- In Create a new project, find and choose ASP.NET Core Web Application for C#, then select Next.
- In Configure your new project, name the application myFirstAzureWebApp, and then select Create.
- For this quickstart, choose the Web Application template. Make sure authentication is set to No Authentication and no other option is selected. Select Create.
You can deploy any type of ASP.NET Core web app to Azure.
- From the Visual Studio menu, select Debug > Start Without Debugging to run the web app locally.
- In Solution Explorer, right-click the myFirstAzureWebApp project and select Publish.
- Choose App Service and then select Publish.
- In App Service Create new, your options depend on whether you’re signed in to Azure already and whether you have a Visual Studio account linked to an Azure account. Select either Add an account or Sign in to sign in to your Azure subscription. If you’re already signed in, select the account you want.
A resource group is a logical container into which Azure resources like web apps, databases, and storage accounts are deployed and managed. For example, you can choose to delete the entire resource group in one simple step later.
- For Resource group, select New.
- In New resource group name, enter myResourceGroup and select OK.
- For the Hosting Plan, select New.
- In the Configure Hosting Plan dialog, enter the values from the following table, and then select OK.
- In Name, enter a unique app name that includes only the valid characters are
-. You can accept the automatically generated unique name. The URL of the web app is
<app_name>is your app name.
- Select Create to start creating the Azure resources.
Once the wizard completes, it publishes the ASP.NET Core web app to Azure, and then launches the app in the default browser.
The app name specified in the App Service Create new page is used as the URL prefix in the format