You can connect to your Azure VM mainly in two ways. One from the cloud shell itself. It is available to the Azure portal. And another way is Putty or command line. The following command can be used in the command line to connect the Azure VM.
$ ssh -i <private key path> azureuser@<Public IP>