Use proxy with SSL in azure SDK

Abhijeet Wagh 5 Reputation points
2023-04-21T04:44:32.25+00:00

We have organizational proxy which also needs to trust SSL certificate in order to access internet. Is there any way in azure SDK to pass SSL certificate for proxy.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,645 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,656 Reputation points Microsoft Employee Moderator
    2023-04-25T14:34:50.4866667+00:00

    @Abhijeet Wagh The Azure SDKs use the default language specific HTTP Clients internally and hence have the same configuration requirements for proxies.

    You can refer to this official documentation which shows the required environment variables to use a proxy.

    As for the SSL Certificate, a similar OS-specific configuration would be needed. For example, in Windows this document outlines the steps required to add a trusted root certificate.

    That being said, it would be better to leverage a free certificate from a service like Let's Encrypt to better secure your proxy if possible.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.