Powershell 创建一个新的 Windows 10 个虚拟机
Powershell Create a New Windows 10 VM
通过 powershell 在 azure 中创建新样式的 VM 时,我总是使用它来指定图像
Set-AzureRmVMSourceImage -VM $VirtualMachine -PublisherName MicrosoftWindowsServer -Offer WindowsServer -Skus 2012-R2-Datacenter -Version "latest"
我一直在寻找 publishers/offers 但我似乎找不到 Windows 10?
我在寻找出版商的秘密吗?我正在查看所有 Windows 个
这确实是一个针对 ServerFault 的问题,很可能是 closed/migrated,但是... Windows 10 是桌面 OS。您只会找到 Windows 个服务器图像。
如果您订阅了 MSDN,您将有 dev/test 访问 Windows 10 Enterprise 的权限。
假设您使用的是 MSDN 订阅,否则您无法访问 Win10。您可以 运行 这些命令来获取图像
Get-AzureRmVMImagePublisher
Get-AzureRmVMImageOffer -Location westeurope -PublisherName MicrosoftVisualStudio
Get-AzureRmVMImageSku -Location westeurope -PublisherName MicrosoftVisualStudio -Offer windows
最终命令将为您提供 Win10 映像列表(对于 westeurope),中间命令将帮助您在此过程中找到其他映像(imageoffer cmdlet 也有预装 Visual Studio 的 Win10)它们能够快速导航很有用。
通过 Powershell 创建 Azure VM
使用ARM
通过 powershell 在 azure 中创建新样式的 VM 时,我总是使用它来指定图像
Set-AzureRmVMSourceImage -VM $VirtualMachine -PublisherName MicrosoftWindowsServer -Offer WindowsServer -Skus 2012-R2-Datacenter -Version "latest"
我一直在寻找 publishers/offers 但我似乎找不到 Windows 10?
我在寻找出版商的秘密吗?我正在查看所有 Windows 个
这确实是一个针对 ServerFault 的问题,很可能是 closed/migrated,但是... Windows 10 是桌面 OS。您只会找到 Windows 个服务器图像。
如果您订阅了 MSDN,您将有 dev/test 访问 Windows 10 Enterprise 的权限。
假设您使用的是 MSDN 订阅,否则您无法访问 Win10。您可以 运行 这些命令来获取图像
Get-AzureRmVMImagePublisher
Get-AzureRmVMImageOffer -Location westeurope -PublisherName MicrosoftVisualStudio
Get-AzureRmVMImageSku -Location westeurope -PublisherName MicrosoftVisualStudio -Offer windows
最终命令将为您提供 Win10 映像列表(对于 westeurope),中间命令将帮助您在此过程中找到其他映像(imageoffer cmdlet 也有预装 Visual Studio 的 Win10)它们能够快速导航很有用。
通过 Powershell 创建 Azure VM
使用ARM