360 Secure SkillHub
360 安全技能中心

Azure Infra

该 Skill 以对话方式协助 Azure 基础设施运维:默认执行只读的 Azure CLI 查询,用于资源清单、健康与错误排查、安全与权限检查以及成本查询;涉及删除、缩放、IAM 等写入或破坏性操作时,先给出具体命令并要求用户显式确认后再执行。依赖本地 Azure CLI 与已登录的订阅,需联网访问 Azure 服务。

bmdhodl
bmdhodl
热度 98.31
最近更新 2026-05-11 15:50:57
分类:自动化依赖:代码执行 / 第三方 API应用场景:DevOps / 自动化脚本 / 工作流 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add azure-infra
Metadata
name
azure-infra
description
Chat-based Azure infrastructure assistance using Azure CLI and portal context. Use for querying, auditing, and monitoring Azure resources (VMs, Storage, IAM, Functions, AKS, App Service, Key Vault, Azure Monitor, billing, etc.), and for proposing safe changes with explicit confirmation before any write/destructive action.

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).
  2. If multiple subscriptions exist, ask the user to pick one; otherwise use the default subscription.
  3. Use read‑only commands to answer the question.
  4. 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)