Forum Discussion
Failed downloading Az and other modules for powershell
- Apr 10, 2020
Hi, FineSL60, esunilkumare
I received the same error message but I managed to solve it by swicthcing to TLS 1.2:
PS C:\> [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Then:
Regards,
Team,
I am also facing the same issue. I have admin privileges and running PS as admin.
PFB the error scenario.
Tried to access the link https://www.powershellgallery.com/api/v2/package/Az.Accounts/1.7.4 via IE on the machine and the package az.accounts.1.7.4.nupkg is getting downloaded without any issue. Hence it seems to be an issue with PS only, as PC can access the link.
Any suggestions would be deeply appreciated.
--
Thanks
Sunil
Hi, FineSL60, esunilkumare
I received the same error message but I managed to solve it by swicthcing to TLS 1.2:
PS C:\> [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Then:
Regards,
- Adam.Cloud CloudApr 15, 2020Copper Contributor
- CyberGieneApr 13, 2020Copper Contributor
Chalaneru saved me a whole bunch of time not having to dig through event logs to figure this out .. thank you so much
- esunilkumareApr 10, 2020Copper Contributor
Chalaneru Thanks for the quick help. This helped me resolve the issue.