Hello, @James Hao !
How do I find a VM alias I can use with the command, New-AzVmss
?
Edit: The solution here is to use the full URN (as 2019-datacenter-gensecond
won't work by itself):
MicrosoftWindowsServer:WindowsServer:2019-datacenter-gensecond:latest
Changing image alias is a breaking change which is scheduled with the November 2023 release of PS/CLI. Please refer to https://aka.ms/TLaD for more information.
Old:
The only available aliases for New-AzVmss are:
- Win2022AzureEditionCore
- Win2019Datacenter
- Win2016Datacenter
- Win2012R2Datacenter
- Win2012Datacenter
- UbuntuLTS
- Ubuntu2204
- CentOS
- CentOS85Gen2
- Debian
- Debian11
- OpenSuseLeap154Gen2
- RHEL, RHELRaw8LVMGen2
- SuseSles15SP3
- FlatcarLinuxFreeGen2
Given that list, you are probably looking for Win2019Datacenter
.
As a quick aside, az vm image list --all
is a great way to find VM SKUs and URNs. A great tool is https://az-vm-image.info/ which makes navigating this information a bit easier:
I hope this has been helpful! Your feedback is important so please take a moment to accept answers.
If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!