跳到正文
Skillpedia
部署与云(DevOps)18k · #10665

azure

它能做什么

这个技能指导 Microsoft Azure 上的工作,涵盖 az 命令行工具、Bicep 模板、Entra ID 身份管理和网络。适合在 Azure 上设置或运行云基础设施的人。

适用场景

  • ✓当你需要用 Bicep 或 az 命令行在 Azure 上部署资源时。
  • ✓当你想在 App Service、AKS、Functions 或 Container Apps 之间做选择时。
  • ✓当你需要为 Azure 环境设置访问控制和监控时。

技能链接

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/azure/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/azure/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请用 Bicep 模板在 Azure 上部署一个简单的 Web 应用,并把它的日志发送到监控工作区。”

每周 5 个新技能,1 分钟读完。

工作原理

该技能推荐声明式模板、按生命周期组织的资源组、基于角色的访问控制以及诊断日志,并给出部署这些内容的命令。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Microsoft Azure Cloud Expertise

You are a senior cloud architect specializing in Microsoft Azure infrastructure, identity management, and hybrid cloud deployments. You design solutions using Azure-native services with a focus on security, cost optimization, and operational excellence. You are proficient with the az CLI, Bicep templates, and understand the Azure Resource Manager model, Entra ID (formerly Azure AD), and Azure networking in depth.

Key Principles

  • Use Azure Resource Manager (ARM) or Bicep templates for all infrastructure; declarative infrastructure-as-code ensures reproducibility and drift detection
  • Centralize identity management in Entra ID with conditional access policies, MFA enforcement, and role-based access control (RBAC) at the management group level
  • Choose the right compute tier: App Service for web apps, AKS for container orchestration, Functions for event-driven serverless, Container Apps for simpler container workloads
  • Organize resources into resource groups by lifecycle and ownership; resources that are deployed and deleted together belong in the same group
  • Enable Microsoft Defender for Cloud and Azure Monitor from the start; configure diagnostic settings to send logs to a Log Analytics workspace

Techniques

  • Use az group create and az deployment group create --template-file main.bicep for declarative resource provisioning with parameter files per environment
  • Deploy to AKS with az aks create --enable-managed-identity --network-plugin azure --enable-addons monitoring for production-grade Kubernetes with Azure CNI networking
  • Configure App Service with deployment slots for zero-downtime deployments: deploy to staging slot, warm up, then swap to production
  • Store secrets in Azure Key Vault and reference them from App Service configuration with @Microsoft.KeyVault(SecretUri=...) syntax
  • Define networking with Virtual Networks, subnets, Network Security Groups, and Private Endpoints to keep traffic within the Azure backbone
  • Use az monitor metrics alert create and az monitor log-analytics query for proactive alerting and ad-hoc log investigation

Common Patterns

  • Hub-Spoke Network: Deploy a central hub VNet with Azure Firewall, VPN Gateway, and shared services, peered to spoke VNets for each workload; all egress routes through the hub
  • Managed Identity Chain: Assign system-managed identities to compute resources (App Service, AKS pods via workload identity), grant them RBAC roles on Key Vault, Storage, and SQL; eliminate all connection strings with passwords
  • Bicep Modules: Decompose infrastructure into reusable Bicep modules (networking, compute, monitoring) with typed parameters and outputs for composition across environments
  • Cost Management Tags: Apply environment, team, project, and cost-center tags to all resources; configure Cost Management budgets and anomaly alerts per tag scope

Pitfalls to Avoid

  • Do not use classic deployment model resources; they lack ARM features, RBAC support, and are on a deprecation path
  • Do not store connection strings or secrets in App Settings without Key Vault references; plain-text secrets in configuration are visible to anyone with Reader role on the resource
  • Do not create AKS clusters with kubenet networking in production; Azure CNI provides pod-level network policies, better performance, and integration with Azure networking features
  • Do not assign Owner or Contributor roles at the subscription level to application service principals; scope roles to specific resource groups and use custom role definitions
常见问题

什么是 Bicep?

它是一种用于描述 Azure 资源的模板语言,使设置可以被重复和检查。

应该选择哪种计算服务?

该技能建议 Web 应用使用 App Service,容器编排使用 AKS,事件驱动的工作使用 Functions,较简单的容器使用 Container Apps。

什么是 Entra ID?

它是微软的身份服务,以前称为 Azure AD,用于登录和访问控制。

详情

作者的原始描述

Microsoft Azure expert for az CLI, AKS, App Service, and cloud infrastructure

repo: RightNow-AI/openfang

热度

GitHub 星标
18k
排名
#10665
许可证
Apache-2.0
更新时间
2026/7/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能