Virtual Machines
- This is a basic resource & most widely used resource in cloud compute.
- Virtual Machines offered by Azure are called Azure vms.
- Azure offers VMs in various types and sizes.
- Each type has been optimized to suit to some purpose.
- In Azure we have different vm purchasing options.
- Broadly azure supports windows & linux vms
How Azure Works?
- To Create Virtual Machines Azure uses Hypervisor (HyperV)
- These Hypervisors are available on all physical servers in Azure regions
- Every rack will have a fabric controller.
- The Fabric controllers are orchestrated by an orchestrator, which instructs creation of resources like vm’s
- When an user requests for a vm in that region the request is passed to orchestrator through API, and then Orchestrator will send the request to suitable fabric controller to create a vm on Some physical machine
Terms
- Every physical machines needs some operating system which is installed, in the case of virtual machines we have VM Images. Azure also uses the same terminology, when we create a vm, we will be asked to select Image.
- OS in the Azure VMs are selected by the Image you choose while creating vm.
- Azure Provides VM Images for standard Linux, Windows OS and Azure also has market place where you can find third party images, You can also create your custom vm images.
- Azure Gives options to set credentials to your vm while creating VM.
- Every VM needs a disk and network for communication.
- For Azure free trail accounts we can use 750 hours of linux vm and 750 hours of windows vm of size (B1s) for free (12 months)
Lets create a windows 2016 server vm
- Refer the below images
- To connect to this vm use connect option and download rdp file
- Now lets install IIS Server on Windows VM
- Open Powershell as an admin and execute
Install-WindowsFeature -name Web-Server -IncludeManagementTools
- Navigate to the http://<publicip-windowsvm>
Lets create a ubuntu vm
- Watch Here
- To connect to linux machines we need ssh tools, Please watch here
- Connect to ubuntu instance using ssh and install apache server
sudo apt-get update
sudo apt-get install apache2 -y
- Navigate to the http://<publicip-linuxvm>
- Delete the resource group once you have done with this activity.