Is it possible to apply multiple DSC configurations to one vm through Azure Resource Manager?
Currently I am using something like this:
{
"apiVersion": "2015-06-15",
"dependsOn": [
"[concat('Microsoft.Compute/virtualMachines/', variables('vm_name'))]"
],
"location": "[resourceGroup().location]",
"name": "DSCSetup",
"properties": {
"publisher": "Microsoft.Powershell",
"type": "DSC",
"typeHandlerVersion": "2.20",
"autoUpgradeMinorVersion": true,
"settings": {
"modulesUrl": "[concat('https://', variables('sa_name'), '.blob.core.windows.net/.../dsc.ps1.zip')]",
"configurationFunction": "dsc.ps1\\Main",
"properties": {
"MachineName": "[variables('vm_name')]",
"UserName": "[parameters('vm_user')]"
}
},
"protectedSettings": {}
},
"type": "extensions"
}
If not, can you merge multiple DSCs automatically?
Scenario is:
- Have multiple DSCs
- One DSC for IIS + ASP.Net
- One DSC to create Site1
- Another DSC to create Site2
- In Dev deploy Site1 and Site2 to one machine
- In Production deploy to seperate machines, maybe even in Availability Sets ...
- (Be prepared to use seperate containers in the future)