Machines fail to unregister and cannot be onboarded again. This article provides information on how to put these machines back to Discovered state.
After performing the unregister action on an onboarded machine, the machine remains in "onboarded" state in the resource view and cannot be added to a new onboarding plan.
VMware is aware of this issue. Currently there is no resolution.
Workaround:
Manually remove the stale entries using the REST API or execute the attached workflow.
NOTE:
code.vmware.kb.346013.unregister.vm.minimal.package package file.GET https://AriaAutoFQDN/deployment/api/resources?search=VM-Name001
AriaAutoFQDN with the FQDN of your Aria Automation environment.VM-Name001 with the affected VM name.20f7eb1b-0cfc-3af0-b364-963face2eb4c). This will be used as the compute id in the next step.GET https://AriaAutoFQDN/provisioning/uerp/resources/compute/<compute id>
descriptionLink from the output.{
"descriptionLink": "/resources/compute-descriptions/c51a5472-72e8-4ded-afe6-6e41f1caa3b4",
...
}
DELETE https://AriaAutoFQDN/provisioning/uerp/<ComputeDescriptionLink>
diskLinks field from the GET compute response in Step 2:
GET https://AriaAutoFQDN/provisioning/uerp/<diskLink>
descriptionLink field in the response and send a DELETE command.descriptionLink and can be skipped.
DELETE https://AriaAutoFQDN/provisioning/uerp/<descriptionLink>
descriptionLink, take its response body from the GET command and edit it as follows:
tenantLinks field, remove entries that start with /owner/provisioning/auth/csp/users and /provisioning/resources/projects.descriptionLink, ownerAuthLink, and projectAuthLink fields entirely.customProperties map, remove the key-value pairs for '__blueprint_resource_type', '__deployment_id', and '__composition_context_id'.PUT https://AriaAutoFQDN/provisioning/uerp/<diskLink>
descriptionLink, ownerAuthLink, and projectAuthLink fields.tenantLinks field, remove entries that start with /owner/provisioning/auth/csp/users and /provisioning/resources/projects.customProperties map, remove the key-value pairs for '__composition_context_id' and '__deployment_id'.PUT https://AriaAutoFQDN/provisioning/uerp/<computeSelfLink>
networkInterfaceLinks field:
GET https://AriaAutoFQDN/provisioning/uerp/<networkInterfaceLink>
tenantLinks field that start with /owner/provisioning/auth/csp/users and /provisioning/resources/projects.PUT https://AriaAutoFQDN/provisioning/uerp/<networkInterfaceLink>