Reputation: 702
I tried looking everywhere, but what is the list of available public settings for the Azure VirtualMachine Extensions as described in here?
What I'd like to achieve is to target single nodes in my ARM template, from this question it seems that I can specify the property "nodeName" but I would like to have a written technical documentation on different values.
For the sake of an example, this is a snippet of my template:
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(parameters('virtualMachineName'),'/', parameters('extensionName'))]",
"apiVersion": "2015-06-15",
"location": "[parameters('location')]",
"dependsOn": [
"[concat('Microsoft.Compute/virtualMachines/', parameters('virtualMachineName'))]"
],
"properties": {
"publisher": "Microsoft.Compute",
"type": "CustomScriptExtension",
"typeHandlerVersion": "1.9",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": "[split(concat(parameters('containerUri'), parameters('scriptToExecute')),' ')]",
"commandToExecute": "[concat('powershell -ExecutionPolicy Unrestricted -File ',parameters('scriptToExecute'))]",
"nodeName": "parameters('virtualMachineName')"
},
"protectedSettings": {
"storageAccountName": "[parameters('customScriptStorageAccountName')]",
"storageAccountKey": "[parameters('customScriptStorageAccountKey')]"
}
}
}
Thanks
Upvotes: 0
Views: 145
Reputation: 72171
There is no single place to view those for all extension, but for single extension there are places where they are described, not for all of those.
But to do what you are trying to achieve is easy. The name
property of the extension specifies to which VM are you applying the extension:
"name": "[concat('vm1','/', parameters('extensionName'))]",
this will target Virtual Machine called vm1 (deployment and VM have to be in the same RG). and this will target Virtual Machine called vm2:
"name": "[concat('vm2','/', parameters('extensionName'))]",
ps. there is no nodename
property.
Upvotes: 1