DEV Community

Cover image for Azure Virtual Machines
Mohamed Yassen
Mohamed Yassen

Posted on

1

Azure Virtual Machines

Azure Virtual machines and what makes it different ?

first we will discuss what is Azure virtual machines and what is consists of :

An Azure virtual machine gives you the flexibility of virtualization without having to buy and maintain the physical hardware that runs it

there are 3 common ways to use Azure Vms :

1.Development and test.
2.Applications in the cloud.
3.extended datacenters.

Azure virtual machines Components :

Image description

  1. Resource Group
  2. Vm size
  3. Network
  4. Images [Ubuntu - Windows]
  5. Virtual Disk [ Storage ]

But How To Create Vms :
there are four ways to create resources in Azure

Image description

  1. Azure Portal
  2. Azure CLI
  3. Azure Powershell[Az Module]
  4. Azure ARM Templates

but Note Azure Portal Cannot create VM Programmatically

Image description

Note the Order of these steps when you create Vms Programmatically

  1. Create Resource Group
  2. create the Virtual Machine
  3. Ensure Remote Access Port is open
  4. retrieve the public IP address

Image description

first let's create a VM using Azure CLI :

Image description

notice the different in creation Vm with windows image and Ubuntu image

Image description

then Enable Remote Access

Image description

Let's Create a VM using Azure Powershell ,
main advantage of powershell [Az Module ]

idea of storing variables in powershell script

Image description

and finally create a VM with ARM Templates

Image description

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay