This tutorial explains, how to connect azure portal using powershell and connect to azure powershell and powershell command to connect to azure.