4_Virtual_Machine_Creation - Nirvan-Pandey/Azure_DOC GitHub Wiki
4. Virtual Machine Creation
Step 1: Navigate to Virtual Machines
In the left-hand menu, All Services--> Compute--> Infrastructure as a Service (IaaS)-->Virtual machines.
Click on the "Create" button and select "Azure Virtual Machine".
Step 2: Configure Basic Settings
Basics:
Subscription: Select your subscription.(e.g. Azure subscription 1)
Resource group: Select an existing resource group or create a new one.(e.g., Hub_RG for Bastion server)
Virtual machine name: Enter a name for the VM (e.g., Bastion-Server-HUB-RG).
Region: Select the region where you want to create the VM (e.g., East US).
Availability options: Choose availability options if needed (e.g., Availability Zone).
Image: Select the operating system image (e.g., Ubuntu Server 24.04 LTS).
Size: Select the VM size (e.g., Standard B2s).
Authentication type: Choose SSH public key (for Linux) or Password (for Windows).
Username: Enter a username for the VM.
SSH public key: Paste your SSH public key (for Linux) or enter a password (for Windows).
Public inbound ports: Select "Allow selected ports".
Select inbound ports: Choose the ports you want to open (e.g., SSH (22) for Linux, RDP (3389) for Windows).
Click "Next: Disks".
Step 3: Configure Disks
OS Disk Size: Add any additional data disks if needed.
OS Disk Type: Select the OS disk type (e.g., Standard SSD, Premium SSD).
Click "Next: Networking".
Step 4: Configure Networking
Virtual Network: Select an existing virtual network or create a new one.(e.g., HubVNet)
Subnet: Select an existing subnet or create a new one.(e.g., Hub_PUB_Subnet)
Public IP: Select "Create new" to create a new public IP address.
NIC Network Security Group: Select "Basic" and configure inbound rules if needed.
Click "Next: Management".
Step 5: Configure Management Options
Monitoring: Enable or disable monitoring options such as Boot diagnostics, OS guest diagnostics, etc.
Identity: Configure system-assigned or user-assigned managed identities if needed.
Click "Next: Monitoring"
Step 6: Monitoring
Enable or disable monitoring options such as Boot diagnostics, OS guest diagnostics, etc
Click "Next: Advanced".
Step 7: Configure Advanced Options
Configure any advanced options such as extensions, custom data, etc.
Click "Next: Tags".
Step 8: Configure Tags
Add any tags to organize your resources.
Click "Next: Review + create".
Step 8: Review and Create
Review all the settings and configurations.
Click "Create" to create the VM.
Bastion Server VM is created in Hub Subnet.
Step 9: Application Server Creation
Similarly we will create another VM in private subnet and will disable public ip while creation.
Conclusion
By following these steps, you have successfully created a Virtual Machine in Azure with the necessary configurations, ensuring optimal performance and security. 🚀