官术网_书友最值得收藏!

PowerShell desired state configuration

In the previous section, we talked about ARM and ARM templates that define resources, but they are unable to design the way a VM looks inside, specify which software needs to be installed, and how the deployment should be done. This is why we need to have a look at VM extensions. VM extensions define what should be done after ARM deployment has finished. In general, the extension could be anything that's a script. The best practice is to use PowerShell and it's add-on called Desired State Configuration (DSC).

DSC defines quite similarly to ARM, how the software needs to be installed and configured. The great concept is, that it also monitors whether the desired state of a virtual machine is changing (for example, because an administrator uninstalls or re-configures a machine). If it does, it makes sure within minutes whether the original state will be fulfilled again and rolls back the actions to the desired state:

主站蜘蛛池模板: 革吉县| 永福县| 广安市| 米易县| 华坪县| 山丹县| 温宿县| 岐山县| 山丹县| 衡山县| 瑞安市| 兴安盟| 肃宁县| 昌图县| 深泽县| 札达县| 札达县| 井冈山市| 宜兰市| 鹤山市| 大名县| 昌都县| 昌宁县| 延吉市| 巴彦县| 青龙| 崇州市| 辽阳市| 南江县| 吕梁市| 蓬安县| 岑巩县| 阿巴嘎旗| 吴忠市| 许昌县| 什邡市| 丹寨县| 拜城县| 汉沽区| 邹城市| 潮州市|