首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Connect-MsolService :向https://provisioningapi.microsoftonline.com/provisioningwebservice.svc发出HTTP请求时出错

Connect-MsolService :向https://provisioningapi.microsoftonline.com/provisioningwebservice.svc发出HTTP请求时出错
EN

Stack Overflow用户
提问于 2019-01-06 12:15:51
回答 1查看 2.4K关注 0票数 0

为什么我得到这个错误是随机的。,Powershell脚本有时工作正常,有时不工作抛出以下错误。

代码语言:javascript
复制
    Connect-MsolService : An error occurred while making the HTTP request to 
    https://provisioningapi.microsoftonline.com/provisioningwebservice.svc. This could be due to the fact that the server 
    certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the 
    security binding between the client and the server.
At D:\O365License\Licensing.ps1:28 char:1
+ Connect-MsolService -Credential $cred
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (:) [Connect-MsolService], CommunicationException
    + FullyQualifiedErrorId : 
System.ServiceModel.CommunicationException,Microsoft.Online.Administration.Automation.ConnectMsolService  
EN

回答 1

Stack Overflow用户

发布于 2019-01-09 06:20:30

您可能正在遭受与TLS1.2的.NET相关的问题。在运行Connect-MsolService命令之前尝试运行此命令。

代码语言:javascript
复制
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54058583

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档