使用自定义映像和现有VNET / SUBNET设置的VM比例?

时间:2017-02-20 09:55:46

标签: arm

我正在尝试使用自定义映像和现有的VNET / SUBNET部署VM规模集,遗憾的是它无法运行可以对此有任何帮助吗?

我有两个模板:

  1. templateone使用windows创建VMSS,使用自定义图像创建Vnet。
  2. templatetwo使用linux和现有的VNET创建VMSS。
  3. 我尝试将模板一加入模板二,以便模板三可以在现有的vnett中创建Windows VMSS,遗憾的是它无法运行,有什么帮助吗?

          >>> "virtualMachineProfile": {
             "storageProfile": {
               "osDisk": {
                 "name": "vmssosdisk",
                 "caching": "ReadOnly",
                   "createOption": "FromImage",
                    "osType": "Windows",
                            "image": {
                            "uri": "[parameters('sourceImageVhdUri')]"
    

    以下是错误消息

                  "target": "vmss.properties.osProfile",
                 "message": "Could not find member 'osProfile' on object of type               
                'Properties'. Path 'properties.osProfile', line 1, position        
                "target": "vmss.properties.networkProfile",
             "message": "Could not find member 'networkProfile' on object of   
    
            'Properties'. Path 'properties.networkProfile', line 1, position   
            "code": "BadRequest",
             "message": "The request message is invalid.">
    

0 个答案:

没有答案
相关问题