Azure OpenAI 403 content violation

Jonathan McLean 40 Reputation points Microsoft Employee
2026-04-30T19:34:57.4266667+00:00

I am getting this error when trying to send anything to all Azure OpenAI models on one endpoint.

Forbidden: Your resource has been temporarily blocked because we detected behavior that may violate our content policy. For more details on Azure OpenAI service content policy, please visit https://aka.ms/aoaicodeofconduct

I do not believe I am violating the Code of Conduct. How do I find out what is causing this to be disabled?

Azure OpenAI in Foundry Models

Answer accepted by question author
Anshika Varshney 15,625 Reputation points Microsoft External Staff Moderator
2026-05-07T04:20:53.84+00:00

Hi Jonathan,

I understand how confusing this situation can be, especially when your prompts appear safe but the whole resource is still blocked.

This 403 error usually means your Azure OpenAI resource has been temporarily restricted due to aggregated safety signals, not necessarily a single request. The system evaluates both the content (prompts/responses) and usage patterns (like repeated requests, retries, or traffic spikes) before applying this type of restriction.

So even if individual prompts look compliant, earlier activity or overall request patterns may have contributed to the block.

What you can try next:

  • Check recent activity logs in Azure Monitor
    • Look for any filtered responses or warnings before the block happened
  • Review request patterns
    • Repeated or similar prompts
    • High-frequency or automated calls
  • Pause traffic for some time
    • Temporary blocks often auto-recover after a cooldown period
  • Avoid repeated retries during the blocked state

If the issue still continues, I recommend raising a support request from Azure portal and sharing the Apim-request-id from your error response. The support team can check backend signals and help identify the exact trigger.

Let us know if you can share more details (like request pattern or logs) in the private chat, and we can help you narrow it down further.

Thankyou!

Was this answer helpful?

1 person found this answer helpful.

Answer accepted by question author
Salamat Shah 750 Reputation points MVP
2026-05-06T21:01:20.7533333+00:00

Try this and check:

  1. Go to Azure Portal → OpenAI resource → Monitoring → Logs/Metrics and check recent activity.
  2. Look for high volume, rapid retries, or repeated prompts.
  3. Reduce request rate and stop any automated spam-like calls.
  4. Regenerate API key and test with a single request.
  5. Wait a bit (temporary blocks often auto-clear).

Was this answer helpful?

1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Jonathan McLean 40 Reputation points Microsoft Employee
    2026-05-13T14:12:51.15+00:00

    I received these instructions from support offline. This was helpful information for me.

    You can check all requests at resource level using Azure Monitor:

    Enable Diagnostic logs → Log Analytics

    Then query logs (KQL) to see request patterns, errors, volume, etc.

    But limitation:

    You cannot easily identify which app/user is sending requests if endpoint is shared.

    For full visibility per app, best approach is to use APIM in front of OpenAI (to track caller, retries, etc.).

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.