Agent re-registration fails

Symptoms

  • Partner deleted a user or tenant where an agent machine was registered.
  • Re-registering the machine to another tenant fails with "Access denied", "Failed to validate possible tenant change", and other similar messages.
  • It is not possible to delete agent from the console: it fails with "Tenant with ID was deleted"

Cause