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 :
- Resource Group
- Vm size
- Network
- Images [Ubuntu - Windows]
- Virtual Disk [ Storage ]
But How To Create Vms :
there are four ways to create resources in Azure
- Azure Portal
- Azure CLI
- Azure Powershell[Az Module]
- Azure ARM Templates
but Note Azure Portal Cannot create VM Programmatically
Note the Order of these steps when you create Vms Programmatically
- Create Resource Group
- create the Virtual Machine
- Ensure Remote Access Port is open
- retrieve the public IP address
first let's create a VM using Azure CLI :
notice the different in creation Vm with windows image and Ubuntu image
then Enable Remote Access
Let's Create a VM using Azure Powershell ,
main advantage of powershell [Az Module ]
idea of storing variables in powershell script
and finally create a VM with ARM Templates
Top comments (0)