Typically, you choose a VM when you need more control over the computing environment than the other choices offer. This article gives you information about what you should consider before you create a VM, how you create it, and how you manage it.

An Azure VM gives you the flexibility of virtualization without having to buy and maintain the physical hardware that runs it. However, you still need to maintain the VM by performing tasks, such as configuring, patching, and installing the software that runs on it.

Azure virtual machines can be used in various ways. Some examples are:

  • Development and test – Azure VMs offer a quick and easy way to create a computer with specific configurations required to code and test an application.
  • Applications in the cloud – Because demand for your application can fluctuate, it might make economic sense to run it on a VM in Azure. You pay for extra VMs when you need them and shut them down when you don’t.
  • Extended data center – Virtual machines in an Azure virtual network can easily be connected to your organization’s network.Parameters to consider while creating a virtual machine

Azure virtual machines can be used in various ways. Some examples are:

  • The names of your application resources
  • The location where the resources are stored
  • The size of the VM
  • The maximum number of VMs that can be created
  • The operating system that the VM runs
  • The configuration of the VM after it starts
  • The related resources that the VM needs.

Microsoft Azure supports

Linux virtual machines

Windows Virtual Machines.

Azure Linux Virtual Machines provides on-demand, high-scale, secure, virtualized infrastructure using Red Hat, Ubuntu, or the Linux distribution of our choice.

Steps to create a VM(using command line interface)

Azure CLI version 2.0.4

  1. Create a resource group

azgroupcreate –name myResourceGroupVM –location eastus

  1. Create virtual machines
  2. azgroupcreate–name myResourceGroupVM –location eastus
  3. Note the public ip- address
  4. Connect using this ip ssh
  5. ssh

Azure virtual machine sizes/images.

General purpose DSv2, Dv2, DS, D, Av2, A0-7 Balanced CPU-to-memory ratio. Ideal for testing and development, small to medium databases, and low to medium traffic web servers.
Compute optimized Fs, F High CPU-to-memory ratio. Good for medium traffic web servers, network appliances, batch processes, and application servers.
Memory optimized GS, G, DSv2, DS High memory-to-core ratio. Great for relational database servers, medium to large caches, and in-memory analytics.
Storage optimized Ls High disk throughput and IO. Ideal for Big Data, SQL, and NoSQL databases.
High performance compute H, A8-11 Our fastest and most powerful CPU virtual machines with optional high-throughput network interfaces (RDMA).

Azure virtual machine extensions

Azure virtual machine extensions are small applications that provide post-deployment configuration and automation tasks on Azure virtual machines. For example, if a virtual machine requires software installation, anti-virus protection, or Docker configuration, a VM extension can be used to complete these tasks. Azure VM extensions can be run by using the Azure CLI, PowerShell, Azure Resource Manager templates, and the Azure portal. Extensions can be bundled with a new virtual machine deployment or run against any existing system.

For example, the VMAccess extension can be used to reset an administrator’s password, or the Custom Script extension can be used to execute a script on the VM.

VM extensions can help you:

  • Modify security and identity features, such as resetting account values.
  • Start, stop, or configure monitoring and diagnostics
  • Reset or install connectivity features, such as RDP and SSH
  • Diagnose, monitor, and manage your VMs

Two Azure VM Agents exist, one for Windows VMs and one for Linux VMs.

If you want a virtual machine instance to use one or more VM extensions, the instance must have an installed VM Agent. A virtual machine image created by using the Azure portal and an image from the Marketplace automatically installs a VM Agent in the creation process. If a virtual machine instance lacks a VM Agent, you can install the VM Agent after the virtual machine instance is created. Or, you can install the agent in a custom VM image that you then upload.

About VM Scale sets

Virtual machine scale sets are an Azure computer source that you can use to deploy and manage a set of identical VMs.With all VMs configured the same, scale sets are designed to support true autos cale,and no pre-provisioning of VMs is required.So it’s easier to build large-scale services that target big compute, big data,and containerized workloads. For applications that need to scale compute resources outstand in, scale operations are implicitly balanced across fault and update domains.For a further introduction to scale sets, refer to the Azure blog announcement.

  •  A way to manage and deploy set of identical VM.
  • Integrate with Azure auto scale
  • Integrate with Azure Load Balancer
  • Scalable compute layer for hyper scale apps

Leave a Reply

Your email address will not be published. Required fields are marked *