Question: how to login azure subscription using powershell?
Answer: To sign in interactively, use the Connect-AzAccount cmdlet. When run from PowerShell version 6 and higher, this cmdlet presents a token string. To sign in, copy this string and paste it into microsoft.com/devicelogin in a web browser. Your PowerShell session will be authenticated to connect to Azure.