mcpField
A
azure-container-apps

azure-container-apps

github.com/microsoftdocs云与 DevOps7961.3k 次安装3 天前更新
代码仓库

关于 azure-container-apps

azure-container-apps 是面向 Agent 的 Azure Container Apps 指南技能,涵盖设计、配置、故障排查和部署。它结合本地速查内容与远程文档获取,覆盖运维和架构主题。

主要功能

  1. 01运行时与部署故障排查
  2. 02安全与配置指南
  3. 03架构和设计模式
  4. 04限制、配额与容量规划
  5. 05部署和集成指南

适用场景

  1. 01诊断容器启动或健康探测失败
  2. 02选择计划、工作负载配置文件或托管选项
  3. 03检查安全和网络配置
  4. 04规划 CI/CD 或应用迁移

MCP 相关

此技能可通过 mcp_microsoftdocs 的 microsoft_docs_fetch 工具获取 Microsoft 文档。其指南也涵盖 MCP 服务器问题和 Azure 托管选项。

安装

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

$npx skills add https://github.com/microsoftdocs/agent-skills --skill azure-container-apps

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

详细介绍

Azure Container Apps 技能

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

如何使用此技能

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-L54诊断和修复 Container Apps 运行时问题:启动/退出失败、映像拉取、运行状况探测、存储装载、端口、容量、Arc/MCP 问题,以及使用日志/调试控制台。
最佳实践L55-L61部署、冷启动和运行时调优指南:蓝绿发布、降低扩展延迟,以及优化 Azure Container Apps 中的 Java 内存用量。
决策L62-L82Azure Container Apps 规划与成本优化指南:容量、计划、工作负载配置文件、GPU、托管选项,以及从 Heroku、Functions、Java/Spring/Tomcat 和 MCP 服务迁移。
架构与设计模式L83-L88Azure Container Apps 中 Java 微服务的架构与模式,包括 Eureka 高可用性集群、启用 AI 的 PetClinic,以及端到端微服务设计最佳实践。
限制与配额L89-L95Container Apps 的限制、配额和容量规则,以及如何查看当前限制、申请提高配额,并了解扩展/行为约束。
安全L96-L135Container Apps 的身份验证、标识和网络安全:Entra 和社交登录、mTLS、证书/CORS/域、机密和托管标识、RBAC/策略、专用终结点、防火墙和 WAF。
配置L136-L172使用 ARM、YAML、CLI 和 Bicep 配置 Container Apps 环境、网络、入口、修订版本、扩展(KEDA/Dapr/Functions)、工作负载配置文件、Java 功能、存储和维护。
集成与编码模式L173-L196将 Container Apps 相互连接以及连接到外部服务的模式(Dapr、Spring、Front Door、Private Link),以及 OpenTelemetry 导出和代码解释器/动态会话集成。
部署L197-L204部署和自动化 Container Apps:使用 GitHub Actions/Azure Pipelines 进行 CI/CD、Docker Compose 部署、启用 Arc 的 Kubernetes、日志迁移,以及自托管运行器/作业。
故障排除
主题URL
排查 Azure Arc Container Apps 依赖项和运行时问题https://learn.microsoft.com/en-us/azure/container-apps/azure-arc-troubleshoot
使用 Container Apps 调试控制台进行就地故障排除https://learn.microsoft.com/en-us/azure/container-apps/container-debug-console
使用动态日志级别排查 Container Apps 上的 Java 应用https://learn.microsoft.com/en-us/azure/container-apps/java-dynamic-log-level
排查 Azure Container Apps 上的 MCP 服务问题https://learn.microsoft.com/en-us/azure/container-apps/mcp-troubleshooting
诊断 Azure Container Apps 中的容器退出故障https://learn.microsoft.com/en-us/azure/container-apps/troubleshoot-container-create-failures
排查 Azure Container Apps 中的容器启动故障https://learn.microsoft.com/en-us/azure/container-apps/troubleshoot-container-start-failures
修复 Azure Container Apps 中常见的部署故障https://learn.microsoft.com/en-us/azure/container-apps/troubleshoot-deployment-errors
解决 Azure Container Apps 环境容量错误https://learn.microsoft.com/en-us/azure/container-apps/troubleshoot-environment-capacity
排查 Azure Container Apps 中的运行状况探测故障https://learn.microsoft.com/en-us/azure/container-apps/troubleshoot-health-probe-failures
诊断并修复 Container Apps 中的映像拉取故障https://learn.microsoft.com/en-us/azure/container-apps/troubleshoot-image-pull-failures
解决 Azure Container Apps 中的 OCI 运行时错误https://learn.microsoft.com/en-us/azure/container-apps/troubleshoot-open-container-initiative-errors
修复 Azure Container Apps 中的存储装载故障https://learn.microsoft.com/en-us/azure/container-apps/troubleshoot-storage-mount-failures
解决 Azure Container Apps 中的目标端口配置错误https://learn.microsoft.com/en-us/azure/container-apps/troubleshoot-target-port-settings
诊断并解决 Azure Container Apps 中的问题https://learn.microsoft.com/en-us/azure/container-apps/troubleshooting
最佳实践
主题URL
在 Container Apps 中实施蓝绿部署https://learn.microsoft.com/en-us/azure/container-apps/blue-green-deployment
在 Container Apps 中应用减少冷启动的最佳实践https://learn.microsoft.com/en-us/azure/container-apps/cold-start
优化 Azure Container Apps 中的 Java 内存使用https://learn.microsoft.com/en-us/azure/container-apps/java-memory-fit
决策
主题URL
规划 Azure Arc Container Apps 集群容量和设计https://learn.microsoft.com/en-us/azure/container-apps/azure-arc-plan
了解 Azure Container Apps 的计费方式和成本计算https://learn.microsoft.com/en-us/azure/container-apps/billing
选择 Container Apps 的代码到云部署选项https://learn.microsoft.com/en-us/azure/container-apps/code-to-cloud-options
选择 Azure 容器托管选项https://learn.microsoft.com/en-us/azure/container-apps/compare-options
规划和组织 Azure Container Apps 环境https://learn.microsoft.com/en-us/azure/container-apps/environment
评估旧版仅使用 Consumption 的 Container Apps 环境https://learn.microsoft.com/en-us/azure/container-apps/environment-type-consumption-only
为 Azure Container Apps 选择合适的 GPU 类型https://learn.microsoft.com/en-us/azure/container-apps/gpu-types
为 MCP 服务选择 Azure 托管服务https://learn.microsoft.com/en-us/azure/container-apps/mcp-choosing-azure-service
将 Azure Container Apps Functions v1 迁移到 v2https://learn.microsoft.com/en-us/azure/container-apps/migrate-functions
规划从 Heroku 迁移到 Azure Container Appshttps://learn.microsoft.com/en-us/azure/container-apps/migrate-heroku-overview
使用 GitHub Copilot 将 Java 应用现代化并迁移到 Azure Container Appshttps://learn.microsoft.com/en-us/azure/container-apps/migrate-java-github-copilot-app-modernization
评估 Spring Boot 应用并将其迁移到 Azure Container Appshttps://learn.microsoft.com/en-us/azure/container-apps/migrate-spring-boot
规划 Spring Cloud 应用迁移到 Azure Container Appshttps://learn.microsoft.com/en-us/azure/container-apps/migrate-spring-cloud
将现有 Tomcat 应用迁移到 Azure Container Appshttps://learn.microsoft.com/en-us/azure/container-apps/migrate-tomcat
比较 Azure Container Apps 计划类型https://learn.microsoft.com/en-us/azure/container-apps/plans
选择 Container Apps 计算和计费结构https://learn.microsoft.com/en-us/azure/container-apps/structure
选择和配置 Azure Container Apps 工作负载配置文件https://learn.microsoft.com/en-us/azure/container-apps/workload-profiles-overview
架构与设计模式
主题URL
在 Container Apps 上设计高可用 Eureka 集群https://learn.microsoft.com/en-us/azure/container-apps/java-eureka-server-highly-available
在 Azure Container Apps 上设计微服务架构https://learn.microsoft.com/en-us/azure/container-apps/microservices
限制与配额
主题URL
Azure Container Apps 限制和行为常见问题https://learn.microsoft.com/en-us/azure/container-apps/faq
申请并调整 Azure Container Apps 配额https://learn.microsoft.com/en-us/azure/container-apps/quota-requests
查看 Azure Container Apps 配额和限制https://learn.microsoft.com/en-us/azure/container-apps/quotas
安全性
主题URL
在 Container Apps 中使用内置身份验证和授权https://learn.microsoft.com/en-us/azure/container-apps/authentication
为 Azure Container Apps 配置 Microsoft Entra 身份验证https://learn.microsoft.com/en-us/azure/container-apps/authentication-entra
在 Azure Container Apps 中启用 Facebook 身份验证https://learn.microsoft.com/en-us/azure/container-apps/authentication-facebook
为 Azure Container Apps 配置 GitHub 身份验证https://learn.microsoft.com/en-us/azure/container-apps/authentication-github
为 Azure Container Apps 配置 Google 身份验证https://learn.microsoft.com/en-us/azure/container-apps/authentication-google
为 Container Apps 配置自定义 OpenID Connect 身份验证https://learn.microsoft.com/en-us/azure/container-apps/authentication-openid
为 Azure Container Apps 配置 X (Twitter) 身份验证https://learn.microsoft.com/en-us/azure/container-apps/authentication-twitter
为 Container Apps 设置客户端证书 (mTLS) 身份验证https://learn.microsoft.com/en-us/azure/container-apps/client-certificate-authorization
为 Azure Container Apps 配置 CORShttps://learn.microsoft.com/en-us/azure/container-apps/cors
在 Container Apps 中管理自定义域和 TLS 证书https://learn.microsoft.com/en-us/azure/container-apps/custom-domains-certificates
为 Azure Container Apps 配置自定义域和托管证书https://learn.microsoft.com/en-us/azure/container-apps/custom-domains-managed-certificates
在 Container Apps 请求中使用 Dapr APP_API_TOKENhttps://learn.microsoft.com/en-us/azure/container-apps/dapr-authentication-token
保护 Dapr 组件与 Azure 服务的连接https://learn.microsoft.com/en-us/azure/container-apps/dapr-component-connect-services
在 Container Apps 中配置自定义环境 DNS 后缀和 TLShttps://learn.microsoft.com/en-us/azure/container-apps/environment-custom-dns-suffix
使用 NSG 和 UDR 规则强化 Container Apps VNet 的安全性https://learn.microsoft.com/en-us/azure/container-apps/firewall-integration
为 Container Apps 上的 Functions 存储应用级机密https://learn.microsoft.com/en-us/azure/container-apps/functions-secrets-app-level
在 Container Apps 上配置 Functions 主机密钥存储https://learn.microsoft.com/en-us/azure/container-apps/functions-secrets-host-keys
管理 Container Apps 上 Functions 的应用机密和访问机密https://learn.microsoft.com/en-us/azure/container-apps/functions-secrets-tutorial
使用专用终结点保护 Container Appshttps://learn.microsoft.com/en-us/azure/container-apps/how-to-use-private-endpoint
为 Azure Container Apps 配置 IP 入口限制https://learn.microsoft.com/en-us/azure/container-apps/ip-restrictions
从 Key Vault 导入和管理 Container Apps 证书https://learn.microsoft.com/en-us/azure/container-apps/key-vault-certificates-manage
在 Azure Container Apps 中安全地管理机密https://learn.microsoft.com/en-us/azure/container-apps/manage-secrets
在 Azure Container Apps 中使用托管标识https://learn.microsoft.com/en-us/azure/container-apps/managed-identity
通过托管标识配置 ACR 映像拉取https://learn.microsoft.com/en-us/azure/container-apps/managed-identity-image-pull
使用 Entra ID 保护 Azure Container Apps 上的 MCP 服务https://learn.microsoft.com/en-us/azure/container-apps/mcp-authentication
在 Azure Container Apps 中启用和使用 mTLShttps://learn.microsoft.com/en-us/azure/container-apps/mtls
使用 Azure Policy 内置策略定义管理 Container Appshttps://learn.microsoft.com/en-us/azure/container-apps/policy-reference
为 Container Apps Sandboxes 配置出口策略https://learn.microsoft.com/en-us/azure/container-apps/sandboxes-egress-policies
为 Container Apps Sandboxes 分配所需的 RBAC 角色https://learn.microsoft.com/en-us/azure/container-apps/sandboxes-get-started
管理 Container Apps Sandboxes 的安全性和角色https://learn.microsoft.com/en-us/azure/container-apps/sandboxes-overview
在 Azure Container Apps 中应用安全最佳做法https://learn.microsoft.com/en-us/azure/container-apps/secure-deployment
在 Container Apps 中使用托管标识挂载 Azure Fileshttps://learn.microsoft.com/en-us/azure/container-apps/storage-mounts-azure-files
为 Container Apps 配置基于令牌存储的身份验证https://learn.microsoft.com/en-us/azure/container-apps/token-store
通过 Azure Firewall 保护 Container Apps 的出口流量https://learn.microsoft.com/en-us/azure/container-apps/use-azure-firewall
通过 Azure Firewall 控制 Container Apps 的出站流量https://learn.microsoft.com/en-us/azure/container-apps/user-defined-routes
使用 Application Gateway WAF 保护 Container Appshttps://learn.microsoft.com/en-us/azure/container-apps/waf-app-gateway
配置
主题URL
Azure Container Apps 的 ARM 和 YAML 架构参考https://learn.microsoft.com/en-us/azure/container-apps/azure-resource-manager-api-spec
为 Container Apps 启用并验证机密计算https://learn.microsoft.com/en-us/azure/container-apps/confidential-compute
为 Azure Container Apps 配置虚拟网络https://learn.microsoft.com/en-us/azure/container-apps/custom-virtual-networks
配置 Container Apps 中 Dapr 组件的复原能力https://learn.microsoft.com/en-us/azure/container-apps/dapr-component-resiliency
在 Azure Container Apps 环境中配置 Dapr 组件https://learn.microsoft.com/en-us/azure/container-apps/dapr-components
使用 Bicep 和 KEDA 扩缩容器化 Dapr 应用https://learn.microsoft.com/en-us/azure/container-apps/dapr-keda-scaling
使用部署标签管理 Container Apps 修订版本https://learn.microsoft.com/en-us/azure/container-apps/deployment-labels
在现有 Container Apps 上配置 Dapr 设置https://learn.microsoft.com/en-us/azure/container-apps/enable-dapr
在 Azure Container Apps 中配置环境变量https://learn.microsoft.com/en-us/azure/container-apps/environment-variables
将 Functions 触发器映射到 Container Apps 中的 KEDA 扩缩容https://learn.microsoft.com/en-us/azure/container-apps/functions-keda-mappings
通过 CLI 管理 Container Apps 中的 Azure Functions 实例https://learn.microsoft.com/en-us/azure/container-apps/functions-manage
为 Container Apps 上的 Functions 配置自定义 KEDA 扩缩容规则https://learn.microsoft.com/en-us/azure/container-apps/functions-scale-rule-override
在 Container Apps 中配置启动、存活和就绪探测https://learn.microsoft.com/en-us/azure/container-apps/health-probes
为 Container Apps 配置环境级入口https://learn.microsoft.com/en-us/azure/container-apps/ingress-environment-configuration
在 Container Apps 中使用初始化容器配置 Java APM Agenthttps://learn.microsoft.com/en-us/azure/container-apps/java-application-performance-management-config
在 Container Apps 中配置 Java 构建环境变量https://learn.microsoft.com/en-us/azure/container-apps/java-build-environment-variables
访问 Container Apps 中托管 Java 组件的日志https://learn.microsoft.com/en-us/azure/container-apps/java-component-logs
在 Azure Container Apps 中启用 Java 优化功能https://learn.microsoft.com/en-us/azure/container-apps/java-feature-switch
在 Azure Container Apps 中启用并使用 Java 指标https://learn.microsoft.com/en-us/azure/container-apps/java-metrics
为 Azure Container Apps 环境配置网络https://learn.microsoft.com/en-us/azure/container-apps/networking
为 Container Apps 配置计划维护时段https://learn.microsoft.com/en-us/azure/container-apps/planned-maintenance
为 Azure Container Apps 配置高级入口https://learn.microsoft.com/en-us/azure/container-apps/premium-ingress
为 Container Apps 配置专用终结点和 DNShttps://learn.microsoft.com/en-us/azure/container-apps/private-endpoints-with-dns
配置和管理 Container Apps 修订版本https://learn.microsoft.com/en-us/azure/container-apps/revisions-manage
使用基于规则的路由配置自定义域https://learn.microsoft.com/en-us/azure/container-apps/rule-based-routing-custom-domain
使用 Bicep 定义 Azure Container Apps 沙盒组https://learn.microsoft.com/en-us/azure/container-apps/sandboxes-quickstart-bicep
配置服务发现复原策略https://learn.microsoft.com/en-us/azure/container-apps/service-discovery-resiliency
在 Container Apps 中启用会话亲和性(粘性会话)https://learn.microsoft.com/en-us/azure/container-apps/sticky-sessions
为 Azure Container Apps 配置存储装载https://learn.microsoft.com/en-us/azure/container-apps/storage-mounts
配置 Container Apps 修订版本之间的流量拆分https://learn.microsoft.com/en-us/azure/container-apps/traffic-splitting
为 Azure Container Apps 环境配置 VNet 集成https://learn.microsoft.com/en-us/azure/container-apps/vnet-custom
使用 Azure CLI 配置 Container Apps 工作负载配置文件https://learn.microsoft.com/en-us/azure/container-apps/workload-profiles-manage-cli
在门户中管理 Container Apps 工作负载配置文件https://learn.microsoft.com/en-us/azure/container-apps/workload-profiles-manage-portal
集成与编码模式
主题URL
在 Container Apps 中实现直接微服务调用https://learn.microsoft.com/en-us/azure/container-apps/communicate-between-microservices
使用内置服务发现连接 Azure Container Appshttps://learn.microsoft.com/en-us/azure/container-apps/connect-apps
在门户中为 Azure 服务创建 Dapr 组件https://learn.microsoft.com/en-us/azure/container-apps/dapr-component-connection
通过 Front Door Premium 公开专用 Azure Container Appshttps://learn.microsoft.com/en-us/azure/container-apps/front-door-custom-virtual-network-private-link
通过 Private Link 将 Azure Container Apps 与 Front Door 集成https://learn.microsoft.com/en-us/azure/container-apps/how-to-integrate-with-azure-front-door
将 Spring 的 Admin 与 Container Apps 上的 Eureka 集成https://learn.microsoft.com/en-us/azure/container-apps/java-admin-eureka-integration
将 Azure Container Apps 连接到托管的 Spring Config Serverhttps://learn.microsoft.com/en-us/azure/container-apps/java-config-server
在 Azure Container Apps 中使用托管的 Spring Gatewayhttps://learn.microsoft.com/en-us/azure/container-apps/java-gateway-for-spring
为 Container Apps 配置 OpenTelemetry Agenthttps://learn.microsoft.com/en-us/azure/container-apps/opentelemetry-agents
通过 OpenTelemetry 将 Container Apps 遥测数据导出到 Datadoghttps://learn.microsoft.com/en-us/azure/container-apps/opentelemetry-export-datadog
为 Container Apps 配置 OpenTelemetry 导出到 Dynatracehttps://learn.microsoft.com/en-us/azure/container-apps/opentelemetry-export-dynatrace
为 Container Apps 配置 OpenTelemetry 导出到 Elastichttps://learn.microsoft.com/en-us/azure/container-apps/opentelemetry-export-elastic
为 Container Apps 配置 OpenTelemetry 导出到 New Relichttps://learn.microsoft.com/en-us/azure/container-apps/opentelemetry-export-new-relic
使用 Python SDK 管理 Container Apps 沙盒https://learn.microsoft.com/en-us/azure/container-apps/sandboxes-quickstart-python-sdk
将 AutoGen 代码解释器会话与 Azure Container Apps 集成https://learn.microsoft.com/en-us/azure/container-apps/sessions-tutorial-autogen
将 Azure Container Apps 代码解释器会话与 LangChain 搭配使用https://learn.microsoft.com/en-us/azure/container-apps/sessions-tutorial-langchain
通过 Azure Container Apps 动态会话执行 JavaScripthttps://learn.microsoft.com/en-us/azure/container-apps/sessions-tutorial-nodejs
在 Azure Container Apps 上使用 Semantic Kernel 代码解释器会话https://learn.microsoft.com/en-us/azure/container-apps/sessions-tutorial-semantic-kernel
使用 Azure Container Apps 会话池运行 shell 命令https://learn.microsoft.com/en-us/azure/container-apps/sessions-tutorial-shell
在 Azure Container Apps 中使用平台托管的 MCP 和动态 shell 会话https://learn.microsoft.com/en-us/azure/container-apps/sessions-tutorial-shell-mcp
部署
主题URL
使用 Azure Pipelines 自动化 Container Apps 修订版本https://learn.microsoft.com/en-us/azure/container-apps/azure-pipelines
将 Docker Compose Agent 部署到 Azure Container Appshttps://learn.microsoft.com/en-us/azure/container-apps/compose-agent
使用 GitHub Actions 自动化 Container Apps 修订版本https://learn.microsoft.com/en-us/azure/container-apps/github-actions
通过 Azure CLI 生成 Container Apps GitHub Actionshttps://learn.microsoft.com/en-us/azure/container-apps/github-actions-cli
将 Container Apps 日志记录从 Log Analytics 迁移到 Azure Monitorhttps://learn.microsoft.com/en-us/azure/container-apps/migrate-logs-azure-monitor

评论

支持 Markdown