Hi,
The error above indicates that the adapter cannot be added to the VM when it is in a running state. I confirmed within my lab that attempting to add an adapter to a running Gen1 VM using the Add-VMNetworkAdapter cmdlet fails with the same error.
PS C:\> Add-VMNetworkAdapter -VMName Test -SwitchName "TestVSwitch" -Name Adapter1
Add-VMNetworkAdapter : 'Test' failed to add resources to 'Test'. Cannot add device 'Synthetic Ethernet Port' while the virtual machine is running. 'Test' failed to add resources. (Virtual machine ID XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX) 'Test' cannot add device 'Synthetic Ethernet Port' while the virtual machine is running. (Virtual machine ID 1E58DFC5-4F56-47FD-A6F5-7E8165EF0435) At line:1 char:1 + Add-VMNetworkAdapter -VMName Test -SwitchName "TestVSwitch" -Name Adapt ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Add-VMNetworkAdapter], VirtualizationException + FullyQualifiedErrorId : NotSupported,Microsoft.HyperV.PowerShell.Commands.AddVMNetworkAdapter
I was able to successfully add an adapter using the exact same method to a running Gen2 VM.
Based on this result, please attempt to power off the VM and try re-enabling attestation.
Hope this helps!