Discovered VM Network Details: After the VM is discovered in Aria Automation, reviewing the network details of the discovered VM shows the network name as "Network Adapter1" and the correct IP address. Currently after initial discovery if the port group changes on a VM the network in Aria Automation is not updated so it does not reflect the current network connection.
Onboarded Deployment Details: However, after successfully completing the onboarding process, the original discovered network will show and not the current connected network. Some onboarding failure may occur due to this issue.
VMware Aria Automation 8.18.1
VCF Automation 9.0.2
To import a package (com.vmware.pve.update-discovered-VM-Networks.package) into VMware vRealize Orchestrator (vRO) 8.x, follow these steps in the Automation Orchestrator Client:
com.vmware.pve.update-discovered-VM-Networks.package).Validate that all the Aria Automation vCenter Cloud Accounts are configured in Orchestrators inventory.
Note: If some of the vCenters are missing in vRO they must be added for a complete execution of this solution
Adding missing vCenter endpoints to vRO: Run the workflow “Add a vCenter Server instance” Located in Library > Workflows > Library > vCenter > Configuration.
Note: When executing this workflow and vCenter is using self-signed Certificates it's best to ignore certificate warnings and in the “Set the connection properties” tab uncheck the check box to create a shared session.
Locate Workflow: Navigate to Library > Workflows > PVE > Network. Select the workflow “Update Discovered VM network interfaces” then click on run.
Workflow Inputs
vRA Host: Select the vRA endpoint with owner permissions if you select Default then it uses the person logging in to vRO permissions.
Update From CSV File: When set to true will allow you to select a CSV file with a list of VM’s you want to update NIC port groups.
Note: Review CSV Output section before selecting this as true.
Execute Dry Run: When this is selected the workflow will execute and only record Discovered VM’s with NIC not connected to the correct port group and produce a CSV resource file that can be reviewed and edited to be used when selecting “Update From CSV File”.
When Executing the workflow with “Update From CSV File” selected it will require you to select a CSV File as input. This file will have a list of VM’s that you want to fix NIC port group assignment.
Everytime you execute the “Update Discovery VM network interfaces” workflow a CSV timestamped resource is generated and can be located in vRO by Navigating to Assets > Resources > PVE > Network > Updates folder.
If you want to only fix a subset of machines, export this resource as shown below, then edit the CSV file and remove all the lines you do not wish to update/fix port assignment in Aria Automation.
Note: Leave line 1 (Column Header) in the CSV currently the workflow parser will ignore line 1.