gpt4 book ai didi

Azure 市场 : Is it possible to use images in Managed Application offer?

转载 作者:行者123 更新时间:2023-12-02 08:01:56 24 4
gpt4 key购买 nike

我创建了 Azure 托管应用程序。我使用 mainTemplate.json 中的托管镜像来创建新的虚拟机,如示例所示:

{
"type": "Microsoft.Compute/images",
"apiVersion": "2018-04-01",
"name": "front-image",
"location": "[parameters('location')]",
"properties": {
"storageProfile": {
"osDisk": {
"osType": "linux",
"osState": "Generalized",
"blobUri": "[concat('https://sdfasdfasdf.blob.core.windows.net/images/myserver.vhd')]",
"caching": "ReadWrite",
"storageAccountType": "Standard_LRS"
}
}
}
}, {
"apiVersion": "2016-04-30-preview",
"type": "Microsoft.Compute/virtualMachines",
"name": "myserver",
"location": "[parameters('location')]",
"dependsOn": ["myserver-nic", "myserver-images"],
"properties": {
"storageProfile": {
"imageReference": {
"id": "[resourceId('Microsoft.Compute/images', 'myserver-image')]"
}
},
...
}
}

这在服务目录中效果很好。但是当我尝试从 Azure Marketplace 部署应用程序时,出现下一个错误:

源 blob https://sdfasdfasdf.blob.core.windows.net/images/myserver.vhd不属于订阅 ***** 中的存储帐户。

在 Azure 中 FAQ我发现下一个:

问:我可以使用 Azure 存储帐户中的 VHD 文件来创建具有不同订阅的托管磁盘吗?

答:是的。

我做错了什么?

最佳答案

市场上不允许这样做(将导致认证失败)。市场产品(托管应用程序或解决方案模板)中使用的任何 vm 镜像都必须作为 VM 产品发布到 Azure 市场。它可以隐藏(因此用户不会直接部署镜像),但仍然需要位于市场中。

关于Azure 市场 : Is it possible to use images in Managed Application offer?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54329588/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com