Hello Samuele Provvedi
Welcome to Microsoft Q&A Platform, thanks for posting your query here.
You can try by choosing deployment through the portal and it should work without any issue. However, the issue you are seeing for the PowerShell & CLI, I have reported this to the internal team. Team has identified the issue, and is rolling out a fix for this.
However, if you want to use the CLI, you need to explicitly specify the "hyperVGeneration" field with the value set to V2 in marketplacegalleryimage payload as highlighted below:\
"properties": {
"osType": "Windows",
"cloudInitDataSource": "Azure",
"hyperVGeneration": "V2",
The fix for PowerShell and CLI has been rolled out for few regions and should be deployed across in sometime.
Hope this helps.