Open MatisseHack opened 2 years ago
Compute
With a uniform vmss and PatchingMode: AutomaticByPlatform
, I'm seeing an error about a feature that requires manual approval:
The property 'windowsConfiguration.patchSettings.patchMode' is not valid because the 'Microsoft.Compute/InGuestAutoPatchVmssUniformPreview' feature is not enabled for this subscription.
Seems to be fixed with a flexible vmss though
Using terraform, I can only create uniform orchestrations and I'm getting the following unhelpful error message:
compute.VirtualMachineScaleSetsClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidParameter" Message="The property 'windowsConfiguration.patchSettings.patchMode' is not valid because the 'Microsoft.Compute/InGuestAutoPatchVmssUniformPreview' feature is not enabled for this subscription." Target="windowsConfiguration.patchSettings.patchMode"
Using terraform, I can only create uniform orchestrations and I'm getting the following unhelpful error message:
compute.VirtualMachineScaleSetsClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidParameter" Message="The property 'windowsConfiguration.patchSettings.patchMode' is not valid because the 'Microsoft.Compute/InGuestAutoPatchVmssUniformPreview' feature is not enabled for this subscription." Target="windowsConfiguration.patchSettings.patchMode"
I'm facing the same issue. Setting 'upgrade_mode = "Manual"' doesn't fix it. Also for the current provider (ver 3.71.0), there's no explicite patchMode setting to override.
Have the same issue with terraofrm. @JoVuon, @Bouke did you fix your issue?
Describe the bug
It seems to be impossible to create a VMSS using flexible orchestration mode and a Windows Server Core image (e.g.
MicrosoftWindowsServer:WindowsServer:2022-datacenter-azure-edition-core-smalldisk:latest
). It seems that the image enables hotpatching by default and there is no way to get hotpatching to work with flexible scale sets.Command Name
az vmss create
Errors:
To Reproduce:
Run the following command (some common parameters have been left off for brevity):
After receiving an error, I tried manually setting
--patch-mode
. Unfortunately--patch-mode AutomaticByPlatform
is documented as not working, so I tried using--patch-mode Manual
, which didn't solve the original issue and gave a more cryptic error message:'windowsConfiguration'
I was able to solve the
'windowsConfiguration'
error by adding a few more parameters:The original error persisted though.
Expected Behavior
az vmss create
command.az vmss create
should support--patch-mode AutomaticByPlatform
az vmss create
should support--enable-hotpatching false
Environment Summary
Additional Context
I was able to get the above commands to work when I switched the VM SKU to
Standard_DS1_v2
, but the resulting scale set was broken. It could not create new VMs so scaling up would always silently fail (I assume for the same reason as above). Ideally using different VM SKUs would fail in a consistent manner.