Deploy an ASP.NET app to an Azure virtual machine
Publish to Azure
Right-click the MyAzureWebApp project in Solution Explorer and select Publish.
Click the arrow on the right side of the Pubilsh page until Microsoft Azure Virtual Machiens appears.
Select Microsoft Azure Virtual Machines then click Browse…
Note: At this point, you will need your VM to be up and running. You can check the status of the VM deployment in the Azure portal.
Select the Azure virtual machine
- If you’re already signed in, select the account containing the desired subscription from the dropdown. Otherwise select Add an account…, and sign in to your Azure subscription.
- Wait for the list of virtual machines to load, then select MyWebAppVM.
- Click OK to continue.
Click Publish to publish the app.
When prompted for username and password, enter the administrator username and password you provided when creating the virtual machine.
If prompted with a certificate error, click Accept.
When publishing completes, Visual Studio will launch the app in your browser.
Congratulations, your ASP.NET web app is running live on an Azure virtual machine.
I ran into an issue I successfully published my app