# Elasticsearch-rest-high-level-client

**URL:** <https://discuss.elastic.co/t/elasticsearch-rest-high-level-client/112993>\
**Category:** Elasticsearch\
**Created:** [December 22, 2017, 12:05pm UTC](https://discuss.elastic.co/t/elasticsearch-rest-high-level-client/112993 "2017-12-22T12:05:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![arghyachaks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arghyachaks/32/25922_2.png) [@arghyachaks](https://discuss.elastic.co/u/arghyachaks)\
**Post date:** [December 22, 2017, 12:05pm UTC](https://discuss.elastic.co/t/elasticsearch-rest-high-level-client/112993/1 "2017-12-22T12:05:21Z")

</div>

RestHighLevelClient client = new RestHighLevelClient(RestClient  
.builder(new HttpHost("ip", 9200), new HttpHost("ip", 9201)));

This code running properly when I connect it from my local machine to elasticsearch instance running on azure cloud. But it is not working when i create it as a azure function. Any reason? Or any configuration required?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 19, 2018, 12:05pm UTC](https://discuss.elastic.co/t/elasticsearch-rest-high-level-client/112993/2 "2018-01-19T12:05:31Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
