The quickest, easiest way to make and connect to an Azure VM

Connect-AzureRmAccount
$creds = Get-Credential
$vmname = “TestVM"
$vm = New-AzureRmVm -Name $vmname -Credential $creds -Location “AustraliaEast” -Size “Standard_DS3_v2” # obviously change size and location as required
$fqdn = $vm.FullyQualifiedDomainName;
$username = $creds.UserName;
"full address:s:$fqdn” | out-file “~\desktop$vmname.rdp”;
"username:s:$vmname$username” | out-file “~\desktop$vmname.rdp” -Append;