title: Azure Template: Parameter 'osProfile' is not allowed and Required parameter 'osProfile' is missing
body: <p>I'm trying create a Auto Scale using VHD and this is my template:</p>
  
  <pre><code>...
  {
    "type": "Microsoft.Compute/virtualMachineScaleSets",
    "sku": {
      "name": "[parameters('vmSize')]",
      "tier": "Standard",
      "capacity": "[parameters('instanceCount')]"
    },
    "name": "[variables('namingInfix')]",
    "apiVersion": "2016-03-30",
    "location": "[variables('location')]",
    "tags": {
      "displayName": "VMScaleSet"
    },
    "properties": {
      "overprovision": "true",
      "upgradePolicy": {
        "mode": "Manual"
      },
      "virtualMachineProfile": {
        "storageProfile": {
          "osDisk": {
            "name": "vmname",
            "osType": "Linux",
            "caching": "ReadWrite",
            "vhd": {
              "uri": "https://myvhd.vhd"
            },
            "createOption": "Attach"
          }
        },
        "osProfile": {
          "computerNamePrefix": "[parameters('vmSSName')]",
          "adminUsername": "[parameters('adminUsername')]",
          "adminPassword": "[parameters('adminPassword')]"
        },
        "networkProfile": {
        }
      }
    }
  }
  ...
  </code></pre>
  
  <p>Unfortunately I received this error when I passed the <code>osProfile</code>:</p>
  
  <pre><code>Parameter 'osProfile' is not allowed. (Code: InvalidParameter)
  </code></pre>
  
  <p>But if I remove the <code>osProfile</code> I received this error:</p>
  
  <pre><code>Required parameter 'osProfile' is missing (null). (Code: InvalidParameter)
  </code></pre>