[Here](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/vmware/resource-manager/Microsoft.AVS/AVS/stable/2024-09-01/vmware.json) is a swagger that could be used to reproduce the issue. <img width="866" height="554" alt="Image" src="https://github.com/user-attachments/assets/0715c6f6-ba83-4a95-9979-320be64e8daa" /> And the bug is located in https://github.com/Azure/autorest.powershell/blob/main/powershell/plugins/create-commands-v2.ts#L186-L249.