# Cloud Elastic with Azure AD Authentication

**URL:** <https://discuss.elastic.co/t/cloud-elastic-with-azure-ad-authentication/189154>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [July 5, 2019, 6:49pm UTC](https://discuss.elastic.co/t/cloud-elastic-with-azure-ad-authentication/189154 "2019-07-05T18:49:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RxJcollins](https://avatars.discourse-cdn.com/v4/letter/r/b3f665/32.png) [@RxJcollins](https://discuss.elastic.co/u/RxJcollins)\
**Post date:** [July 5, 2019, 6:49pm UTC](https://discuss.elastic.co/t/cloud-elastic-with-azure-ad-authentication/189154/1 "2019-07-05T18:49:00Z")

</div>

I am currently evaluating the Cloud Elastic Service as [cloud.elastic.co](http://cloud.elastic.co) for my organization. I have created my deployment and would like to connect it to our Azure AD to use AD as authentication to Kibana and map Elastic Roles with groups from our AD. How is this done? From the documentation I have seen, edits are needed to config files that to my knowledge I cannot access in the cloud. Is there a guide/walk-through to help me with this?

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [July 8, 2019, 4:55am UTC](https://discuss.elastic.co/t/cloud-elastic-with-azure-ad-authentication/189154/2 "2019-07-08T04:55:52Z")

</div>

That is possible, provided that you're happy to use SAML to connect to Azure AD.

Instructions for SAML in Elastic Cloud are here:

- [https://www.elastic.co/guide/en/cloud/current/ec-securing-clusters-SAML.html](https://www.elastic.co/guide/en/cloud/current/ec-securing-clusters-SAML.html)

We also have a [blog article specifically about SAML with Azure AD](https://www.elastic.co/blog/saml-based-single-sign-on-with-elasticsearch-and-azure-active-directory). It uses an on-premises install of Elasticsearch, but the instructions can adapted for use with Cloud.

---

<div class="post-metadata">

**Author:** ![RxJcollins](https://avatars.discourse-cdn.com/v4/letter/r/b3f665/32.png) [@RxJcollins](https://discuss.elastic.co/u/RxJcollins)\
**Post date:** [July 8, 2019, 2:22pm UTC](https://discuss.elastic.co/t/cloud-elastic-with-azure-ad-authentication/189154/3 "2019-07-08T14:22:49Z")

</div>

This looks good, and I am ok with using SAML in Azure AD if that is needed. I guess my confusion comes with uploading the idp-metadata.xml file to the ES instance. Since it is hosted with Elastic, I'm not sure how to accomplish this step.

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [July 8, 2019, 3:02pm UTC](https://discuss.elastic.co/t/cloud-elastic-with-azure-ad-authentication/189154/4 "2019-07-08T15:02:21Z")

</div>

Hi there,

It is not _required_ to upload the idp-metadata.xml file, you can also reference the URL in the realm configuration and Elasticseach will fetch the metadata from that URL.

See point \<5\> in step 3 in the Instructions that [Tim shared with you above](https://www.elastic.co/guide/en/cloud/current/ec-securing-clusters-SAML.html) for how to reference the metadata by URL, and the ( optional ) step 7 in the same document for how you can upload the metadata document if need be.

---

<div class="post-metadata">

**Author:** ![RxJcollins](https://avatars.discourse-cdn.com/v4/letter/r/b3f665/32.png) [@RxJcollins](https://discuss.elastic.co/u/RxJcollins)\
**Post date:** [July 8, 2019, 3:09pm UTC](https://discuss.elastic.co/t/cloud-elastic-with-azure-ad-authentication/189154/5 "2019-07-08T15:09:08Z")

</div>

Awesome! Thanks, I will take a look at the link provided.

---

<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:** [August 5, 2019, 3:09pm UTC](https://discuss.elastic.co/t/cloud-elastic-with-azure-ad-authentication/189154/6 "2019-08-05T15:09:13Z")

</div>

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