I’m new to Azure stuff so this question may sound silly.
Can I login to sub-accounts in Azure using the CLI 2.0?
What I mean is to have an equivalent of powershell:
Login-AzureRmAccount -TenantId TENANT-GUID -SubscriptionId SUBSCRIPTION-GUID
I’m trying to automate creation of apps/service principals on our sub accounts. It appears that using PowerShell I can do it without any specific service principles on the sub accounts but when searching for answers about Azure CLI it’s not clear if that is possible.
Thus the question how does one connect through Azure CLI 2.0 to a sub account with –tenant option ?