Need to have Tls12 in order to communicate with the ingestion end point. After setting this it worked
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;