【发布时间】:2016-11-10 11:21:22
【问题描述】:
这是我在 Azure 上的内容:
Resource group: 'microservice-1'
App Service: 'app-service-1'
Database: 'database-1'
Resource group: 'microservice-2'
App Service: 'app-service-2'
Database: 'database-2'
Resource group: 'shared-infrastructure'
Database: 'shared-database-1'
两个微服务都使用shared-database-1。每个微服务都包含 ARM 模板脚本,用于创建/更新部署微服务时使用的资源组。在 ARM 脚本中,我们可以定义依赖项 (dependsOn),以便以正确的顺序更新资源,但这仅适用于资源组。
这是我要运行的场景:
Azure 中没有任何内容,我想发布 microservice-1。有没有
我可以使用 Azure / ARM 中的机制,以便 shared-infrastructure
release(ARM模板)在microservice-1之前运行?
【问题讨论】:
标签: azure azure-resource-manager arm-template azure-resource-group