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

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
}
}
}
主站蜘蛛池模板: 桓台县| 文成县| 加查县| 明水县| 武强县| 永年县| 蓬安县| 吴川市| 郧西县| 新营市| 赤水市| 林州市| 汾西县| 拉孜县| 宿松县| 五峰| 孟州市| 德令哈市| 淮南市| 和平区| 甘孜县| 灵宝市| 吴堡县| 甘洛县| 定襄县| 博白县| 景洪市| 扎赉特旗| 东兰县| 凉城县| 嘉鱼县| 苏尼特右旗| 溧阳市| 页游| 平罗县| 巴南区| 那坡县| 南召县| 卢龙县| 孙吴县| 乐亭县|