When creating a virtual machine (VM) in Azure, you need to set up several supporting resources to ensure the VM runs properly. Some of these resources are essential, while others are optional but commonly used.
Essential Resources for VMs
To deploy a VM in Azure, you must include the following components:
1. Resource Group
- Every VM must be part of a resource group.
- Resource groups organize and manage all your related resources.
2. Image
- An image is a template that includes an operating system like Windows Server, Linux, or Windows 11.
- This defines what software environment your VM will start with.
3. Storage Account
- A storage account is used to store the virtual hard disk (VHD) for your VM.
- This includes both the OS disk and any temporary storage.
4. Virtual Network and Network Interface
- The VM must connect to a virtual network (VNet) to communicate with other Azure resources.
- A network interface (NIC) is assigned to the VM to handle this connection.
Click here to learn more about networking.
Common but Optional Resources
These are not strictly required but are often added for enhanced functionality:
1. Public IP Address
- Allows the VM to be remotely accessed over the Internet, such as through RDP or SSH.
- Without it, access is limited to internal network communication.
2. Virtual Data Disks
- Additional data disks can be added for storage.
- These disks can store logs, databases, or application files.
Marketplace Images
- Many VMs start with a preconfigured image from the Azure Marketplace.
- These images typically include an OS and sometimes preinstalled applications.
Conclusion
Setting up a VM requires more than just choosing a size or OS. You need to include supporting resources like a resource group, network, and storage to make everything work smoothly. Optional additions like public IPs and data disks help improve accessibility and functionality.
Want to practice setting up a virtual machine in Azure? Start learning in our AZ-900 video course – or click here to go back to the AZ-900 list of requirements.
Please click here to find out more about Microsoft’s AZ-900 exam.