Azure Resource Template Deployment issues

社会主义新天地 提交于 2019-12-11 01:17:59

问题


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

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?


回答1:


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.

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.



来源:https://stackoverflow.com/questions/35078347/azure-resource-template-deployment-issues

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!