Unregister operation failed for onboarded VMs in Aria Automation 8.16.2 with "Onboarded machine has one or more provisioned disks" error
book
Article ID: 370719
calendar_today
Updated On:
Products
VMware Aria Suite
Issue/Introduction
This article describes a scenario where Unregistering a VM in Aria Automation fails with "Onboarded machine has one or more provisioned disks" error as shown below.
Environment
Aria Automation 8.16.2
Aria Automation 8.18
Cause
The error is due to the default 'false' value of ' enable.unregister.provisioned.machine ' toggle which will be removed in the upcoming release, and hence ensures that the unregister will be invoked irrespective of VM being in provisioned, onboarded or mixed state.
Also the existing verifyDisks validation method will also be removed since we no longer intend to stop unregister action on machines with provisioned disks, since the state of such disk(s) will be moved back to discovered in revertDisk method.
Resolution
Steps to enable "enable.unregister.provisioned.machine" toggle in Aria Automation
Solution 1:
Capture the Bearer Token from Aria Automation ui as shown in the Screenshot
Use Postman and execute the GET call on https://<VRA_FQDN>/provisioning/config/toggles with Auth Token as “Bearer Token” and Body as “JSON”
Search for ‘unregister’ to see if the "enable.unregister.provisioned.machine" toggle is already available in the Toggle list. If not available, then it implies that the Unregister toggle is not enabled
Once verified, use POST call to enable "enable.unregister.provisioned.machine" toggle
After following the above steps, “Unregister” the VM to successfully unregister it from Aria Automation
Solution 2:
Execute the below curl command from Aria Automation SSH session.