Azure Global Connection Toolkit - CI/CD Tool
npm install azure-connectiontoolkit-cicdbash
npm install -g azure-connectiontoolkit-cicd
`
On Linux distributions, you might need to use sudo to successfully run the npm command, as follows:
`bash
sudo npm install -g azure-connectiontoolkit-cicd
`
Get Started
$3
To use CICD cross platform CLI, base command is:
`bash
azmigrate vm
`
Meanwhile, you need to input the information for each parameter to make it work. Here is the parameter list and description.
First of all, you need to specify the source environment and destination environment of migration. For example, AzureCloud to AzureChinaCloud.
_-e, --srcEnv_
source Azure environment (default is AzureCloud if not specified)
_-E, --destEnv_
destination Azure environment
Then, you need to specify the authentication mode you want to use, service principal or username/password. If MFA is enabled, you need to select service principal mode as authentication mode.
In service principal mode, you need to specify following information:
_-i, --srcClientId_
source AAD application client ID
_-I, --destClientId_
destination AAD application client ID
_-c, --srcSecret_
source AAD application secret
_-C, --destSecret_
destination AAD application secret
_-d, --srcDomain_
source domain or tenant id containing the AAD application
_-D, --destDomain_
destination domain or tenant id containing the AAD application
In username/password mode, you need to specify following information:
_-u, --srcUserName_
source AAD account user name
_-U, --destUserName_
destination AAD account user name
_-p, --srcPassword_
source AAD account password
_-P, --destPassword_
destination AAD account password
Then, you need to specify the source/destination subscription:
_-s, --srcSubId_
source subscription ID
_-S, --destSubId_
destination subscription ID
Finally, you need to specify the VM you would like to migrate and the target location:
_-g, --srcGroup_
source resource group name of the virtual machine
_-n, --srcName_
source virtual machine name
_-L, --destLocation_
destination location
For example, a complete command will be like this:
`bash
azmigrate vm -E AzureChinaCloud -d srcTenantId -i srcAppId -c srcAppSecret -D destTenantId -I destAppId -C destAppSecret -s srcSubId -S destSubId -g srcVmRg -n srcVmName -L chinaeast
``