# How to indicate "isAzure" when deploying with docker compose?

**URL:** <https://forum.weaviate.io/t/how-to-indicate-isazure-when-deploying-with-docker-compose/812>\
**Category:** Support\
**Tags:** developer-experience\
**Created:** [October 11, 2023, 4:33pm UTC](https://forum.weaviate.io/t/how-to-indicate-isazure-when-deploying-with-docker-compose/812 "2023-10-11T16:33:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![c-lara](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/c-lara/32/560_2.png) [@c-lara](https://forum.weaviate.io/u/c-lara)\
**Post date:** [October 11, 2023, 4:33pm UTC](https://forum.weaviate.io/t/how-to-indicate-isazure-when-deploying-with-docker-compose/812/1 "2023-10-11T16:33:28Z")

</div>

Hi all,

I would like to use Weaviate with Azure Open AI. In my docker-compose file, I specify the “AZURE\_APIKEY: $AZURE\_APIKEY”

And in my schema I have defined DeploymentId and RessourceName

```
            "moduleConfig": {
                "text2vec-openai": {
                    "model": "ada",
                    "resourceName": "XXX",
                    "deploymentId": "text-embedding-ada-002",
                }
            },

```

Yet, when I use this client:

client = weaviate.Client(  
url=weaviate\_url,  
auth\_client\_secret=weaviate.auth.AuthApiKey(api\_key=weaviate\_secret\_key),  
additional\_headers={  
“X-Azure-Api-Key”: azure\_openai\_key,  
},  
)

I get this error: API Key: no api key found neither in request header: X-Openai-Api-Key nor in environment variable under OPENAI\_APIKEY’

How do I need to indicate that I am using azure so that when I make a request with the client to insert data, it is actually recognizing the right key?

I would highly appreciate any help as I got stuck for this on several days now ☹

Many thanks!

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [October 13, 2023, 2:35pm UTC](https://forum.weaviate.io/t/how-to-indicate-isazure-when-deploying-with-docker-compose/812/2 "2023-10-13T14:35:47Z")

</div>

Hi!

I believe this is the same issue?

> [@"Incorrect API key provided" Error when working with Azure OpenAI](https://forum.weaviate.io/t/incorrect-api-key-provided-error-when-working-with-azure-openai/806):
>
> Hi all, I am trying to use Weaviate with Azure Open AI. I am aware that one needs to pass a different header when making a request like “X-Azure-Api-Key”" but I constantly get the error. Either API Key: no api key found When I only pass the azure key like here: client = weaviate.Client( url=weaviate\_url, auth\_client\_secret=weaviate.auth.AuthApiKey(api\_key=weaviate\_secret\_key), additional\_headers={ “X-Azure-Api-Key”: azure\_openai\_key, }, ) or this error: Incorrect API key provided …

Can you produce a python notebook? This has proven to be a great way to find those kind of issues.

Thanks!
