Merge pull request #14 from mspnp/andrew/ext-settings
Add support for protectedSettings on VM extensions
This commit is contained in:
Коммит
98b3fd9b54
|
@ -82,7 +82,8 @@
|
|||
"Paths": "c:\\test",
|
||||
"Processes": "test.exe"
|
||||
}
|
||||
}
|
||||
},
|
||||
"protectedSettingsConfig": { }
|
||||
},
|
||||
{
|
||||
"name": "malware",
|
||||
|
@ -92,7 +93,8 @@
|
|||
"autoUpgradeMinorVersion": true,
|
||||
"settingsConfigMapperUri": "https://raw.githubusercontent.com/mspnp/template-building-blocks/master/templates/resources/Microsoft.Compute/virtualMachines/extensions/vm-extension-passthrough-settings-mapper.json",
|
||||
"settingsConfig": {
|
||||
}
|
||||
},
|
||||
"protectedSettingsConfig": { }
|
||||
}
|
||||
|
||||
],
|
||||
|
|
|
@ -33,7 +33,8 @@
|
|||
"Paths": "c:\\test",
|
||||
"Processes": "test.exe"
|
||||
}
|
||||
}
|
||||
},
|
||||
"protectedSettingsConfig": { }
|
||||
},
|
||||
{
|
||||
"name": "malware",
|
||||
|
@ -43,7 +44,8 @@
|
|||
"autoUpgradeMinorVersion": true,
|
||||
"settingsConfigMapperUri": "https://raw.githubusercontent.com/mspnp/template-building-blocks/master/templates/resources/Microsoft.Compute/virtualMachines/extensions/vm-extension-passthrough-settings-mapper.json",
|
||||
"settingsConfig": {
|
||||
}
|
||||
},
|
||||
"protectedSettingsConfig": { }
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -55,8 +57,8 @@
|
|||
"publisher": "Microsoft.Azure.Security",
|
||||
"type": "IaaSAntimalware",
|
||||
"typeHandlerVersion": "1.3",
|
||||
"settingsMapperUri": "https://raw.githubusercontent.com/mspnp/template-building-blocks/master/templates/resources/Microsoft.Compute/virtualMachines/extensions/vm-extension-passthrough-settings-mapper.json",
|
||||
"properties": {
|
||||
"settingsConfigMapperUri": "https://raw.githubusercontent.com/mspnp/template-building-blocks/master/templates/resources/Microsoft.Compute/virtualMachines/extensions/vm-extension-passthrough-settings-mapper.json",
|
||||
"settingsConfig": {
|
||||
"AntimalwareEnabled": true,
|
||||
"RealtimeProtectionEnabled": "false",
|
||||
"ScheduledScanSettings": {
|
||||
|
@ -70,7 +72,8 @@
|
|||
"Paths": "c:\\test",
|
||||
"Processes": "test.exe"
|
||||
}
|
||||
}
|
||||
},
|
||||
"protectedSettingsConfig": { }
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
},
|
||||
"variables": {
|
||||
"instance": {
|
||||
"settings": "[parameters('source')]",
|
||||
"protectedSettings": { }
|
||||
"settings": "[parameters('source').settingsConfig]",
|
||||
"protectedSettings": "[parameters('source').protectedSettingsConfig]"
|
||||
}
|
||||
|
||||
},
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
"parentTemplateUniqueString": "[concat(variables('templateUniqueString'), '-setting', parameters('iteration'))]"
|
||||
}
|
||||
},
|
||||
"source": { "value": "[parameters('source').settingsConfig]" },
|
||||
"source": { "value": "[parameters('source')]" },
|
||||
"context": { "value": "[parameters('context')]" }
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче