NetApp / terraform-provider-netapp-cloudmanager

Terraform provider to create NetAPP OCCM instances, CVO resources, volumes, snapshots, ... in Azure, AWS, GCP.
Mozilla Public License 2.0
17 stars 27 forks source link

Cloud Manager Connector destruction in Azure leaving orphan disk #132

Open cerocool1203 opened 2 years ago

cerocool1203 commented 2 years ago

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
lonico commented 2 years ago

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

DEVOPS-5450

lonico commented 2 years ago

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.

cerocool1203 commented 2 years ago

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

lonico commented 2 years ago

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