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

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:

主站蜘蛛池模板: 聂荣县| 山东省| 洛浦县| 洪洞县| 桃园市| 会宁县| 自治县| 扎兰屯市| 民丰县| 抚州市| 琼结县| 永泰县| 洱源县| 万全县| 遂宁市| 西乡县| 巴林左旗| 达州市| 柘荣县| 阳山县| 民勤县| 陕西省| 温泉县| 汾阳市| 商都县| 枣强县| 广宗县| 西乌珠穆沁旗| 安溪县| 齐齐哈尔市| 永兴县| 铅山县| 黑河市| 儋州市| 嘉鱼县| 衡阳市| 富裕县| 都安| 南川市| 虞城县| 芮城县|