Delete a stale vSphere Cloud Account.
Symptoms:
Some of your changes could not be applied: Cannot delete with active resources:1
VMware Aria Automation 8.x
See the Workaround section for additional information. ( Before proceeding with the steps below, please take snapshots of all nodes in the cluster to ensure data integrity and facilitate potential rollbacks if needed. )
Workaround:
API : https://{base-url}/iaas/api/machines/
Method : GET
GET https://{base-url}/iaas/api/machines/?$top=1000
"deploymentId": "83xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx",
"provisioningStatus": "READY",
"customProperties": {
"image": "CentOs",
"osType": "LINUX",
"vcUuid": "75xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"provisionGB": "16",
"softwareName": "CentOS 7 (64-bit)",
"datastoreName": "Saveme1",
"resourceGroupName": "",
"cpuCount": "1",
"memoryInMB": "1024",
"imageProfileId": "45xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"flavorProfileId": "45xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"externalId": "50xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx",
"name": "Cloud_Machine_1-xxxxxx-xxxxxxxxxxxxx",
"id": "d7xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxx",
API : /iaas/api/machines/{Id}?forceDelete=true
Method : DELETE
Ex: DELETE https://{base-url}/iaas/api/machines/d7xxxxxx-xxxx-xxxx-xxxx-3axxxxxxxxxx?forceDelete=true
{
"progress": 0,
"status": "INPROGRESS",
"name": "Provisioning",
"id": "20xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"selfLink": "/iaas/api/request-tracker/20xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
API : /iaas/api/request-tracker/{request-id}
Method : GET