Hi,
Yes, you are right. We can reset disk identifier to prevent this behavior using "Set-VHD -ResetDiskIdentifier".
-ResetDiskIdentifier
Indicates that the cmdlet modifies the disk identifier of the virtual disk associated with the virtual hard disk file. The disk identifier is the SCSI Vital Product Data (VPD) Page 0x83h identifier associated with a disk. Use this parameter only for a VHDX-format disk.
https://learn.microsoft.com/en-us/powershell/module/hyper-v/set-vhd?view=windowsserver2022-ps