[英]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 .也许你们中的一些人面临类似的任务:我需要使用 powerhsell 连接到 MsolService (Office 365) 模块,一个先决条件是使用证书。
I was able to do it with different Microsoft modules such as AzureAD and ExchangeOnline.我能够使用不同的 Microsoft 模块(例如 AzureAD 和 ExchangeOnline)来实现。 But cannot find a way to do it with MsolService..
但是找不到使用 MsolService 的方法..
For AzureAD andExchangeOnline I use these cmdlets:对于 AzureAD 和 ExchangeOnline,我使用这些 cmdlet:
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?如何使用证书对 MSolService 进行身份验证? :)
:)
The only possible way would be to connect through Microsoft Graph API.唯一可能的方法是通过 Microsoft Graph API 进行连接。 But it seems that it does not work with Connect-MSOnline (even though the documentation says so Connect-MSOnline ).
但它似乎不适用于 Connect-MSOnline (即使文档这么说Connect-MSOnline )。 The following thread suggests that Microsoft is aware of the problem, but is not planning on fixing it: GITHUB Thread .
以下线程表明 Microsoft 已意识到该问题,但不打算修复它: GITHUB Thread 。 I've tried to connect through Graph API and did not get it to work.
我尝试通过 Graph API 进行连接,但没有成功。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.