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

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:

主站蜘蛛池模板: 黔江区| 西乡县| 上饶市| 栾城县| 台中市| 潞城市| 孝昌县| 隆安县| 五峰| 壶关县| 仲巴县| 普兰店市| 六盘水市| 饶河县| 紫金县| 漾濞| 都昌县| 富锦市| 科技| 庆元县| 昌都县| 镇平县| 平塘县| 明溪县| 兴城市| 隆昌县| 长顺县| 莱阳市| 利津县| 隆林| 和龙市| 澳门| 酒泉市| 嵩明县| 塔城市| 赣榆县| 宁化县| 南靖县| 凤台县| 茌平县| 西城区|