Using the Gateway ConnectionMode solved this issue for me. Now my proxy configuration is successfully used, simply by setting: "DirectConnection": false
Injecting the WebProxy was not needed anymore but it´s possible by an own implementation of AddCosmosDB and using a HttpClient or WebProxy as options as described in the other answer.