This KB is provide a validated approach to fix such issues.
Symptoms:
A Group with VIF/VM static members is shown as "Failed" on the UI.
If a group is created via API with the below request body, wherein the VM id specified in the "ExternalIDExpression" is not a valid VM id, the group creation API succeeds. But the on UI, the status is shown as "Failed".
Request body:
{
"expression" : [
{
"member_type" : "VirtualMachine",
"external_ids" : [ "invalid-vm-id" ],
"resource_type" : "ExternalIDExpression"
}
],
"resource_type" : "Group",
"id" : "test",
"display_name" : "test"
}
Group on UI
Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.