Skip to content

azure-ai-projects red teaming 404 Resource not found #41870

Open
@yingding

Description

@yingding
  • Package Name: azure-ai-projects
  • Package Version: 1.0.0b12
  • Operating System: windows 11
  • Python Version: 3.12

Describe the bug
Tried to create a red team on AI Foundry Project v2 using SDK

red_team_response: RedTeam = project_client.red_teams.create(
    red_team,
    headers={
        "model-endpoint": azure_openai_endpoint,
        "api-key": azure_openai_api_key,
    },
)

got error

ResourceNotFoundError: (404) Resource not found
Code: 404
Message: Resource not found

To Reproduce
Steps to reproduce the behavior:

Run the red team sample code from
https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/ai/azure-ai-projects/samples/red_team/sample_red_team.py

Expected behavior
red team agent shall be created in AI Foundry Project

Metadata

Metadata

Assignees

No one assigned

    Labels

    AI ProjectsClientThis issue points to a problem in the data-plane of the library.Service AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions