Azure市场:是否可以在托管应用程序报价中使用图像? [英] Azure Marketplace: Is it possible to use images in Managed Application offer?

查看:102
本文介绍了Azure市场:是否可以在托管应用程序报价中使用图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了Azure托管应用程序.我在mainTemplate.json中使用托管映像来创建新的VM,例如:

I created Azure Managed Application. I used managed images in mainTemplate.json to create new VMs, like in example:

{
    "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部署应用程序时,出现下一个错误:

This work well in Service catalog. But when I trying deploy application from Azure Marketplace, I have next error:

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

The source blob https://sdfasdfasdf.blob.core.windows.net/images/myserver.vhd does not belong to a storage account in subscription ****** .

在Azure中常见问题解答我发现了下一个:

In Azure FAQ I found next:

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

Q: Can I use a VHD file in an Azure storage account to create a managed disk with a different subscription?

A:是的.

我做错了什么?

推荐答案

在Marketplace中不允许这样做(将使认证失败).市场商品(托管的应用程序或解决方案模板)中使用的所有虚拟机映像都必须作为虚拟机商品发布到Azure市场.它可以隐藏(因此用户不必直接部署该映像),但仍需要在市场上出售.

This is not allowed in the Marketplace (will fail certification). Any vm images used in a marketplace offer (managed app or solution template) must be published to the Azure Marketplace as a VM offer. It can be hidden (so users don't deploy the image directly) but still needs to be in the marketplace.

这篇关于Azure市场:是否可以在托管应用程序报价中使用图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆