ai-foundry-operations
Skill2 starsChanged 10 months agoMITView on GitHub
Azure AI Foundry — provisioning, model deployment, RAG configuration, and operational management
- Reads credentials
- Sends data out
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- argocd-cliSkill
- aro-deploymentSkill
- azure-cliSkill
- azure-infrastructureSkill
- database-managementSkill
- deploy-orchestrationSkill
- github-cliSkill
- helm-cliSkill
- kubectl-cliSkill
- mcp-cliSkill
- observability-stackSkill
- oc-cliSkill
- openshift-operationsSkill
- prerequisitesSkill
- rhdh-portalSkill
- terraform-cliSkill
- validation-scriptsSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 127
Use managed identity for authentication (never API keys in code)
- Distinctive: line 130
Use private endpoints for production
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
When to Use
- Provision Azure AI Foundry resources
- Deploy and manage OpenAI models
- Configure RAG pipelines with AI Search
- Monitor token usage and costs
- Test model endpoints
Prerequisites
- Azure CLI authenticated (
az login) - Subscription with AI services quota
- Terraform H3 modules applied (or manual provisioning)
Provisioning
1. Create AI Foundry Resources (via Terraform)
# Deploy H3 Innovation layer (includes AI Foundry)
cd terraform
terraform plan -var-file=environments/dev.tfvars -var="enable_h3=true" -out=tfplan
terraform apply tfplan
# Or via bootstrap script
./scripts/platform-bootstrap.sh --horizon h3 --environment dev2. Create Resources (via Azure CLI)
# Create Cognitive Services account (OpenAI)
az cognitiveservices account create \
--name "${PROJECT}-${ENV}-openai" \
--resource-group "${RG_NAME}" \
--kind OpenAI \
--sku S0 \
--location eastus2 \
--custom-domain "${PROJECT}-${ENV}-openai" \
--tags environment="${ENV}" project="${PROJECT}"
# Create AI Search service
az search service create \
--name "${PROJECT}-${ENV}-search" \
--resource-group "${RG_NAME}" \
--sku standard \
--partition-count 1 \
--replica-count 1
# Create model deployment (GPT-4o)
az cognitiveservices account deployment create \
--name "${PROJECT}-${ENV}-openai" \
--resource-group "${RG_NAME}" \
--deployment-name gpt-4o \
--model-name gpt-4o \
--model-version "2024-05-13" \
--model-format OpenAI \
--sku-capacity 30 \
--sku-name Standard3. Configure Managed Identity Access
# Assign Cognitive Services User role to AKS identity
az role assignment create \
--assignee "${AKS_IDENTITY_PRINCIPAL_ID}" \
--role "Cognitive Services User" \
--scope "/subscriptions/${SUB_ID}/resourceGroups/${RG_NAME}/providers/Microsoft.CognitiveServices/accounts/${PROJECT}-${ENV}-openai"
# Get endpoint
az cognitiveservices account show \
--name "${PROJECT}-${ENV}-openai" \
--resource-group "${RG_NAME}" \
--query "properties.endpoint" -o tsvDay-2 Operations
Resource Management
# List AI Foundry workspaces
az ml workspace list -o table
# Show workspace details
az ml workspace show --name <workspace> --resource-group <rg>
# List compute resources
az ml compute list --workspace-name <workspace> --resource-group <rg>OpenAI Deployments
# List Cognitive Services accounts
az cognitiveservices account list -o table
# List deployments
az cognitiveservices account deployment list \
--name <account> --resource-group <rg> -o table
# Check quota usage
az cognitiveservices usage list --location eastus2 -o tableModel Testing
# Test chat completion
curl -X POST "https://<endpoint>.openai.azure.com/openai/deployments/<deployment>/chat/completions?api-version=2024-02-15-preview" \
-H "Content-Type: application/json" \
-H "api-key: ${OPENAI_API_KEY}" \
-d '{"messages":[{"role":"user","content":"Hello"}],"max_tokens":100}'
# Test with managed identity (from AKS pod)
curl -X POST "https://<endpoint>.openai.azure.com/openai/deployments/<deployment>/chat/completions?api-version=2024-02-15-preview" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${ACCESS_TOKEN}" \
-d '{"messages":[{"role":"user","content":"Hello"}]}'Project Files Reference
- Terraform module:
terraform/modules/ai-foundry/ - Golden Path templates:
golden-paths/h3-innovation/(7 AI templates)
Best Practices
- Configure content safety filters on all deployments
- Implement rate limiting and retry logic
- Use managed identity for authentication (never API keys in code)
- Monitor token usage and set cost alerts
- Enable diagnostic logging for compliance
- Use private endpoints for production
- Deploy models in LATAM-nearest region with quota
Output Format
- Command executed
- Resource status
- Deployment details
- Recommendations
Integration with Agents
Used by: @architect, @devops
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

