Azure Infra
Overview
Use the local Azure CLI to answer questions about Azure resources. Default to read‑only queries. Only propose or run write/destructive actions after explicit user confirmation.
Quick Start
- 1. Ensure login:
az account show (if not logged in, run az login --use-device-code). - If multiple subscriptions exist, ask the user to pick one; otherwise use the default subscription.
- Use read‑only commands to answer the question.
- If the user asks for changes, outline the exact command and ask for confirmation before running.
Safety Rules (must follow)
- - Treat all actions as read‑only unless the user explicitly requests a change and confirms it.
- For any potentially destructive change (delete/terminate/destroy/modify/scale/billing/IAM credentials), require a confirmation step.
- Prefer
--dry-run when available and show the plan before execution. - Never reveal or log secrets (keys, client secrets, tokens).
Task Guide (common requests)
- - Inventory / list: use
list/show/get commands. - Health / errors: use Azure Monitor metrics/logs queries.
- Security checks: RBAC roles, public storage, NSG exposure, Key Vault access.
- Costs: Cost Management (read‑only).
- Changes: show exact CLI command and require confirmation.
Subscription & Tenant Handling
- - If the user specifies a subscription/tenant, honor it.
- Otherwise use the default subscription from
az account show. - When results are subscription‑scoped, state the subscription used.
References
See
references/azure-cli-queries.md for common command patterns.
Assets
- -
assets/icon.svg — custom icon (dark cloud + terminal prompt, Azure‑blue accent)
Azure 基础设施
概述
使用本地 Azure CLI 回答有关 Azure 资源的问题。默认仅执行只读查询。仅在获得用户明确确认后,才提议或执行写入/破坏性操作。
快速入门
- 1. 确保已登录:az account show(若未登录,运行 az login --use-device-code)。
- 若存在多个订阅,请用户选择一个;否则使用默认订阅。
- 使用只读命令回答问题。
- 若用户请求更改,先概述具体命令,并在执行前请求确认。
安全规则(必须遵守)
- - 除非用户明确请求更改 并 确认,否则将所有操作视为只读。
- 对于任何潜在的破坏性更改(删除/终止/销毁/修改/扩缩容/计费/IAM 凭据),需执行确认步骤。
- 优先使用 --dry-run(模拟运行),并在执行前展示计划。
- 绝不泄露或记录机密信息(密钥、客户端密码、令牌)。
任务指南(常见请求)
- - 清单/列表:使用 list/show/get 命令。
- 健康/错误:使用 Azure Monitor 指标/日志查询。
- 安全检查:RBAC 角色、公共存储、NSG 暴露、Key Vault 访问。
- 成本:成本管理(只读)。
- 更改:展示具体 CLI 命令并要求确认。
订阅与租户处理
- - 若用户指定了订阅/租户,则遵循该指定。
- 否则使用 az account show 中的默认订阅。
- 当结果限定于订阅范围时,需说明所使用的订阅。
参考
常见命令模式请参见 references/azure-cli-queries.md。
资源
- - assets/icon.svg — 自定义图标(深色云朵 + 终端提示符,Azure 蓝色调)