通过ARM模板更新现有子网 [英] Update Existing Subnets via ARM Template
问题描述
大家好,
我想了解如何通过ARM模板更新现有子网。
I wanted to see how we can update an existing subnet via ARM Templates.
子网已经存在已建成。
The Subnets are already Built.
新的ARM模板正在创建路由表,这些表需要与已创建的子网关联。
The New ARM Template is Creating Route tables and these tables need to be associated with the already created Subnet.
可以任何人都指导我如何实现这个目标?
Can anyone guide me with how to achieve this?
Binoy
推荐答案
您还必须在模板中定义当前配置,或使用链接模板更新资源。确保您确实具有当前配置的确切定义以避免意外行为,如果以增量模式部署模板
(默认),则应添加其他配置(例如路由表)。
You will have to define your current configuration in the template as well, or use a linked template to update the resources. Make sure you do have an exact definition of your current configuration to avoid unexpected behavior, if you deploy the template in incremental mode (default) it should add your additional configuration (such as the route tables).
如果要对此进行测试,请部署虚拟网络使用ARM模板的子网,然后将另一个子网添加到模板并再次运行部署。
If you want to test this, deploy a Virtual Network with a subnet using an ARM template, then add another subnet to the template and run the deployment again.
问候,
Wesley
这篇关于通过ARM模板更新现有子网的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!