How to get rid of or edit default guardrail RAI policies in Microsoft Foundry?

Bob Lindenberg 80 Reputation points
2026-04-29T21:08:45.87+00:00

When I provision Microsoft Foundry and a Foundry project, I see two RAI Policies that are created by default. If I look in the foundry portal at content filters (under Guardrails and Controls) these policies do not show up. But if I use the REST API to GET RAI Policies, I see the policy that I created plus two system managed policies, Microsoft.Default and Microsoft.DefaultV2.

Our security scanner objects to these two policies because they do not contain controls for indirect attacks, which it considers the most dangerous. Is it possible to modify these policies or if not, to delete them?

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.


Answer accepted by question author
Pavankumar Purilla 11,655 Reputation points Moderator
2026-05-12T12:45:50.5666667+00:00

Hello Bob Lindenberg,
Hope you are doing well.

The policies Microsoft.Default and Microsoft.DefaultV2 are system-managed baseline policies automatically created by the platform. These policies are currently not editable or deletable, as they are designed to ensure a minimum level of Responsible AI protection for all deployments. They are mainly visible through the REST API and are not currently shown in the Foundry portal UI.

Microsoft.Default is the earlier baseline policy, while Microsoft.DefaultV2 is the newer version with updated safety improvements. Both exist to support compatibility across different deployments.

Regarding indirect prompt injection protection, your observation is correct. At present, additional protections cannot be added directly to these Microsoft-managed default policies. The supported approach is to create a separate custom RAI/content filtering policy with the required protections and apply it alongside the default policies.

We also understand that some security scanners may still flag the default policies independently even when additional custom protections are applied. For stricter security and compliance requirements, the recommended approach is to use layered protection by combining the default policies, custom guardrails, and additional runtime prompt injection detection controls.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

2 additional answers

Sort by: Newest
  1. Karnam Venkata Rajeswari 5,255 Reputation points Microsoft External Staff Moderator
    2026-04-29T21:42:17.2466667+00:00

    Hello @Bob Lindenberg

    Welcome to Microsoft Q&A .Thank you for reaching out to us.

    The behavior you are seeing aligns with the current design of Responsible AI (RAI) guardrail management in Microsoft Foundry.

    The policies Microsoft.Default and Microsoft.DefaultV2 are system-managed RAI guardrail policies that are automatically provisioned when a Foundry project or resource is created.

    These default policies cannot be modified or deleted as they are

    1. System-managed
    2. Immutable (read-only)
    3. Not editable or deletable
    4. Not extensible

    They provide a platform-enforced baseline safety layer that ensures a minimum level of Responsible AI protections is always applied across Foundry deployments.

    They not visible in the Foundry portal as

    1. The Foundry portal displays only user-created or user-managed guardrail (RAI) policies
    2. System-managed baseline policies are intentionally hidden in the UI
    3. However, they are fully visible through:
      • REST API
      • CLI tooling in some environments

    Thus ,they do not appear under Guardrails and Controls in the portal ,but are returned via API calls

    There two policies: Microsoft.Default and Microsoft.DefaultV2 as both represent system-managed baseline generations.

    • Microsoft.Default → earlier baseline policy
    • Microsoft.DefaultV2 → updated baseline policy with newer safety configurations

    Please note that

    1. These are not strict “parent-child” versions
    2. They are parallel system baselines maintained by the platform
    3. Both of them are retained to support platform evolution and backward compatibility across existing deployments

    Scanner is likely expecting explicit visibility of controls such as indirect prompt injection protection within a single policy definition.

    Since system-managed policies cannot be modified, please check if the following help

    1. Creating a custom RAI policy - Define a custom policy with the required controls, such as
      • stricter content filtering
      • indirect prompt injection mitigation (where supported)
      • additional compliance-specific safety rules
      • Prompt Shield integration for injection scenarios
    2. Assigning the custom policy Please assign the custom policy to:
      • a Foundry project, or
      • specific model deployments / agents (depending on your architecture)
      This ensures the custom policy becomes the effective enforcement layer at runtime, while system policies remain as baseline safeguards.
    3. Validating effective enforcement To support compliance or security validation:
      • Confirm that the custom policy is actively assigned to deployments
      • Ensure it includes required protections like prompt injection mitigation controls
      • Document that system-managed policies remain as a non-configurable baseline layer
      Microsoft.Default and Microsoft.DefaultV2 are mandatory system baselines which cannot be replaced, extended, or removed.They remain active alongside any custom guardrail policies.Thus,custom policies are the supported mechanism for additional governance and compliance requirements

    The following references might be helpful , please check them out

     

    Thank you

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-04-29T21:09:04.97+00:00

    Default safety policies such as Microsoft.Default and Microsoft.DefaultV2 are part of the built-in guardrails for Azure OpenAI models in Microsoft Foundry. These defaults provide baseline protections (content filters, blocklists, prompt protection, etc.) and are applied automatically to ensure a responsible-by-default experience.

    These Microsoft Default guardrails cannot be modified or deleted. The documented behavior is:

    • Default safety policies are applied to all models by default.
    • All safety policies are configurable by creating and assigning custom guardrails.
    • However, “Microsoft Default” guardrails themselves (for example, Default.V2) cannot be edited.

    To satisfy stricter security or compliance requirements (such as adding controls for indirect prompt attacks), the supported approach is:

    1. Create a custom guardrail in Foundry with the desired controls (for example, Prompt Shield for indirect attacks, protected material, custom blocklists, etc.).
    2. Assign that custom guardrail to the relevant models and/or agents so that it overrides the default behavior for those assets.
    3. Optionally, create guardrail policies in the Compliance workspace to mandate that deployments use guardrails with specific controls (for example, requiring indirect attack protection) and to monitor/fix noncompliant assets.

    The system-managed default policies will still exist and appear via the REST API, but security posture can be enforced through custom guardrails and guardrail policies rather than by altering or removing the Microsoft.Default / Microsoft.DefaultV2 policies.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

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.