Virtual Machine components
- Image for a virtual machine is essential for hard disk contents
- CPU and RAM are provided from the size selected
- Disk size and type can be selected during vm creation
- VM will get a network interface and an option to select public ip if required

- Credentials:
- Linux:
- Username and Password
- Username and key
- Windows:
- username and Password
- Linux:
- Key based authentication: Cloud providers generate key pairs and give us the private key or we can import the public key from your system into cloud

EC2 instance (Virtual Machine) creation in AWS
- In AWS by default there is a network available.
- For screenshots refer classroom
- AWS supports only key based authentication by default.
- AWS Free tier for ec2
- 750 hours of t2.micro or t3.micro
Linux VM
- Create the ec2 instance as discussed in the class

- SSH Command
- password based authentication:
ssh username@ipaddress - key based authentication
ssh -i <path to pem> username@ipaddress


- password based authentication:
- To delete the instance

Windows VM
- Windows instances use remote desktop connections
- AWS allows us to generate password based on pem file
- Command to connect to windows
mstsc -v <ip address>
Azure VM Creation
- In Azure by default there is a no network.
- For screenshots refer classroom
- Azure supports both password and key based authentication.
- Azure allows to set username while creation
- Azure Free tier for VM

- Azure resource have to be part of a resource group. This helps in managing multiple resources.
- For creational steps refer classroom video
- Windows VM Quick Start
-
Linux VM Quick Start


- Exercise: Create a free tier windows vm in Azure
