正在寻找有关将自定义OS映像发布到Azure Stack Hub Marketplace的帮助。
我已将自定义Windows映像发布到Azure Stack Hub Marketplace。
我可以在marketplace中看到操作系统映像,但当我使用它时,在完成值(例如,名称、密码、磁盘类型、位置等)后,我得到一个错误Selected image is not valid for the specified location. Select a different location
我可以使用ARM模板和PowerShell中的镜像来创建虚拟机,但我不能让它在市场上运行。我怀疑我丢失了.azpkg文件中createuidefinition.json中的数据,但这只是一种猜测。它看起来像这样(并且imageReference数据是正确的)。
{
"handler": "Microsoft.Compute.SingleVm",
"version": "0.0.1",
"parameters": {
"osPlatform": "Windows",
"recommendedSizes": [
"Standard_DS1_v2",
"Standard_DS2_v2",
"Standard_DS11_v2",
"Standard_DS1",
"Standard_DS2",
"Standard_DS11",
"Standard_D1_v2",
"Standard_D1",
"Standard_A1"
],
"imageReference": {
"publisher": "Contoso",
"offer": "Windows",
"sku": "Windows-Server-2016-Datacenter"
},
"diskType": "Premium",
"dataDisks": [],
"supportsSriov": true,
"supportsBackup": true
}
}我遵循了这两个指南,并自己弄明白了一些事情。Microsoft文档是无望的。
https://azurestack.blog/2016/10/adding-and-using-os-gallery-items-to-azure-stack-tp2/
Azure Stack Hub 2008 (虽然我们在几周前安装了它,但还没有打补丁,但我们知道有一些更新要做)。
发布于 2021-01-29 14:54:00
@jimbo.19这与createuidef无关。
我们调用此api来确定特定图像对于某个位置是否有效。/subscriptions/{1}/Providers/Microsoft.Compute/locations/{2}/Publishers/{3}/ArtifactTypes/VMImage/Offers/{4}/Skus/{5}/Versions{6}如果返回版本存在,我们认为它是有效的。如果没有,我们将弹出您提到验证错误。
https://stackoverflow.com/questions/65914557
复制相似问题