Share via

VM Image sharing to Azure Stack Hub

Anonymous
2022-11-08T08:27:35.36+00:00

Hello,

I have created an image with packer in azure public cloud, i need the same image in Azure stack hub, how can i migrate it, or make ASH to view that image? They are using the same tenant.

Does ASH support packer?

Edgaras

Azure Stack Hub
Azure Stack Hub

An extension of Azure for running apps in an on-premises environment and delivering Azure services in a datacenter.

0 comments No comments

2 answers

Sort by: Most helpful
  1. vipullag-MSFT 26,537 Reputation points Moderator
    2022-11-15T18:13:47.61+00:00

    @Anonymous

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    After packer is completed, download the image to local and upload it to an storage account. Then in the Admin portal, you can add the image into Azure Stack Hub by Add and remove a custom VM image to Azure Stack Hub.

    Images generated with Packer are supported, as long as they meet the requirements described within this article.

    Ref:
    https://learn.microsoft.com/en-us/azure/virtual-machines/windows/build-image-with-packer
    https://learn.microsoft.com/en-us/azure/virtual-machines/linux/build-image-with-packer

    Hope this helps.
    If you need further help on this, tag me in a comment.
    If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.

    0 comments No comments

  2. CyrAz 5,181 Reputation points
    2022-11-08T11:31:56.867+00:00

    You basically have to export it from azure and reimport it into ASH
    Have a look here : https://learn.microsoft.com/en-us/azure-stack/operator/azure-stack-add-vm-image


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.