
When creating a Domain Service instance in Azure with a Terraform template I ran into this issue, I fixed it by running the following commands:
on the Azure command line - powershell in the actual Azure portal, I tried using regular PowerShell with one set of annoying errors:
You must call the Connect-AzureAD cmdlet before calling any other cmdlets.
New-AzureAdServicePrincipal : Error occurred while executing NewServicePrincipal
and the commands lines I was running were:
Connect-AzureAD -AccountId <my account>
Select-AzSubscription -Subscription 'subname'
New-AzureAdServicePrincipal -AppId "2565bd9d-da50-47d4-8b85-4c97f669dc36"
The fix:
Connect-AzureAD -accountid <the account id>
New-AzureAdServicePrincipal -AppId "2565bd9d-da50-47d4-8b85-4c97f669dc36"

About the author
I'm technologist in love with almost all things tech from my daily job in the Cloud to my Master's in Cybersecurity and the journey all along.
Comments
Join the discussionNo comments yet. Be the first to comment.





