Plan: 1 to add, 0 to change, 0 to destroy.
azurerm_orchestrated_virtual_machine_scale_set.main: Creating...
╷
│ Error: creating Orchestrated Virtual Machine Scale Set (Subscription: "1f16fd54-0921-4c3d-81b1-edde291f16df"
│ Resource Group Name: "tmvss-resources"
│ Virtual Machine Scale Set Name: "tmvss-OVMSS"): compute.VirtualMachineScaleSetsClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidParameter" Message="'patchSettings.assessmentMode' cannot be set to 'AutomaticByPlatform' as its not supported on Virtual Machine Scale Sets." Target="windowsConfiguration.patchSettings.assessmentMode"
│
│ with azurerm_orchestrated_virtual_machine_scale_set.main,
│ on main.tf line 39, in resource "azurerm_orchestrated_virtual_machine_scale_set" "main":
│ 39: resource "azurerm_orchestrated_virtual_machine_scale_set" "main" {
Expected Behaviour
The documentation states that AutomaticByPlatform is a valid parameter for the patch_assessment_mode parameter, but when I states that AutomaticByPlatform is not supported by VMSS.
Actual Behaviour
Receive an error stating that 'AutomaticByPlatform' as its not supported on Virtual Machine Scale Sets.
Steps to Reproduce
Deploy the Terraform code above. It is from the example in azurerm with a couple extra lines:
Hi @terrymandin, thank you for reaching out.
This error is returned by Azure Service. I created this issue to track this problem which you may subscribe to.
Is there an existing issue for this?
Community Note
Terraform Version
1.7.5
AzureRM Provider Version
3.97.1
Affected Resource(s)/Data Source(s)
azurerm_orchestrated_virtual_machine_scale_set
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The documentation states that AutomaticByPlatform is a valid parameter for the patch_assessment_mode parameter, but when I states that AutomaticByPlatform is not supported by VMSS.
Actual Behaviour
Receive an error stating that 'AutomaticByPlatform' as its not supported on Virtual Machine Scale Sets.
Steps to Reproduce
Deploy the Terraform code above. It is from the example in azurerm with a couple extra lines:
Important Factoids
No response
References
No response