Azure Content Safety within Azure Foundry - Not always blocking the same prompt, why?

Isidro TTW 5 Reputation points
2026-07-23T11:41:18.9+00:00

Hi,

Were using a separate subscription for AI, where we have a Llama-4 model (Azure Foundry), with some Azure Content Safety (Guardrails) adjustments, to "Content harms", including a blocklist (with "Exact match"'s).

According to our tests (prompts), even after adding the blocklist, several times the result/output passes (not blocked), and the tests include words that are in the blocklist.

Could you help explain why the results are not always blocked?

Thanks

Content Safety in Foundry Control Plane
Content Safety in Foundry Control Plane

An Azure service that enables users to identify content that is potentially offensive, risky, or otherwise undesirable. Previously known as Azure Content Moderator.

0 comments No comments

2 answers

Sort by: Newest
  1. Chirag Kolte 0 Reputation points
    2026-07-23T12:04:34.2033333+00:00

    Hi there,

    Based on your description, I'd check the following:

    • Verify that the blocklist is associated with the same Azure AI Foundry project/deployment you're testing.
    • Confirm that the blocklist is configured to inspect the correct content (prompt, response, or both, depending on your scenario).
    • Since you're using Exact match, ensure your test output contains the exact blocked term. Even minor differences (such as punctuation, spacing, or word variations) may not match.
    • If you recently updated the blocklist, wait a few minutes and test again to allow the configuration to propagate.

    If the exact blocked term is still returned after these checks, it would be helpful to know whether you're testing through Azure AI Foundry Playground or via the REST API/SDK, as that can help determine whether the issue is configuration-related or a service issue.

    I hope this may help a lot

    Was this answer helpful?


  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.