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>
Hope it helps!
If you want to become Azure solution architect, then join Azure online course today.