This guide demonstrates the step-by-step process of creating a Virtual Machine in Azure.
- Create a resource group.
- Deploy a virtual machine.
- Terminate the resources when finished.
- Open the Azure management console at Azure Portal (sign in with your account).
- In the Azure search bar, search for "Resource groups" and select it.
- Click on Create and fill in the following details:
- Subscription: Free Trial or Pay-As-You-Go.
- Resource group name: Provide a name of your choice.
- Region: Leave as default (e.g., East US).
- Click Review + Create, and then Create.
- In the Azure search bar, search for "Virtual machines" and select it.
- Click on Create and provide the following details:
- Subscription: Free Trial or Pay-As-You-Go.
- Resource Group: Select the one created earlier.
- Virtual Machine Name: Provide a unique name.
- Region: Select East US.
- Availability options: Availability zone.
- Zone: Select Zone 1.
- Image: Ubuntu Server 22.04 LTS.
- Size: Standard_B1s.
- Authentication type: SSH key pair.
- Username: azureuser.
- Public Inbound Ports: Allow selected ports.
- Inbound Port: SSH (22).
- Use default options for:
- Disks, Networking, Management, Monitoring, Advanced, and Tags.
- Click Review + Create, and then Create.
- In the Azure search bar, search for "Resource groups."
- Select the resource group you created.
- Click Delete Resource Group at the top.
- Enter the resource group name to confirm.
- Click Delete.
Ensure to delete the resources after completing the activity to avoid unnecessary charges.