- Learning PowerShell DSC(Second Edition)
- James Pogran
- 60字
- 2021-07-02 18:31:26
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
}
}
}
推薦閱讀
- DB2 V9權(quán)威指南
- TensorFlow Lite移動端深度學(xué)習(xí)
- Oracle Database In-Memory(架構(gòu)與實(shí)踐)
- Unity 2020 Mobile Game Development
- Rake Task Management Essentials
- ADI DSP應(yīng)用技術(shù)集錦
- 小學(xué)生C++創(chuàng)意編程(視頻教學(xué)版)
- 領(lǐng)域驅(qū)動設(shè)計(jì):軟件核心復(fù)雜性應(yīng)對之道(修訂版)
- 常用工具軟件立體化教程(微課版)
- D3.js By Example
- Kotlin開發(fā)教程(全2冊)
- 硬件產(chǎn)品設(shè)計(jì)與開發(fā):從原型到交付
- Struts 2.x權(quán)威指南
- Scrapy網(wǎng)絡(luò)爬蟲實(shí)戰(zhàn)
- 輕松學(xué)Scratch 3.0 少兒編程(全彩)