AzureStack-QuickStart-Templ.../101-vm-apply-extension-mult.../azuredeploy.json

50 строки
1.4 KiB
JSON

{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"apiProfile": "2018-03-01-hybrid",
"parameters": {
"vmName": {
"type": "string",
"metadata": {
"description": "Name of the existing VM to apply the VM Extensions to"
},
"defaultValue": "[substring(concat('simplewinvm',resourceGroup().Name),0,12)]"
}
},
"variables": {
},
"resources": [
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(parameters('vmName'),'/CustomScriptExtension')]",
"location": "[resourceGroup().location]",
"properties": {
"publisher": "Microsoft.Compute",
"type": "CustomScriptExtension",
"typeHandlerVersion": "1.8",
"autoUpgradeMinorVersion": true,
"settings": {
"commandToExecute": "md c:\\users\\public\\documents\\test",
"fileUris": []
}
}
},
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(parameters('vmName'),'/BGInfo')]",
"location": "[resourceGroup().location]",
"properties": {
"publisher": "Microsoft.Compute",
"type": "BGInfo",
"typeHandlerVersion": "2.1",
"autoUpgradeMinorVersion": true,
"settings": {
"Properties": [
]
}
}
}
],
"outputs": { }
}