【发布时间】:2017-01-19 17:49:58
【问题描述】:
我正在寻找 Azure Desired State Configuration JSON 架构的官方文档。我在网上找到的文档和示例可以追溯到很久以前,我觉得我使用的模式不是最新的。我目前正在寻找 Microsoft.Powershell.DSC 的最新架构和字段描述。这是 Visual Studio 提供的架构,但我想全面了解他们期望的每个字段和值。
{
"name": "Microsoft.Powershell.DSC",
"type": "extensions",
"location": "[parameters('location')]",
"apiVersion": "2015-06-15",
"dependsOn": [
"[resourceId('Microsoft.Compute/virtualMachines', parameters('vm-SP1-Name'))]"
],
"tags": {
"displayName": "test"
},
"properties": {
"publisher": "Microsoft.Powershell",
"type": "DSC",
"typeHandlerVersion": "2.9",
"autoUpgradeMinorVersion": true,
"forceUpdateTag": "[parameters('testUpdateTagVersion')]",
"settings": {
"configuration": {
"url": "[concat(parameters('_artifactsLocation'), '/', variables('testArchiveFolder'), '/', variables('testArchiveFileName'))]",
"script": "test.ps1",
"function": "Main"
},
"configurationArguments": {
"nodeName": "[parameters('vm-SP1-Name')]"
}
},
"protectedSettings": {
"configurationUrlSasToken": "[parameters('_artifactsLocationSasToken')]"
}
}
}
【问题讨论】:
标签: powershell azure-resource-manager dsc