Azure的资源模板部署问题 [英] Azure Resource Template Deployment issues

查看:114
本文介绍了Azure的资源模板部署问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立了各自的DocumentDB,SQL Azure的服务器,存储帐户,天青批天青重点库,HDInsight集群单独的ARM模板。

I have created separate ARM templates each for the DocumentDB, Azure SQL Server, Storage Account, Azure Key Vault, Azure Batch, HDInsight Cluster.

使用新AzureRmResourceGroupDeployment PowerShell命令,当我在我发现了一个奇怪的现象在同一资源组内的循环部署上述资源。而资源组部署DocDB我所有的previously部署资源消失(可能自动删除)。同样的是,当我部署Azure中的SQL Server的情况。

Using New-AzureRmResourceGroupDeployment powershell command when I deploy above resources in a loop within the same resource group I found a strange behaviour. While deploying DocDB all my previously deployed resources in the resource group vanishes (probably deleted automatically). Same is the case when I deploy Azure SQL Server.

有没有人遇到过同样的问题?有没有解决?

Has anybody encountered the same issue? Is there a fix?

推荐答案

新AzureRmResourceGroupDeployment 有一个 -mode 参数可以设置为完整增量

New-AzureRmResourceGroupDeployment has a -mode parameter which can be set to either complete or incremental

完整模式将创建资源组完全一样,你在模板中定义它删除未明确模板中定义的任何资源。

Complete mode will create a resource group exactly as you define it in a template deleting any resource that is not explicitly defined in the template.

增量模式将添加或修改资源,实现什么是模板中指定。忽略那些资源组内present任何额外的资源。增量模式将修改任何pre-现有资源相匹配的是在模板中。

Incremental mode will add or modify resources to achieve what is specified by the template. Ignoring any additional resources that are present within the resource group. Incremental mode will modify any pre-existing resources to match what is in the template.

这篇关于Azure的资源模板部署问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆