Hi Dharshan,
I'm not sure you can deploy Windows 10 22H2 as it is not a default image. However, you can try Windows 11 as suggested below.
Please see the following:
How to deploy Windows 11 on Azure
If this is helpful please accept answer.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
var vm = azure.VirtualMachines.Define(vmName)
.WithRegion(location)
.WithExistingResourceGroup(groupName)
.WithExistingPrimaryNetworkInterface(nic)
.WithLatestWindowsImage("MicrosoftWindowsDesktop", "Win10", "22h2-pro")
.WithAdminUsername(adminUser)
.WithAdminPassword(adminPassword)
.WithComputerName(vmName)
.WithSize(VirtualMachineSizeTypes.StandardDS2V2)
.Create();
this is my code for creating a vm using fluent sdk and i'm not able to create the vm in windows 10 pro 22H2 x64 when i run the program it says :- "'The platform image 'MicrosoftWindowsDesktop:Windows-10:22h2-pro:latest' is not available. Verify that all fields in the storage profile are correct. For more details about storage profile information, please refer to https://aka.ms/storageprofile' "
will anyone help me to resolve this problem
Hi Dharshan,
I'm not sure you can deploy Windows 10 22H2 as it is not a default image. However, you can try Windows 11 as suggested below.
Please see the following:
How to deploy Windows 11 on Azure
If this is helpful please accept answer.