You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting the following error when trying to deploy a Windows 11 Enterprise VM on Azure:
Write-LogFunctionExitWithError: New-LabVM...leaving: Deployment of resource group 'AutomatedLab.Lab' failed with '14:40:55 - The deployment '86c11f35-76d9-47a2-ad20-2b9eab71dd94' failed with error(s). Showing 1 out of 1 error(s). Status Message: The selected VM size
'Standard_D2_v2' cannot boot Hypervisor Generation '2'. If this was a Create operation please check that the Hypervisor Generation of the Image matches the Hypervisor Generation of the selected VM Size. If this was an Update operation
please select a Hypervisor Generation '2' VM Size. For more information, see https://aka.ms/azuregen2vm (Code:BadRequest) CorrelationId: 19c37007-ad76-48b2-ab2b-6574ec35768d 14:40:55 - The deployment '86c11f35-76d9-47a2-ad20-2b9eab71dd94'
failed with error(s). Showing 1 out of 1 error(s). Status Message: The selected VM size 'Standard_D2_v2' cannot boot Hypervisor Generation '2'. If this was a Create operation please check that the Hypervisor Generation of the Image matches
the Hypervisor Generation of the selected VM Size. If this was an Update operation please select a Hypervisor Generation '2' VM Size. For more information, see https://aka.ms/azuregen2vm (Code:BadRequest) CorrelationId:
19c37007-ad76-48b2-ab2b-6574ec35768d'
When I try to add a '-AzureRoleSize "Standard_DS2_v2"' to override the RoleSize with a type which is supported for both versions Gen1 and Gen2 i get the following error:
Exception: Selected VM size Standard_DS2_v2 for WindowsClient only suppports G2 VMs, however no matching Generation 2 image was found for your selection: Publisher MicrosoftWindowsDesktop, offer windows-11, sku win11-21h2-ent!
Description
I am getting the following error when trying to deploy a Windows 11 Enterprise VM on Azure:
When I try to add a '-AzureRoleSize "Standard_DS2_v2"' to override the RoleSize with a type which is supported for both versions Gen1 and Gen2 i get the following error:
https://learn.microsoft.com/en-us/azure/virtual-machines/dv2-dsv2-series#dsv2-series
Thanks for checking 🙂
Steps to reproduce the issue
PowerShell Version
AutomatedLab Version
The text was updated successfully, but these errors were encountered: