book
Article ID: CTX460110
calendar_today
Updated On:
Description
How to configure Image portability service to migrate an Image to Azure Cloud?
Instructions
Prerequisites
1.) Setup Citrix Cloud API Client
https://developer.cloud.com/citrix-cloud/citrix-cloud-api-overview/docs/get-started-with-citrix-cloud-apis#create-an-api-client
2.) Install Remote Powershell SDK on a machine that you are planning to run the Powershell scripts
https://docs.citrix.com/en-us/citrix-daas/sdk-api.html
3.) Install Citrix.Workloads.Portablity and Citrix.Image.Uploader Modules as per https://docs.citrix.com/en-us/citrix-daas/migrate-workloads.html#set-up-the-image-portability-service
4.) Install Necessary AZ Powershell modules as https://docs.citrix.com/en-us/citrix-daas/migrate-workloads.html#set-up-the-image-portability-service
Create Credentials in Credential wallet
5.) Create Credentials of Azure, SMB share and Vsphere in Credential wallet as shared "Credential management PowerShell examples" -> "Adding a new credential" section of
Image Portability Service (cloud.com) using New-IpsCredential Powershell cmdlet
Export Vmdk from vmware to SMB share
6.) Please use script shared in "Image Portability workflow PowerShell examples" -> "Export from Vsphere" section in Image Portability Service (cloud.com)
Even though the documentation says that VspherePort is optional it is actually required.
If Vsphere URL uses Root CA and Intermediate Cas we need to make sure export them as base64 encoded, and both certificates need to present a single file.
During this stage a Preparation VM will be created in the Vmware environment and that VM will export Vmdk file as VHD to the specified SMB share.
Upload to Azure
7.) Upload the resulting VHD file to Azure environment. I manually uploaded the file using Storage Explorer. You can use your preferred upload method or script shared in
"Upload to Azure" section in Image Portability Service (cloud.com)
Prepare and Publish
You can use the Powershell examples given in "Prepare image on Azure" section in
Image Portability Service (cloud.com)