You can consult the article that talks about "Connect-AzAccount" and the different ways to use it, I believe that what you are looking for is in this article and should help you enough to proceed:
https://learn.microsoft.com/en-us/powershell/module/az.accounts/connect-azaccount?view=azps-6.6.0
----
--If the answer is helpful, please vote positively and accept the answer--