VMware Aria Automation Tools

 View Only
  • 1.  Reconfigure network day-2 action in aria automation 8.x

    Posted Nov 05, 2024 07:04 AM

    Hello everyone,

    I'm trying to create a Day 2 action that can:
    - Add a new network to a VM
    - Modify an existing network on a VM
    - Remove a network from a VM

    Basically, it's implementing part of the "reconfigure vm" functionality that was available in vRA 7.x.

    I started by adding a new network to the VM.

    For this, I've created a Cloud.vSphere.Network resource within the deployment using the API as follows:
    - method: POST
    - url: /deployment/api/resources
    - body:
    {
        "name": "Cloud_vSphere_Network_2",
        "type": "Cloud.vSphere.Network",
        "deploymentId": "d82b666a-abe1-4670-bc55-0c2cd5b53b5f",
        "projectId": "26846896-a0ce-4c9c-8ff9-83fdcd29b89e",
        "properties": {
            "networkType": "existing",
            "endpointType": "vsphere",
            "endpointId": "ac1e691b-4e75-4b6c-90bb-572b0ace5872",
            "providerId": "3ccd5704-74b3-4a8d-8639-13514e9c27aa",
            "region": "TEST-CHORUS",
            "account": "dubby",
            "deviceIndex": 1,
            "attachedTo": "bcad9b02-aa25-4761-8c1f-5b8ff0b8c811"
        }
    }

    The network is created successfully, however, I can't manage to link it to the VM despite setting "attachedTo": "vm-id".

    How can I add the network to the VM? What is the correct procedure using the API to add a second network interface to an existing virtual machine in vRA 8.x?

    Regards



  • 2.  RE: Reconfigure network day-2 action in aria automation 8.x

    Posted 14 days ago

    Check out this

    https://docs.vmware.com/en/VMware-Aria-Automation/8.18/Using-Automation-Service-Broker/GUID-1174636D-B756-4D13-9394-F7E20E6DB844.html