Google Cloud Migrations-Generate quick TCO reports for fast cloud adoption.
Migrating your infrastructure can be a difficult and time-consuming process. You need a reliable and secure way to assess your environment and help you decide what to migrate and how. Migration tools can help dramatically with this task. This article walks you through using Migration Center, a native Google Cloud Platform tool that can help you run an assessment and produce a Total Cost of Ownership report.
What I will cover:
- Part 1: Collecting data from an on-premises environment.
- Part 2: Collecting data from an AWS environment.
- Part 3: Review data in Migration Center.
- Part 4: Generate a report.
Part1: Collecting data from an on-premises environment.
- Open the Chrome browser and navigate to http://console.cloud.google.com
2. In the Google Cloud, from the Navigation menu, scroll down under Tools and click Migration Center.
*The first time you access Migration Center you will need to set some default values.
3. When prompted, select us-central1 from the Geographical region dropdown and click Next.
4. Skip the Expert Request number box.
5. Click Next on the Set migration preferences prompt. Take a look at the default values, but know these can be changed later for reporting and comparison purposes.
6. Click Continue.
7. From the Migration Center overview dashboard click Discover Assets.
8. Click + Add Data button.
9. Use the following information to setup the data collector.
*This doc assumes you have a service account created already, but if not go create one and select it here. In this example I called it “migration-client”.
Select how you would like to discover assets: Scan your environment.
Client name: mcc-collector
Service account: migration-client@(project id).iam.gserviceaccount.com.
Estimated number of assets: 6 (based on your environment).
10. Click Add Data Source.
11. Download the data collector to your by clicking Download.
Task 2. Install the MC Discovery Collector.
*The MC Discovery Collector requires a Windows Server VM/instance. Deploy one for the collector. I used an instance with 2 vCPUs and 4GB of memory.
- On the Windows Server you created, run the MC Discovery collector installer.
- Click Yes to confirm changes to the system.
- If asked, install .Net Core Desktop by clicking OK.
- Follow the instructions on the screen using all default settings to complete the installation.
- Once complete, the Migration Center Collector in administrative mode.
Task 3. Authorize Discovery Client.
- To authorize the client to collect and upload data, click Authorize with Migration Center.
- Click Run check.
- Click Continue.
- Under Log in with Google, click Log in with Google.
- Follow the instructions on the screen, select the Google account to authenticate with and then click Continue.
- Click Continue.
7. Choose the project you want to use with Migration Center. (Good practice is to use a new one)
8. Click Continue.
9. Select the collector you created from the list and click Authorize.
- Authorization will take a minute, and then the dashboard will display.
10. In the dashboard, click Add Credentials.
Task 4: Configure asset collection
- In the MC discovery client’s dashboard, click Add Credentials.
- You can store multiple credentials in the collector to log into different Active Directory domains, local instance accounts, or SSH keys.
2. Click OS Scan, then click Configure.
3. Create a group and add your username and password for the instances you want to collect and accept the scheduling defaults.
- If you have Linux machines, you can also upload SSH machines credentials.
4. Next, add the IP Address range to scan machines for. Click Add Assets, then Machine, and click Scan IP address ranges.
Make sure you specify the internal IP addresses of the machines, not the public IPs or your scan will not complete properly.
5. Click Add IP Address ranges and enter your IP subnet ranges to collect from.
6. Click Start IP scan, then click the Start scan popup button.
- It can take a minute or so for the scan to run.
Part 2: Collect data from an AWS environment.
- Login to the AWS Console and launch Cloud Shell.
2. Make a copy of the GitHub project containing the collection scripts using: git clone https://github.com/GoogleCloudPlatform/aws-to-stratozone-export.git
3. Navigate to the folder containing the scripts:
cd aws-to-stratozone-export/
4. Install prerequisites:
python3 -m pip install -r requirements.txt
5. Run the collection script
python3 stratozone-aws-export.py
6. Verify the output file is created:
ls ./*.zip
7. Download the files containing the collected info. Select download file from the Actions dropdown in the upper right corner.
8. Enter the path to the output file.
~/aws-to-stratozone-export/vm-aws-import-files.zip
9. Click Download.
10. In Google Cloud, from the Navigation menu, select Migration Center and click on Data import.
11. Click +Add Data button under the File Uploads
12. Select Upload files and enter aws-account-import under File import job name.
13. Click Select files to upload, select the files extracted from the vm-aws-import-files.zip file you downloaded earlier. You will need all 4 files. Diskinfo, perfinfo, taginfo, and vminfo.csv.
14. Click upload files. A green checkbox should appear next to each if they uploaded properly.
15. Click Import data.
Part 3: Review data in Migration Center
- In the Google Cloud console Navigation menu, select Migration Center and click on Assets.
2. View the list of collected assets. Verify all the instances you intended to collect on are showing up. If any are missing adjust your IP range settings or rerun the collection script against another AWS account.
Part4: Generate TCO report
To generate a TCO report, create a group and set preferences.
- In Google Cloud from the Navigation menu, select Migration Center and click on the Groups sub-menu.
- Click +Create Group
3. Enter All Assets as the group name
4. Select all the assets to be included in the group and click Create.
5. Next, set some preferences for the report generation. From the submenu on the left, click Preferences.
6. Click +Create migration preferences and enter aggressive-optimization-3-year-commit for the name. Set the machine series to N2, N2D. And finally, set the sizing optimization to Aggressive. Leave the rest at the default values and click Create.
7. Repeat step 6 one more time with these alternate values: Preference Name: moderate-optimization-1-year-commit. Pricing track: 1-year committed use discount. Machine Series: C2, C2D. Disk type: SSD. And finally Sizing optimization to Moderate.
8. With the group and preferences set, let’s create the report. Under the Reports submenu click TCO & pricing.
9. Click +Create report.
10. Name the report. and click Next.
11. Select the group called All-Assets and click Next.
12. Click the down arrow next to Select preference 1 and select moderate-optimization-1-year-commit and aggressive-optimization-3-year-commit for preference #2.
13. Click Apply to all groups.
14. Click Generate report
The report can take up to 5 minutes to generate. A green checkbox indicates that the report is ready to view.
15. Click on the report name to view the report details.
Conclusions
This quick tutorial showed how easy it is to generate a Google Cloud Total Cost of Ownership (TCO) report. As usual, dig deeper into the official documentation to know and discover more.
Thank you for reading and see you soon with more news on GCP.
Written by Trever Jackson
PreSales Customer Engineer, Google Cloud
Contributors include @Sri Nannapaneni.
Special thanks to @BrittanyB.