VMware Aria Automation: adding a device by the REST API /deployment/api/resources is not allowed due to clustered network object
search cancel

VMware Aria Automation: adding a device by the REST API /deployment/api/resources is not allowed due to clustered network object

book

Article ID: 389179

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

  • Adding a resource to a deployment containing clustered objects via the API /deployments/api/resources it fails with this error:
  • {"message": "Validation failed with: $.resources.machine_or_network[0]: Resource name should not contain []", "statusCode": 400, "errorCode": 24002}

Environment

VMware Aria Automation 8.x

Cause

This is not supported for clustered objects in Automation 8.x

Resolution

For now, the VM hardware may be added directly in vSphere.

Here is some documentation and some tips which may help facilitate this:

  • Adding Devices to Virtual Machines
  • PowerCLI interface to the vSphere API
  • PowerCLI / REST / Python actions can be created as Orchestrator workflows to provide this as a day2 action for users, on the VM object in the Automation deployment
  • Aria Automation won't pick up on the new NIC being added.
    Two possible approaches:
    • Adding a custom property to the VM, listing the extra NIC's network
    • Onboarding the VM into a new deployment


The Update Deployment option is also available but please note that the VM might be rebuilt as a result of hardware changes (see KB 383040)