将图像添加到市场 [英] Add image to Marketplace

查看:113
本文介绍了将图像添加到市场的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


虽然它已开始显示上传状态,但我无法将图片完全上传到市场。


一段时间后,它失败并出现以下错误:


Add-VMImage:虚拟机映像下载失败。

行:1字符:1

+ Add-VMImage -publisher" CentOS" -offer"OpenLogicServer" -sku"722016 ...
$
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          :NotSpecified :( :) [Write-Error],WriteErrorException

    + FullyQualifiedErrorId:Microsoft.PowerShell.Commands.WriteErrorException,Add-VMImage


请建议一个解决方法,如果有的话


提前谢谢你.. ..



解决方案

嗨Darren,


 


通过调用Add-VMImage cmdlet添加VM映像。



  • 包括VM映像的发布者,商品,SKU和版本。这些参数由引用VM映像的Azure资源管理器模板使用。
  • 将osType指定为Windows或Linux。
  • 在 中包含您的Azure Active Directory租户ID表格 < myaadtenant> .onmicrosoft.com。  

以下是一个示例调用脚本:


Add-VMImage -publisher"OpenLogic" -offer"CentOS" -sku"6.7" -version"1.0.0" -osType Linux -osDiskLocalPath'<
VHD文件的路径,它也适用于UNC路径> \ Openpen__OpenLogic-CentOS-67-20160308-en-us-30GB-stack.vhd'-lastantID< yourtenantID> .onmicrosoft.com



有关详细信息,请参阅" 使用PowerShell将
a虚拟机映像添加到Marketplace
"。



 


问候,


与Pradeep


Hi All,

I am not able upload the image to the Marketplace completely though it starts showing the uploading status.

After some time it fails with the the following error:

Add-VMImage : VM image download failed.
At line:1 char:1
+ Add-VMImage -publisher "CentOS" -offer "OpenLogicServer" -sku "722016 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Add-VMImage

Please suggest a work-around if any

Thank you in advance....

解决方案

Hi Darren,

 

Add the VM image by invoking the Add-VMImage cmdlet.

  • Include the publisher, offer, SKU, and version for the VM image. These parameters are used by Azure Resource Manager templates that reference the VM image.
  • Specify osType as Windows or Linux.
  • Include your Azure Active Directory tenant ID in the  form <myaadtenant>.onmicrosoft.com. 

Following is an example invocation of the script:

Add-VMImage -publisher "OpenLogic" -offer "CentOS" -sku "6.7" -version "1.0.0" -osType Linux -osDiskLocalPath '<path to VHD file, it also worked with UNC path>\OpenLogic__OpenLogic-CentOS-67-20160308-en-us-30GB-stack.vhd' -tenantID <yourtenantID>.onmicrosoft.com

For more details, see "Add a VM image to Marketplace with PowerShell".

 

Regards,

Pradeep


这篇关于将图像添加到市场的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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