Azure / azure-quickstart-templates

Azure Quickstart Templates
https://aka.ms/azqst
MIT License
14.09k stars 16.14k forks source link

201-vmss-scale-existing doesn't work anymore. #2148

Open smartnose opened 8 years ago

smartnose commented 8 years ago

201-vmss-scale-existing

Issue Details

azuredeploy.json seems out of date (for Azure SDK 2.8 at least).

When running .\Deploy-AzureResourceGroup.ps1, I've got the following error message:

New-AzureRmResourceGroupDeployment : 2:02:09 PM - Resource Microsoft.Compute/virtualMachineScaleSets 'myScaleSetName' failed with message 'Required parameter 'properties' is missing (null).'

I had to insert the following into the json file:

"properties": { "upgradePolicy": { "mode": "Automatic" }, "virtualMachineProfile": { ........................

smartnose commented 8 years ago

Update:

I tried to run it from the browser directly and it works. Not sure what caused it to fail on my local machine (incompatible SDK version?).

Please investigate or close it as you wish.

smartnose commented 8 years ago

Update 2:

Nope. It doesn't work even in portal any more (the portal finally caught up with local SDK?)

singhkays commented 8 years ago

@gatneil @gbowerman Can you guys look at this?

gbowerman commented 8 years ago

@smartnose I just tried this template, deploying to portal, scaling an existing VMSS down to 5 and then back up to 10, and it worked both times. The only circumstances I can think of that would generate that error would be if the VMSS name/resource group does not match an existing one so it tries to create a new one?? @gatneil any other ideas?