I am trying to bring Cisco Cloud APIC image on Azure Stack Hub, but have no idea how to download its VM image from Azure. Can someone provide a complete roadmap of doing the same?
I did try below optimal things to copy vm images from azure -> Azure Stack Hub (ASH).
az storage blob rewrite --container-name --name <azure-image>.vhd --source-uri <sas-token-from-azure-disk> -c containername --account-name mystorageaccount --account-key <account-key>
az image create -n ash-vhd-image --source <ash-vhd-url> -g <ash-rg-name>
Above way you can avoid downloading huge vhd files locally or to some location & upload to ASH saving network bandwidth.
You may be thinking of creating blob directly on Azure & can create image on ASH with the blob uri from Azure. It's not supported on neither Azure nor ASH. Both expect, blobs to be within the same subscription to create images.
Also, I tried azcopy to copy from Azure to ASH with sas-tokens to speed up image copy. It didn't work as azcopy doesn't seem to be supported on ASH yet while they support GCP & AWS! What an irony!
Give a try & let me know!