Open
Description
- Package Name: azure-ai-projects
- Package Version: 1.0.0b11
- Operating System: Windows
- Python Version: 3.13.3
Describe the bug
Creating a redteam run returns error:
HttpResponseError: (UserError) RedTeam target is invalid
Code: UserError
Message: RedTeam target is invalid
To Reproduce
Steps to reproduce the behavior:
following the official doc: https://learn.microsoft.com/en-us/azure/ai-foundry/how-to/develop/run-ai-red-teaming-cloud?tabs=python to config and create a redteam class
- setup the project client on a Foundry Project based project, like https://my-foundryproject-resource.services.ai.azure.com/api/projects/my-foundryproject
- configure model_endpoint as the Azure AI Foundry resource in the Foundry Project, as described in the doc, like: https://my-foundryproject-resource.services.ai.azure.com
- set model_api_key as the key of the Azure AI Foundry resource on which the project is automatically linked
- set model_deployment_name as one of the deployment available
Expected behavior
redteam run created and running
Additional context
Class RedTeam is referenced here: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/ai/azure-ai-projects/azure/ai/projects/models/_models.py.
Tried also with Azure OpenAI Resource directly connected to the project, got same error
Metadata
Metadata
Assignees
Labels
This issue points to a problem in the data-plane of the library.Workflow: This issue is responsible by Azure service team.Issues that are reported by GitHub users external to the Azure organization.Workflow: This issue needs attention from Azure service team or SDK teamThe issue doesn't require a change to the product in order to be resolved. Most issues start as that