> ## Documentation Index
> Fetch the complete documentation index at: https://docs.semgrep.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Microsoft Foundry: Error 429 - Max Tokens Exceeded

If you have chosen [Microsoft Foundry](https://docs.semgrep.dev/semgrep-multimodal/customize.md#azure-openai) as your AI provider for Semgrep Multimodal, and you see **Error 429 - Max Tokens Exceeded**:

**Step 1**

In Microsoft Foundry, go to your resource's deployments and select the deployment that Semgrep uses.

**Step 2**

Edit the deployment and increase its **Tokens per Minute Rate Limit** to the maximum value.

**Step 3**

If the error persists, contact Microsoft Azure support to request a quota upgrade.

If you can't save the endpoint and API key when configuring Semgrep, Semgrep cannot establish a connection with Microsoft Foundry.

1. Ensure that **Resource endpoint** is your Foundry resource's endpoint, such as `https://my-resource.services.ai.azure.com`, or the target URI of a deployment on that resource.
2. Verify that your API key belongs to the same resource.
3. Verify that each **Deployment name** matches a deployment on the resource exactly.
