我想將帶有相關PS腳本的ARM模板Project發送給第三方。他們可能會在VS中部署選項來進行部署。可以將DSC腳本附加爲ARM項目的一部分,並在部署時從本地磁盤拾取dsc腳本?在設置下,我們有「ModulesUrl」這是可能的,它指向本地磁盤類似於C另一個參數替換此:\ MyProject的\ IISInstall.ps1.zip帶DSC擴展的ARM模板:本地destop的Powershell文件位置
{
"apiVersion": "2015-06-15",
"dependsOn": [
"[concat('Microsoft.Compute/virtualMachines/', parameters('webSrvVmName'))]"
],
"location": "[resourceGroup().location]",
"name": "qawebsrv/iisinstall",
"properties": {
"publisher": "Microsoft.Powershell",
"type": "DSC",
"typeHandlerVersion": "2.19",
"autoUpgradeMinorVersion": true,
"settings": {
"ModulesUrl": "https://dscscript.blob.core.windows.net/dscscripts/IISInstall.ps1.zip",
"ConfigurationFunction": "[variables('configurationFunction')]",
"Properties": {},
"SasToken": "",
"wmfVersion": "4.0"
},
"protectedSettings": {}
},
"tags": {
"displayName": "VM Extensions"
},
"type": "Microsoft.Compute/virtualMachines/extensions"
}