@@ -26,7 +26,7 @@ A focused sample demonstrating Azure AI's RedTeam functionality to assess the sa
2626### Azure Resources
27271 . ** Azure AI Hub and Project** : Create these in the Azure Portal
2828 - Follow: https://learn.microsoft.com/azure/ai-foundry/how-to/create-projects
29- 2 . ** Azure OpenAI Deployment** : Deploy a model (e.g., gpt-4o)
29+ 2 . ** Model Deployment** : Deploy a model (e.g., gpt-4o) in the Foundry project
30303 . ** Azure CLI** : Install and authenticate with ` az login `
3131
3232### Python Environment
@@ -41,13 +41,10 @@ Note: The sample uses `python-dotenv` to load environment variables from a `.env
4141Create a ` .env ` file in this directory or set these environment variables:
4242
4343``` bash
44- # Azure OpenAI (for the agent being tested)
45- AZURE_OPENAI_ENDPOINT=https://your-resource.openai.azure.com/
46- AZURE_OPENAI_MODEL=gpt-4o
47- # AZURE_OPENAI_API_KEY is optional if using Azure CLI authentication
48-
49- # Azure AI Project (for red teaming)
50- FOUNDRY_PROJECT_ENDPOINT=https://your-project.api.azureml.ms
44+ # Microsoft Foundry project, used by both the agent being tested (FoundryChatClient)
45+ # and the red teaming scan. Authentication uses Azure CLI credentials (`az login`).
46+ FOUNDRY_PROJECT_ENDPOINT=https://< resource> .services.ai.azure.com/api/projects/< project>
47+ FOUNDRY_MODEL=gpt-4o
5148```
5249
5350See ` .env.example ` for a template.
@@ -60,7 +57,7 @@ python red_team_agent_sample.py
6057```
6158
6259The sample will:
63- 1 . Create a financial advisor agent using Azure OpenAI
60+ 1 . Create a financial advisor agent using ` FoundryChatClient `
64612 . Set up an async callback to interface the agent with RedTeam
65623 . Run a comprehensive scan with 11 different attack strategies
66634 . Display results as a scorecard in the console
0 commit comments