Implement IaaS solutions, provision vms Flashcards
How to create VM in Portal?
Search for “Virtual Machines” in global search. Click Add in Top Menu
What is meant by Image Size
Select a VM size to support the workload that you want to run. The size that you choose then determines factors such as processing power, memory, and storage capacity. Azure offers a wide variety of sizes to support many types of uses. Azure charges an hourly price based on the VM’s size and operating system.
How are VMs charged
Amount is based on Size, Charged Hourly
What is Azure Spot Instance
Using Spot VMs allows you to take advantage of our unused capacity at a significant cost savings. At any point in time when Azure needs the capacity back, the Azure infrastructure will evict Spot VMs. Therefore, Spot VMs are great for workloads that can handle interruptions like batch processing jobs, dev/test environments, large compute workloads, and more.
What are Inbound port rules
These configuration allows access to VM from public internet.
Security recommendation for VM inbound ports?
Deny all and change source port for required ports, e. g. switch 22 for ssh to something else.
What is Azure Hybrid Benefit
With Azure Hybrid Benefit its possible to save money on new Windows VMs when using existing licenses, up to 49%
What is Port 3389 usually used for
RDP
What is usually the RDP port when unchanged
3389
How to connect to VM via RDP
Via RDP, its possible to download a RDP Client configuration with “Connect” button in Portal. Then use localhost\ and to login
Powershell to Create VM?
New-AzVm `
- ResourceGroupName "myResourceGroup" ` - Name "myVM" ` - Location "East US" ` - VirtualNetworkName "myVnet" ` - SubnetName "mySubnet" ` - SecurityGroupName "myNetworkSecurityGroup" ` - PublicIpAddressName "myPublicIpAddress" ` - OpenPorts 80,3389
How to Create a ResourceGroup with Powershell
New-AzResourceGroup -Name something -Location EastUS
Get public Ip from VM
Get-AzPublicIpAddress -ResourceGroupName “myResourceGroup” | Select “IpAddress”
How to launch the Cloud Shell
Top right corner of portal
Common steps required to conect to a new vm
Create a new Rg if not present, create a new vm and assign it to the desired rg, open the rdp port, get the public ip addres and connect with rdp client