Closed jkroepke closed 2 months ago
The remote tests are green in https://github.com/cloudeteer/terraform-azurerm-vm/pull/29, however this can't be the truth.
The remote (e2e) test was successful because it is not setting hotpatching_enabled = true
.
The local (unit) test was successful because the error you get is not thrown by the provider, but the Azure API during the deployment.
A solution can be a validation {}
block on input variable hotpatching_enabled
.
Feature Description
Using
Results into the following error
this error feels strange:
The remote tests are green in https://github.com/cloudeteer/terraform-azurerm-vm/pull/29, however this can't be the truth. If
bypass_platform_safety_checks_on_user_schedule_enabled = true
andhotpatching_enabled = true
and error has occurred and the terraform test should not pass.https://github.com/cloudeteer/terraform-azurerm-vm/blob/ac6a4db22de74cdc9f3d2a7787b144be32093ce5/variables.tf#L145-L154
Use Case
N/A
Additional Information
No response
Privacy Statement
Code of Conduct