Intention

I silently repeated these words as I sat with a few hundred other meditators in the main hall at Spirit Rock, an insight meditation center in West Marin. I’ve attended weekly women’s groups, several…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Create an Azure VM to host a DotNet Application using Azure CLI

Azure provides a robust infrastructure for hosting and deploying applications, and Azure Virtual Machines (VMs) offer a flexible and scalable solution for running your applications in the cloud. In this article, I will walk you through the step-by-step process of creating an Azure VM to host a .NET application using Azure CLI. By following this guide, you will be able to set up a virtual machine environment that is ready to deploy your .NET application.

Prerequisites:

Step 1: Sign in to Azure CLI
Open your terminal or command prompt and sign in to Azure using the following command and follow the instructions provided in the command prompt to complete the login process.:

Alternatively, you can make use of Cloud shell on your Azure Portal. It is much easier as it has the CLI installed by default.

Step 2: Create a resource group
Choose or create a resource group to contain the Azure resources. Use the following command to create a resource group

Step 3:
Create an Azure VM to host your .NET application, execute the following command:

Step 4:
To establish a remote connection to the virtual machine, use the following command to open the RDP port:

Step 5:
Connect to the virtual machine via RDP Use a Remote Desktop client to connect to the Azure VM using its public IP address or DNS name. Enter the username and password specified during VM creation to establish the connection.

Step 6:
Enable the IIS feature with ASP.NET on a Windows Server 2019 Datacenter Virtual Machine;

Step 7:
Set up an ASP.NET core application on a running Azure VM using IIS Web Server.

create new dotnet webapp
sample .NET application
Edge browser

Congratulations you have learnt how to create an Azure VM to host a .NET application using Azure CLI.

If you found this article helpful, click on the like button or you can drop a comment.

Follow for more interesting stories. Until next time, keep looking up!

Add a comment

Related posts:

Why do we fall into the rewrite trap?

One of my favorite reads is Joel Spolsky’s Things You Should Never Do. He wrote this post almost twenty years ago, outlining the downfall of Netscape and others because they spent years rewriting…

Can Crypto Mining Damage Laptop?

Can Crypto Mining Damage Laptop: Notebooks and mining cryptocurrencies don’t mix. Even a gaming notebook doesn’t have the hardware to run 24/7 as the activity demands. Using it as a mining rig is a…

What is Financials for Dynamics 365?

Microsoft has been pouring a significant amount of resources into its latest ERP product, Dynamics 365, which was released in November of 2016. The product features Financials, Sales, Customer…