Open zhusulai opened 2 months ago
Thanks for taking the time to open this issue. You have written that this issue is in the 2.x version of the provider which is no longer actively maintained. Are you able to upgrade and let us know if this is occurs on the latest provider (3.99 as of writing this)?
@zhusulai the image_build_compute_name
will not trigger a recreate operation, can you check the terraform plan
which property triggers the recreation, the output log should show the details.
@xuzhang3 Output from terraform plan
- image_build_compute_name = "ACR-TASKS-FALLBACK" -> null # forces replacement
@amoresi1-mc The ForceNew
in image_build_compute_name
has been removed in the latest release. Are you able to upgrade AzureRM version?
Is there an existing issue for this?
Community Note
Terraform Version
0.11
AzureRM Provider Version
2.93.1
Affected Resource(s)/Data Source(s)
azurerm_machine_learning_workspace
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
image_build_compute_name
can be set by using Azure CLI without having to destroy and recreate the workspace. Terraform should patch the workspace and set the property based on the config provided.Actual Behaviour
Terraform tries to destroy and recreate the workspace. If the workspace has soft-delete enabled, the recreation will fail, resulting in missing workspaces.
Official documentation also do not mention changing the property will force a replacement. https://registry.terraform.io/providers/hashicorp/azurerm/2.93.1/docs/resources/machine_learning_workspace.html#image_build_compute_name
Steps to Reproduce
change the
image_build_compute_name
property runterraform apply
Important Factoids
No response
References
No response