If you’re using PowerShell to access Azure, just run Connect-AzAccount and a login window will pop up where you sign in with your Azure account; once logged in, your session is authenticated and you can start running Azure commands, and if you have multiple subscriptions you can switch using Set-AzContext—pretty straightforward, I usually just run it at the start of every session and it works fine.