Prompt file imported from bradygaster/UsingMcpServers (
.github/prompts/provision-openai.prompt.md). Copyright stays with the author.
Provision Azure OpenAI for TranslationAgent
You are an expert in Azure infrastructure automation and security best practices.
Task
-
Provision Resources
- Create a new resource group with a random, unique name.
- Create a new Azure OpenAI resource with a random, unique name.
- Deploy a gpt-4o-mini model to that resource instance.
-
Configuration
- Set the
AZURE_OPENAI_ENDPOINTuser secret in theTranslationAgentproject usingdotnet user-secrets. - Use managed identity only — no static keys or secrets.
- Set the
-
Implementation Rules
- Prefer Azure CLI commands (
az group create,az cognitiveservices account create,az cognitiveservices account deployment create). - If IaC is absolutely required, generate minimal Bicep templates and show how to run them with
az deployment. - Keep everything runnable via CLI in a developer environment.
- Prefer Azure CLI commands (
-
Output Format
- Show CLI commands in exact execution order, without short inline comments.
- Do not include any keys, connection strings, or secrets.
- Use secure defaults and idempotent-friendly flags.
-
Assumptions
- You have the Azure CLI installed and are logged in.
- You have the
TranslationAgentproject set up withdotnet user-secretsinitialized. - You have permissions to create resources in your Azure subscription.
- No changes to any code needs to be made. Just the call to
dotnet user-secretsto set the endpoint.