terraform-provider-netapp-cloudmanager icon indicating copy to clipboard operation
terraform-provider-netapp-cloudmanager copied to clipboard

Cloud Manager Connector destruction in Azure leaving orphan disk

Open cerocool1203 opened this issue 3 years ago • 4 comments

If a Cloud Manager connector needs to be destroyed the deletion leaves the OS disk behind leaving orphan objects. However, the outcome in terraform is successful. image

image

cerocool1203 avatar Sep 12 '22 06:09 cerocool1203

We're reluctant to delete disks, as they may contain user data. But I think it makes sense here.

DEVOPS-5450

lonico avatar Sep 12 '22 15:09 lonico

I was looking to setting deleteOption when creating a VM instance, but the option is not supported in the latest Azure schema:

https://schema.management.azure.com/schemas/2019-07-01/Microsoft.Compute.json#/resourceDefinitions/virtualMachines

2019 looks a bit old, so I'll keep looking.

lonico avatar Sep 12 '22 21:09 lonico

I was looking to setting deleteOption when creating a VM instance, but the option is not supported in the latest Azure schema:

https://schema.management.azure.com/schemas/2019-07-01/Microsoft.Compute.json#/resourceDefinitions/virtualMachines

2019 looks a bit old, so I'll keep looking.

We're reluctant to delete disks, as they may contain user data. But I think it makes sense here.

DEVOPS-5450

Correct, as you will not hold any user data

cerocool1203 avatar Sep 13 '22 05:09 cerocool1203

https://github.com/Azure/azure-resource-manager-schemas/issues/2570

lonico avatar Sep 13 '22 15:09 lonico