码迷,mamicode.com
首页 > 其他好文 > 详细

Azure ARM 模板,VM扩展命令

时间:2017-08-20 14:11:37      阅读:220      评论:0      收藏:0      [点我收藏+]

标签:rtu   virt   auto   copy   variable   for   .sh   machines   arm   

Azure ARM模板中,给虚拟机安装扩展脚本的命令

"resources": [
{
"apiVersion": "[variables(‘apiVersion‘)]",
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(parameters(‘nginxVmNamePrefix‘), copyIndex(),‘/LinuxRMCustomScriptExtension‘)]",
"location": "[resourceGroup().location]",
"dependsOn": [
"[concat(‘Microsoft.Compute/virtualMachines/‘,parameters(‘nginxVmNamePrefix‘),copyIndex())]"
],
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.4",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": [
"[concat(variables(‘nginxInstallScriptPrefix‘), ‘.sh‘)]"
],
"commandToExecute": "[concat(‘sh ‘, variables(‘nginxInstallName‘), ‘.sh‘, ‘ ‘, copyIndex(), ‘ ‘, parameters(‘numberOfWebClusterInstances‘), ‘ ‘, variables(‘webClusterStartIPAddress‘))]"
}
}
}
]

Azure ARM 模板,VM扩展命令

标签:rtu   virt   auto   copy   variable   for   .sh   machines   arm   

原文地址:http://www.cnblogs.com/wanghaixing/p/7399753.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!