本文介绍了自动化NSG部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在研究通过VSTS或脚本自动应用NSG的选项。我开始的是我需要应用的所有NSG的JSON格式。 NSG都应用于VNET级别的子网。
目前我有一个管道将推出使用PowerShell脚本到子网。有没有人尝试过更好的方法? LogicApps或任何其他方法?
要求很简单:
- 我需要应用单个NSG,I
- 我需要将所有NSG应用于所有子网以确保它们是正确的并反转某人手动进行的任何更改。我可以使用子网的名称进行更新,并且正确的NSG将应用于子网
- 我需要将所有NSG应用于所有子网。所有更改都应该记录在VSTS的Repo中。
解决方案
Hi,
I am investigating options to automatically apply NSG's via VSTS or scripts. What I am starting with is JSON format of all the NSG's that I would need to apply. The NSG's are all applied to the subnets on the VNET level.
Currently I have a pipeline that will push out using powershell scripts out to the subnet. Is there a better way that anyone has tried? LogicApps or any other method?
The requirements are simple:
- I need to apply single NSG, I can just update with the name of the subnet and the right NSG will apply to the subnet
- I need to apply all NSG to all subnet's to ensure they are correct and reverse any changes that someone has made manually. All changes should be recorded in a Repo in VSTS.
解决方案
这篇关于自动化NSG部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!