# Use Case: Configuring LLM with Azure API Management

**URL:** <https://community.crewai.com/t/use-case-configuring-llm-with-azure-api-management/194>\
**Category:** Crews\
**Tags:** openai, agent, crewai\
**Created:** [September 9, 2024, 4:53pm UTC](https://community.crewai.com/t/use-case-configuring-llm-with-azure-api-management/194 "2024-09-09T16:53:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mariortega](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mariortega](https://community.crewai.com/u/mariortega)\
**Post date:** [September 9, 2024, 4:53pm UTC](https://community.crewai.com/t/use-case-configuring-llm-with-azure-api-management/194/1 "2024-09-09T16:53:18Z")

</div>

Hi,

My current LLM configuration with azure open ai is:

```auto
llm = AzureChatOpenAI(  
    openai_api_version=os.environ.get('AZURE_OPENAI_API_VERSION'),  
    azure_deployment=os.environ.get('azure_deployment'),  
    azure_endpoint=os.environ.get('azure_endpoint'),  
    api_key=openai_api_key,  
    max_tokens=4096,  
    temperature=0.6,  
)  

```

I want to use Azure API Management to orchestrate between multiple Azure endpoints. I have already tested it in Postman, and it works with the API Management URL and the `Ocp-Apim-Subscription-Key` .

I need help configuring this with `crewai` . Pls help me. Thx

---

<div class="post-metadata">

**Author:** ![matt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/matt/32/3_2.png) [@matt](https://community.crewai.com/u/matt)\
**Post date:** [September 10, 2024, 6:11am UTC](https://community.crewai.com/t/use-case-configuring-llm-with-azure-api-management/194/2 "2024-09-10T06:11:34Z")

</div>

Sound like you would need to create a custom tools to connect to azure API
