Forum Discussion
rahulc9222
Oct 16, 2018Copper Contributor
Exception: Microsoft.Online.Administration.Automation.MicrosoftOnlineException
Dear All,
I am facing one of a weird issue while connecting Azure AD using Connect-MSolservice. Attaching the PowerShell log for your reference.
Please let me know if anyone else has faced a similar issue.
Thank you,
Rahul
8 Replies
Sort By
You seem to have issues reaching the relevant endpoint (https://provisioningapi.microsoftonline.com/provisioningwebservice.svc ), so make sure your proxy/firewall is not blocking the connection.
- rahulc9222Copper Contributor
Thank you, Vasil!
Well! To check if anything blocking the HTTP traffic, I tried to log in using office 365 services using IE and it's working fine.
I will try to remove and reinstall MSOnline module and try again.
-- Rahul
- rahulc9222Copper Contributor
Thank you!
I finally figured out the issue. I checked the log again and find below error message --
System.Net.WebException - The remote server returned an error: (407) Proxy Authentication Required.
Proxy was rejecting the PowerShell Web request. The issue got fixed after setting the proxy using below commands
1. netsh winhttp show proxy
Check the current proxy setting
netsh winhttp import proxy source=ie
Set the IE as a source for proxy
-- Rahul