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

Hardcoded data

Configuration data can be hardcoded inside DSC configuration files, but this is not optimal in most cases. You will mostly use this for static sets of information or to reduce redundant code, as shown in the following code snippet:

    configuration FooBar
{
$features = @('Web-Server', 'Web-Asp-Net45')

Foreach($feature in $features){
WindowsFeature "Install$($feature)"
{
Name = $feature
}
}
}
主站蜘蛛池模板: 北宁市| 阆中市| 福州市| 永济市| 安新县| 巴林左旗| 建始县| 秦安县| 贵德县| 资源县| 三门县| 城市| 泗阳县| 繁峙县| 内黄县| 开阳县| 长汀县| 西乌珠穆沁旗| 敦煌市| 蒙城县| 日照市| 乌恰县| 承德县| 曲水县| 临夏市| 佛坪县| 隆化县| 广饶县| 卢湾区| 延安市| 沁源县| 金坛市| 仙桃市| 清水河县| 永康市| 逊克县| 海城市| 泗水县| 通渭县| 防城港市| 鹤峰县|