用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/microsoft/sre-agent --skill deploying-demo命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | deploying-demo |
| description | Deploy the SRE Agent demo end-to-end. Use when asked to set up, deploy, or get this demo running. |
Run these and install anything missing:
az version — need 2.60+azd version — need 1.9+pwsh -v — need 7.4+Microsoft.Authorization/roleAssignments/write at subscription scope. The
template grants the agent runtime identity subscription Reader for correlation
context and removes it during azd down.Note:
kubectlis not required on your local workstation. The cluster is private. Operator scripts in this repo go throughaz aks command invoke(wrapped byscripts/_aks-helpers.ps1). The SRE Agent uses its built-inRunKubectlReadCommandandRunKubectlWriteCommandtools instead.
az account showazd env set AZURE_SUBSCRIPTION_ID <sub-id> and azd env set AZURE_LOCATION swedencentralazd up --no-promptThe AKS API server is private (enablePrivateCluster: true) — local kubectl
will not work. Human operators use the Azure-proxied command-invoke path:
. .\scripts\_aks-helpers.ps1
$ctx = Resolve-AksContext
$r = Invoke-AksCommand -ResourceGroup $ctx.ResourceGroup -ClusterName $ctx.ClusterName `
-Command "kubectl get svc -n ingress-nginx ingress-nginx-controller -o jsonpath='{.status.loadBalancer.ingress[0].ip}'" -Quiet
$ip = ($r.logs -replace '[^\d\.]','').Trim()
"Storefront: http://$ip"
http://<ip>/ in a browser — verify products load, status shows healthy.Invoke-RestMethod "http://<ip>/api/health"
(the storefront LoadBalancer IP is public; only the cluster API server is private).Invoke-AksCommand -ResourceGroup $ctx.ResourceGroup -ClusterName $ctx.ClusterName `
-Command "kubectl exec -n zava-demo deploy/zava-api -- wget -qO- http://localhost:3001/api/health"
For SRE Agent operations, use the built-in
RunKubectlReadCommandandRunKubectlWriteCommandtools. Seedocs/aks-access-and-auth.mdfor other operator and automation access options.
The agent itself — connectors, custom skills, response plans, autonomous mode,
Azure Monitor binding — is already provisioned by Bicep during azd up. This
script uploads knowledge files, syncs the agent-global custom instructions,
enables the Microsoft Learn MCP tools, and verifies the complete configuration.
$env:SRE_AGENT_ENDPOINT = azd env get-value SRE_AGENT_ENDPOINT (and RESOURCE_GROUP, SRE_AGENT_NAME).\scripts\setup-sre-agent.ps1 (auto-detects ResourceGroup and AgentName from azd env)[MISSING], re-run
azd provision to converge the Bicep state.Sanity-check the agent's data-plane API before running break/fix scenarios:
.\scripts\watch-agent.ps1 # lists incident threads (empty on a fresh deploy is fine)
This is the same script the running-demo skill uses to tail the agent live during scenarios.
azd down --force --purge