Create an ASP.NET Core web app with Visual Studio

0 20
  1. Open Visual Studio and then select Create a new project.
  2. In Create a new project, find and choose ASP.NET Core Web Application for C#, then select Next.
  3. In Configure your new project, name the application myFirstAzureWebApp, and then select Create.
  4. 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.
  5. From the Visual Studio menu, select Debug > Start Without Debugging to run the web app locally.
  6. In Solution Explorer, right-click the myFirstAzureWebApp project and select Publish.
  7. Choose App Service and then select Publish.
  8. 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.
  9. For Resource group, select New.
  10. In New resource group name, enter myResourceGroup and select OK.
  11. For the Hosting Plan, select New.
  12. In the Configure Hosting Plan dialog, enter the values from the following table, and then select OK.
  13. In Name, enter a unique app name that includes only the valid characters are a-zA-Z0-9, and -. You can accept the automatically generated unique name. The URL of the web app is http://<app_name>.azurewebsites.net, where <app_name> is your app name.
  14. 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 http://<app_name>.azurewebsites.net.

Leave A Reply

Your email address will not be published.