mcpField
A
azure-app-service

azure-app-service

github.com/microsoftdocs云与 DevOps797313 次安装4 天前更新
代码仓库

关于 azure-app-service

azure-app-service 是面向 Azure App Service 用户的指导技能,涵盖故障排查、架构、安全、配置和部署。它结合本地速查内容与远程文档获取,按主题提供参考资料。

主要功能

  1. 01App Service 故障排查
  2. 02部署与高可用最佳实践
  3. 03托管计划及迁移决策参考
  4. 04安全、网络与身份配置
  5. 05集成、代码模式与部署指导

适用场景

  1. 01诊断 App Service 应用运行问题
  2. 02选择托管计划或网络方案
  3. 03规划身份验证与应用安全
  4. 04参考 CI/CD 和应用迁移方法

MCP 相关

该技能可通过 mcp_microsoftdocs 的 microsoft_docs_fetch 获取远程文档;也可回退到 fetch_webpage。

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/microsoftdocs/agent-skills --skill azure-app-service

安装后在 Claude Code 中输入/azure-app-service确认已加载。

详细介绍

Azure App Service 技能

此技能提供 Azure App Service 方面的专家指导,涵盖故障排除、最佳实践、决策、架构与设计模式、限制与配额、安全性、配置、集成与编码模式以及部署。它结合了本地快速参考内容和远程文档获取功能。

如何使用此技能

IMPORTANT for Agent:使用下方的类别索引查找相关章节。对于标有行号范围的类别(例如,L35-L120),请使用 read_file 读取指定行。对于带有文件链接的类别(例如,[security.md](security.md)),请使用 read_file 读取链接的参考文件。

IMPORTANT for Agent:如果 metadata.generated_at 距今已超过 3 个月,请建议用户从仓库拉取最新版本。如果无法使用 mcp_microsoftdocs 工具,请建议用户安装该工具:安装指南

此技能需要网络访问才能获取文档内容:

  • 首选:使用 mcp_microsoftdocs:microsoft_docs_fetch,并将查询字符串设为 from=learn-agent-skill。返回 Markdown。
  • 备用:使用 fetch_webpage,并将查询字符串设为 from=learn-agent-skill&accept=text/markdown。返回 Markdown。

类别索引

类别行号描述
故障排除L37-L44使用内置诊断、日志、Azure Monitor、站点状态,以及针对常见 WordPress 特定问题的指导,诊断并修复 App Service 问题。
最佳实践L45-L55App Service 部署、处理入站/出站 IP 和 TLS IP 变更、尽量减少维护停机时间,以及使用 Traffic Manager 实现高可用性和故障转移的最佳实践。
决策L56-L73有关为 Azure App Service 选择层级、托管计划、网络、身份验证、自定义域和迁移路径(Windows→Linux、Docker Compose、VNet、ASE、Managed Instance)的指导。
架构与设计模式L74-L79App Service 应用扩展模式:通过 App Service Environment 实现地理分布式部署,以及使用 App Service 上的 Foundry 设计 RAG 聊天机器人。
限制与配额L80-L84App Service 资源限制(CPU、内存、连接数)、配额类型、测量/监视方式,以及如何使用指标检测并避免触及计划或应用配额。
安全性L85-L132保护 App Service 应用:网络/IP 限制、TLS/证书、托管标识、Key Vault、Entra 身份验证和社交登录、OAuth 令牌、数据库/存储访问,以及策略/合规性设置。
配置L133-L181配置 App Service 应用:运行时、容器、网络/VNet、身份验证、存储、缩放、证书、域、运行状况检查,以及环境/群集设置。
集成与编码模式L182-L196App Service 应用与 APM、TLS/SSL 证书、Application Gateway、托管连接器、OpenAI/Phi-4 聊天机器人、OpenTelemetry sidecar 和 WebJobs 事件绑定集成的模式。
部署L197-L220部署和缩放 App Service 应用:CI/CD(GitHub Actions、Azure Pipelines)、ZIP/FTP/本地 Git 部署、自定义容器、部署槽、ASE/计划缩放、DNS 迁移和修补。
故障排除
主题URL
使用 App Service 诊断排查应用问题https://learn.microsoft.com/en-us/azure/app-service/overview-diagnostics
使用 Azure Monitor 排查 App Service 应用问题https://learn.microsoft.com/en-us/azure/app-service/tutorial-troubleshoot-monitor
使用 App Service 站点状态页排查运行时问题https://learn.microsoft.com/en-us/azure/app-service/use-app-service-site-status-page
解决 Azure App Service 上 WordPress 的常见问题https://learn.microsoft.com/en-us/azure/app-service/wordpress-faq
最佳实践
主题URL
应用 Azure App Service 的最佳实践并排查问题https://learn.microsoft.com/en-us/azure/app-service/app-service-best-practices
应用 App Service 部署最佳实践https://learn.microsoft.com/en-us/azure/app-service/deploy-best-practices
为 App Service 应用的入站 IP 地址变更做好准备https://learn.microsoft.com/en-us/azure/app-service/ip-address-change-inbound
为 App Service 应用的出站 IP 地址变更做好准备https://learn.microsoft.com/en-us/azure/app-service/ip-address-change-outbound
处理 App Service 绑定的 TLS/SSL IP 地址变更https://learn.microsoft.com/en-us/azure/app-service/ip-address-change-ssl
尽量减少 Azure App Service 维护造成的停机时间https://learn.microsoft.com/en-us/azure/app-service/routine-maintenance-downtime
使用 App Service 终结点配置 Azure Traffic Managerhttps://learn.microsoft.com/en-us/azure/app-service/web-sites-traffic-manager
决策
主题URL
配置并评估 App Service Premium v3 层https://learn.microsoft.com/en-us/azure/app-service/app-service-configure-premium-v3-tier
在迁移到 App Service 前评估 .NET Web 应用https://learn.microsoft.com/en-us/azure/app-service/app-service-migration-assess-net
规划将 App Service 应用从 Windows 迁移到 Linuxhttps://learn.microsoft.com/en-us/azure/app-service/app-service-migration-windows-linux
在 App Service Environment v3 和多租户之间进行选择https://learn.microsoft.com/en-us/azure/app-service/environment/ase-multi-tenant-comparison
为 App Service 选择合适的身份验证选项https://learn.microsoft.com/en-us/azure/app-service/identity-scenarios
将 App Service VNet 集成从网关型迁移到区域型https://learn.microsoft.com/en-us/azure/app-service/migrate-gateway-based-vnet-integration
决定并规划从 Docker Compose 迁移到 sidecarhttps://learn.microsoft.com/en-us/azure/app-service/migrate-sidecar-multi-container-apps
为 Azure App Service 选择合适的网络功能https://learn.microsoft.com/en-us/azure/app-service/networking-features
选择并配置 App Service 的 App Gatewayhttps://learn.microsoft.com/en-us/azure/app-service/overview-app-gateway-integration
规划并管理 App Service 自定义域名https://learn.microsoft.com/en-us/azure/app-service/overview-custom-domains
选择并扩展 Azure App Service 托管计划https://learn.microsoft.com/en-us/azure/app-service/overview-hosting-plans
规划并管理 Azure App Service 成本https://learn.microsoft.com/en-us/azure/app-service/overview-manage-costs
确定何时使用 App Service Managed Instancehttps://learn.microsoft.com/en-us/azure/app-service/overview-managed-instance
为 Azure App Service 选择安全连接选项https://learn.microsoft.com/en-us/azure/app-service/tutorial-connect-overview
架构与设计模式
主题URL
使用 App Service Environments 设计地理分布式扩展https://learn.microsoft.com/en-us/azure/app-service/environment/app-service-app-service-environment-geo-distributed-scale
使用 Foundry 在 App Service 上设计 RAG 聊天机器人https://learn.microsoft.com/en-us/azure/app-service/scenario-ai-chatbot-retrieval-augmented-generation
限制与配额
主题URL
了解 Azure App Service 的配额和指标https://learn.microsoft.com/en-us/azure/app-service/web-sites-monitor
安全性
主题URL
为 App Service 设置 IP 和 VNet 访问限制https://learn.microsoft.com/en-us/azure/app-service/app-service-ip-restrictions
在 App Service 设置中配置 Key Vault 引用https://learn.microsoft.com/en-us/azure/app-service/app-service-key-vault-references
处理 App Service 托管证书的变更和验证https://learn.microsoft.com/en-us/azure/app-service/app-service-managed-certificate-changes-july-2025
在 Azure App Service 中配置 TLS 双向身份验证https://learn.microsoft.com/en-us/azure/app-service/app-service-web-configure-tls-mutual-auth
为 App Service 上的 Foundry OpenAPI 工具配置 Entra 身份验证https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-ai-foundry-openapi-tool
在 App Service 身份验证中自定义登录和注销行为https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-customize-sign-in-out
在 Azure App Service 中配置 MCP 服务授权https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-mcp
使用 Entra 身份验证保护 App Service 上的 MCP 服务https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-mcp-server-vscode
使用 App Service 身份验证管理 OAuth 令牌https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-oauth-tokens
为 App Service 配置 Microsoft Entra 身份验证https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-provider-aad
为 App Service 应用启用“通过 Apple 登录”https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-provider-apple
为 App Service 应用设置 Facebook 身份验证https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-provider-facebook
为 App Service 应用配置 GitHub 身份验证https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-provider-github
为 Azure App Service 配置 Google 身份验证https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-provider-google
为 App Service 配置自定义 OpenID Connect 提供程序https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-provider-openid-connect
为 App Service 配置 X(Twitter)身份验证https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-provider-twitter
使用 App Service 身份验证访问用户身份https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-user-identities
为 Azure App Service 部署禁用基本身份验证https://learn.microsoft.com/en-us/azure/app-service/configure-basic-auth-disable
使用 CMK 加密 Azure App Service 应用内容的静态数据https://learn.microsoft.com/en-us/azure/app-service/configure-encrypt-at-rest-using-cmk
为 Azure App Service 上的 Java 应用配置安全设置https://learn.microsoft.com/en-us/azure/app-service/configure-language-java-security
保护 App Service 中的 SSH 和容器 Shell 访问https://learn.microsoft.com/en-us/azure/app-service/configure-linux-open-ssh-session
为 Azure App Service 配置 TLS/SSL 绑定https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-bindings
为 Azure App Service 配置 TLS/SSL 证书https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-certificate
为 App Service 部署选择身份验证类型https://learn.microsoft.com/en-us/azure/app-service/deploy-authentication-types
使用 Azure Firewall 保护 App Service 出站流量https://learn.microsoft.com/en-us/azure/app-service/network-secure-outbound-traffic-azure-firewall
配置 App Service 访问限制和防火墙规则https://learn.microsoft.com/en-us/azure/app-service/overview-access-restrictions
在 App Service 和 Functions 中使用 Entra Agent 身份https://learn.microsoft.com/en-us/azure/app-service/overview-agent-identity
配置 App Service 内置身份验证和授权https://learn.microsoft.com/en-us/azure/app-service/overview-authentication-authorization
为 Azure App Service 配置托管身份https://learn.microsoft.com/en-us/azure/app-service/overview-managed-identity
使用 Private Endpoints 保护 Azure App Servicehttps://learn.microsoft.com/en-us/azure/app-service/overview-private-endpoint
为 Azure App Service 配置 TLS/SSL 安全性https://learn.microsoft.com/en-us/azure/app-service/overview-tls
防止 Azure App Service 中的悬空子域名接管https://learn.microsoft.com/en-us/azure/app-service/reference-dangling-subdomain-prevention
使用托管身份保护 .NET App Service 对 Microsoft Graph 的访问https://learn.microsoft.com/en-us/azure/app-service/scenario-secure-app-access-microsoft-graph-as-app
为 App Service 用户授予委托的 Microsoft Graph 访问权限https://learn.microsoft.com/en-us/azure/app-service/scenario-secure-app-access-microsoft-graph-as-user
使用托管身份保护 App Service 对 Azure Storage 的访问https://learn.microsoft.com/en-us/azure/app-service/scenario-secure-app-access-storage
启用并配置 App Service 身份验证https://learn.microsoft.com/en-us/azure/app-service/scenario-secure-app-authentication-app-service
使用 Azure Policy 合规性控制管理 App Servicehttps://learn.microsoft.com/en-us/azure/app-service/security-controls-policy
管理 App Service 和 Functions 的最低 TLS 版本https://learn.microsoft.com/en-us/azure/app-service/tls-minimum-version
使用 Azure AD 身份验证保护 Azure App Servicehttps://learn.microsoft.com/en-us/azure/app-service/tutorial-auth-aad
代表已登录用户将 App Service 连接到 SQLhttps://learn.microsoft.com/en-us/azure/app-service/tutorial-connect-app-access-sql-database-as-user-dotnet
使用托管身份保护从 App Service 对数据库的访问https://learn.microsoft.com/en-us/azure/app-service/tutorial-connect-msi-azure-database
在 App Service 中使用托管身份保护 SQL 访问https://learn.microsoft.com/en-us/azure/app-service/tutorial-connect-msi-sql-database
使用 VNet 集成隔离 Azure App Service 流量https://learn.microsoft.com/en-us/azure/app-service/tutorial-networking-isolate-vnet
使用自定义域和证书保护 App Service 应用https://learn.microsoft.com/en-us/azure/app-service/tutorial-secure-domain-certificate
配置
主题URL
配置 Azure App Service 应用配置引用https://learn.microsoft.com/en-us/azure/app-service/app-service-configuration-references
为 Azure App Service 应用配置混合连接https://learn.microsoft.com/en-us/azure/app-service/app-service-hybrid-connections
管理 App Service 身份验证 API 和运行时版本https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-api-version
使用基于文件的设置配置 App Service 身份验证https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-file-based
配置 Azure App Service 应用的核心设置https://learn.microsoft.com/en-us/azure/app-service/configure-common
在 App Service 中装载 Azure Storage 文件共享https://learn.microsoft.com/en-us/azure/app-service/configure-connect-to-azure-storage
在 Azure App Service 上配置自定义容器https://learn.microsoft.com/en-us/azure/app-service/configure-custom-container
使用 App Service 自定义域配置 Traffic Managerhttps://learn.microsoft.com/en-us/azure/app-service/configure-domain-traffic-manager
在 Azure App Service 中配置自定义错误页https://learn.microsoft.com/en-us/azure/app-service/configure-error-pages
为 App Service 配置需要网关的 VNet 集成https://learn.microsoft.com/en-us/azure/app-service/configure-gateway-required-vnet-integration
在 Linux Azure App Service 上配置 gRPC 应用程序https://learn.microsoft.com/en-us/azure/app-service/configure-grpc
在 Azure App Service 上配置 Aspire 应用https://learn.microsoft.com/en-us/azure/app-service/configure-language-aspire
在 Azure App Service 上配置 ASP.NET 应用https://learn.microsoft.com/en-us/azure/app-service/configure-language-dotnet-framework
在 Azure App Service 上配置 ASP.NET Core 应用https://learn.microsoft.com/en-us/azure/app-service/configure-language-dotnetcore
在 Azure App Service 上配置 Java 数据源https://learn.microsoft.com/en-us/azure/app-service/configure-language-java-data-sources
在 Azure App Service 上部署和配置 Java 应用https://learn.microsoft.com/en-us/azure/app-service/configure-language-java-deploy-run
在 Azure App Service 上配置 Node.js 应用程序https://learn.microsoft.com/en-us/azure/app-service/configure-language-nodejs
在 Azure App Service 上配置 PHP 应用程序https://learn.microsoft.com/en-us/azure/app-service/configure-language-php
在 Azure App Service 上配置 Python 运行时和容器https://learn.microsoft.com/en-us/azure/app-service/configure-language-python
为 Azure App Service 配置托管实例设置https://learn.microsoft.com/en-us/azure/app-service/configure-managed-instance
为 Azure App Service API 配置内置 MCPhttps://learn.microsoft.com/en-us/azure/app-service/configure-mcp-built-in
为 Linux 上的 Azure App Service 配置 sidecarhttps://learn.microsoft.com/en-us/azure/app-service/configure-sidecar
配置和管理 Azure App Service 证书https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-app-service-certificate
启用 Azure App Service 虚拟网络集成https://learn.microsoft.com/en-us/azure/app-service/configure-vnet-integration-enable
为 App Service 区域性 VNet 集成配置路由https://learn.microsoft.com/en-us/azure/app-service/configure-vnet-integration-routing
为 Azure App Service 计划配置区域冗余https://learn.microsoft.com/en-us/azure/app-service/configure-zone-redundancy
为 App Service Environment 配置自定义群集设置https://learn.microsoft.com/en-us/azure/app-service/environment/app-service-app-service-environment-custom-settings
为 App Service Environment v3 配置网络https://learn.microsoft.com/en-us/azure/app-service/environment/configure-network-settings
为 App Service Environment 和 Isolated 计划启用区域冗余https://learn.microsoft.com/en-us/azure/app-service/environment/configure-zone-redundancy-environment
为 App Service Environment 配置自定义域后缀https://learn.microsoft.com/en-us/azure/app-service/environment/how-to-custom-domain-suffix
在 App Service Environment 中管理证书和绑定https://learn.microsoft.com/en-us/azure/app-service/environment/overview-certificates
备份和还原 Azure App Service 应用https://learn.microsoft.com/en-us/azure/app-service/manage-backup
购买和配置 Azure App Service 托管域https://learn.microsoft.com/en-us/azure/app-service/manage-custom-dns-buy-domain
在 Azure App Service 中配置按应用缩放https://learn.microsoft.com/en-us/azure/app-service/manage-scale-per-app
Azure App Service 的监视数据参考https://learn.microsoft.com/en-us/azure/app-service/monitor-app-service-reference
为 App Service 配置和使用运行状况检查https://learn.microsoft.com/en-us/azure/app-service/monitor-instances-health-check
了解 App Service 上 Windows 应用的操作系统级功能https://learn.microsoft.com/en-us/azure/app-service/operating-system-functionality
管理 Azure App Service 的入站和出站 IPhttps://learn.microsoft.com/en-us/azure/app-service/overview-inbound-outbound-ips
配置和管理 App Service 本地缓存https://learn.microsoft.com/en-us/azure/app-service/overview-local-cache
为 Azure App Service 应用配置 DNS 和名称解析https://learn.microsoft.com/en-us/azure/app-service/overview-name-resolution
为 App Service 配置 Azure NAT Gateway 集成https://learn.microsoft.com/en-us/azure/app-service/overview-nat-gateway-integration
Azure App Service 的环境变量参考https://learn.microsoft.com/en-us/azure/app-service/reference-app-settings
Azure App Service 的环境变量参考https://learn.microsoft.com/en-us/azure/app-service/reference-app-settings
为 App Service 中的 Linux 自定义应用配置 sidecar 容器https://learn.microsoft.com/en-us/azure/app-service/tutorial-custom-container-sidecar
使用 Kudu 设置配置 WebJobs 执行行为https://learn.microsoft.com/en-us/azure/app-service/webjobs-execution
集成与编码模式
主题URL
将 App Service 上的 Java 应用与 APM 平台集成https://learn.microsoft.com/en-us/azure/app-service/configure-language-java-apm
在应用代码中使用 App Service TLS/SSL 证书https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-certificate-in-code
将 App Service Environment 与 Azure Application Gateway 集成https://learn.microsoft.com/en-us/azure/app-service/environment/integrate-with-application-gateway
将 Azure App Service 与托管连接器集成https://learn.microsoft.com/en-us/azure/app-service/overview-managed-connectors
将 Spring Boot 聊天机器人与 Azure OpenAI 集成https://learn.microsoft.com/en-us/azure/app-service/tutorial-ai-openai-chatbot-java
将 Express.js 聊天机器人连接到 Azure OpenAIhttps://learn.microsoft.com/en-us/azure/app-service/tutorial-ai-openai-chatbot-node
使用 Azure OpenAI 和 App Service 构建 Flask 聊天机器人https://learn.microsoft.com/en-us/azure/app-service/tutorial-ai-openai-chatbot-python
使用 Phi-4 sidecar 部署 Express.js 聊天机器人https://learn.microsoft.com/en-us/azure/app-service/tutorial-ai-slm-expressjs
使用 Phi-4 SLM 扩展部署 FastAPI 聊天机器人https://learn.microsoft.com/en-us/azure/app-service/tutorial-ai-slm-fastapi
在 App Service 中配置 OpenTelemetry sidecar 容器https://learn.microsoft.com/en-us/azure/app-service/tutorial-sidecar
使用 Azure WebJobs SDK 绑定实现事件驱动作业https://learn.microsoft.com/en-us/azure/app-service/webjobs-sdk-how-to
部署
主题URL
将 Azure App Service 扩展到 Premium v4 层级https://learn.microsoft.com/en-us/azure/app-service/app-service-configure-premium-v4-tier
使用 PowerShell 克隆 Azure App Service 应用https://learn.microsoft.com/en-us/azure/app-service/app-service-web-app-cloning
为 App Service 设置 Azure Pipelines CI/CDhttps://learn.microsoft.com/en-us/azure/app-service/deploy-azure-pipelines
为 App Service 自定义容器设置 CI/CDhttps://learn.microsoft.com/en-us/azure/app-service/deploy-ci-cd-custom-container
管理 Azure App Service 的部署凭据https://learn.microsoft.com/en-us/azure/app-service/deploy-configure-credentials
使用 GitHub Actions 部署 App Service 自定义容器https://learn.microsoft.com/en-us/azure/app-service/deploy-container-github-action
配置到 Azure App Service 的持续部署https://learn.microsoft.com/en-us/azure/app-service/deploy-continuous-deployment
使用 FTP/FTPS 部署到 Azure App Servicehttps://learn.microsoft.com/en-us/azure/app-service/deploy-ftp
使用 GitHub Actions 部署到 Azure App Servicehttps://learn.microsoft.com/en-us/azure/app-service/deploy-github-actions
从本地 Git 存储库部署到 App Servicehttps://learn.microsoft.com/en-us/azure/app-service/deploy-local-git
直接从 ZIP 包运行 Azure App Service 应用https://learn.microsoft.com/en-us/azure/app-service/deploy-run-package
配置 App Service 的部署槽位和暂存环境https://learn.microsoft.com/en-us/azure/app-service/deploy-staging-slots
将 ZIP 和文件包部署到 Azure App Servicehttps://learn.microsoft.com/en-us/azure/app-service/deploy-zip
将 Azure App Service Environment 扩展到 Isolated v4https://learn.microsoft.com/en-us/azure/app-service/environment/app-service-configure-isolated-v4-tier
使用 Terraform 配置 App Service Environment v3https://learn.microsoft.com/en-us/azure/app-service/environment/creation-terraform
将活动 DNS 域迁移到 Azure App Servicehttps://learn.microsoft.com/en-us/azure/app-service/manage-custom-dns-migrate-domain
扩展 Azure App Service 计划和容量https://learn.microsoft.com/en-us/azure/app-service/manage-scale-up
管理 Azure App Service 的操作系统和运行时修补https://learn.microsoft.com/en-us/azure/app-service/overview-patch-os-runtime
使用 Managed Instance 部署 Windows Web 应用https://learn.microsoft.com/en-us/azure/app-service/quickstart-managed-instance
使用 Azure CLI 脚本自动化 App Service 部署https://learn.microsoft.com/en-us/azure/app-service/samples-cli
使用 PowerShell 自动化 App Service 部署https://learn.microsoft.com/en-us/azure/app-service/samples-powershell

评论

支持 Markdown