Modifying NSX Edge vNic fails with error “The requested Object : dvportgroup-#### could not be found. Object identifiers are case sensitive.”
search cancel

Modifying NSX Edge vNic fails with error “The requested Object : dvportgroup-#### could not be found. Object identifiers are case sensitive.”

book

Article ID: 309669

calendar_today

Updated On:

Products

VMware NSX Data Center for vSphere

Issue/Introduction

Symptoms:
When trying to modify NSX Edge vNic, it will always fail with error “The requested Object : dvportgroup-### could not be found. Object identifiers are case sensitive.”

Environment

VMware NSX Data Center for vSphere 6.4.x
VMware NSX Data Center for vSphere 6.3.x

Cause

The portgroup in question has been deleted from vCenter already and causing such issues.
The Edge vNic portgroup should always be modified from the NSX perspective rather than directly changing Edge VM network labels.

Resolution

Run REST API call to the problematic Edge.

1. GET /api/4.0/edges/edge-#
Copy the content and modify the following in red.

<?xml version="1.0" encoding="UTF-8"?>
<edge>
    <id>edge-X</id>
    <version>8</version>
    <status>deployed</status>
    <tenant>default</tenant>
    <name>Edge-###</name>
    <portgroupId>dvportgroup-###</portgroupId>    -->Change to the correct portgroup ID
    <portgroupName>vDS-Edge-###</portgroupName>  --> Change to the correct portgroup name
    </appliance>
    <deployAppliances>true</deployAppliances>   -->Change to false

2. PUT /api/4.0/edges/edge-#
Paste the modified content in request body, by changing the deployedAppliances parameter to 'false' will stop publishing config changes to edge VM.

3. GET /api/4.0/edges/edge-#
 After the successful change, perform the GET call above again, copy the content and change deployAppliances to 'true'.
<deployAppliances>false</deployAppliances>   -->Change to true

4. PUT /api/4.0/edges/edge-#
The PUT call will automatically perform a re-deploy, you can check the redeploy status on NSX UI and the edge deployment status will turn GREEN.

Additional Information

Impact/Risks:
Modifying Edge vNic settings will fail.