zoukankan      html  css  js  c++  java
  • Azure ARMTemplate模板,VM扩展命令

    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'))]"
    }
    }
    }
    ]

  • 相关阅读:
    LwIP源代码文件目录解析
    规划2014!
    test
    111
    df
    第一次北京之行
    Android02--debug.keystore的注册信息
    Android01--开发环境搭建
    dfd
    1007
  • 原文地址:https://www.cnblogs.com/oceanwang/p/7399753.html
Copyright © 2011-2022 走看看