Connecting With Service Principal Using Connect-MSOLservice
问题 I am trying to use a service principal I have created in AzureAD to connect via a PowerShell script. I created the SP successfully, created the key, and also created a self signed cert and associated it with the account. I know how to use Connect-AzureAD but Connect-MSOLservice doesn't seem to allow me to enter the values needed. I have tried using the standard connection string as you would with Connect-AzureAD but it doesn't seem to take the same input. Connect-MsolService -TenantId "xxxx"