简体   繁体   中英

Is it possible to connect to MsolService (powershell) using self signed certificate?

maybe some of you faced a similar task: I need to connect to MsolService (Office 365) module using powerhsell, one prerequisite is to use certificate .

I was able to do it with different Microsoft modules such as AzureAD and ExchangeOnline. But cannot find a way to do it with MsolService..

For AzureAD andExchangeOnline I use these cmdlets:

Connect-AzureAD –TenantId "XXXXXXXXXXXXXXXXXXX" –ApplicationId "XXXXXXXXXXX" –CertificateThumbprint "XXXXXXXXXXXXXXXXXXXXXXXXXXXX"

Connect-ExchangeOnline -CertificateThumbprint "XXXXXXXXXXXXXXXXXX" -AppId "XXXXXXXXXXXXXXXXXXXXx" -ShowBanner:$false -Organization "XXXXXXXXXXXX"

How can I authenticate to MSolService using cert? :)

The only possible way would be to connect through Microsoft Graph API. But it seems that it does not work with Connect-MSOnline (even though the documentation says so Connect-MSOnline ). The following thread suggests that Microsoft is aware of the problem, but is not planning on fixing it: GITHUB Thread . I've tried to connect through Graph API and did not get it to work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM