# Azure AD authentication for AzureOpenAI

**URL:** <https://forum.weaviate.io/t/azure-ad-authentication-for-azureopenai/381>\
**Category:** Support\
**Tags:** integration\
**Created:** [July 17, 2023, 9:36am UTC](https://forum.weaviate.io/t/azure-ad-authentication-for-azureopenai/381 "2023-07-17T09:36:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![devbeekay](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@devbeekay](https://forum.weaviate.io/u/devbeekay)\
**Post date:** [July 17, 2023, 9:36am UTC](https://forum.weaviate.io/t/azure-ad-authentication-for-azureopenai/381/1 "2023-07-17T09:36:13Z")

</div>

I’m trying to use weaviate client where my Azure Open AI deployment only supports “azure\_ad” deployment. Is there a way to integrate this or is `X-Azure-Api-Key` the only way?

---

<div class="post-metadata">

**Author:** ![jphwang](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/jphwang/32/38_2.png) [@jphwang](https://forum.weaviate.io/u/jphwang)\
**Post date:** [July 17, 2023, 7:51pm UTC](https://forum.weaviate.io/t/azure-ad-authentication-for-azureopenai/381/2 "2023-07-17T19:51:13Z")

</div>

Hi @devbeekay - I think that is the only way, but I’ll pass it onto the team.

---

<div class="post-metadata">

**Author:** ![antas-marcin](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/antas-marcin/32/20_2.png) [@antas-marcin](https://forum.weaviate.io/u/antas-marcin)\
**Post date:** [July 20, 2023, 10:38am UTC](https://forum.weaviate.io/t/azure-ad-authentication-for-azureopenai/381/3 "2023-07-20T10:38:35Z")

</div>

@devbeekay Unfortunately we don’t suport Azure AD authentication.

You can pass your Azure API key using `X-Azure-Api-Key` request header or you can define `azureApiKey` in our [helm charts](https://github.com/weaviate/weaviate-helm/blob/master/weaviate/values.yaml#L615) then our helm chart will create a K8s secret in your cluster and store the `Azure API Key` in it, then this key will be used by default in all queries to Azure.
