7 Aug 2018 Try the command below to log in as a service principal,it works fine on my side. $ azureAplicationId ="Azure AD Application Id" $azureTenantId= .