gcloud alpha migration vms machine-image-imports

NAME
gcloud alpha migration vms machine-image-imports - imports machine images to Google Compute Engine from Google Cloud Storage
SYNOPSIS
gcloud alpha migration vms machine-image-importsCOMMAND[GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) gcloud migration vms machine-image-imports provides a morerobust and better supported method for importing machine images to GoogleCompute Engine. Other image-related operations (for example, list) can be doneusing gcloud compute images, as usual.

The commands use VM Migration API which supports importing of a machine imagefrom a Google Cloud Storage file (gs://…) to a target project. VMMigration API must be enabled in your project.

gcloud migration vms machine-image-imports create creates a machineImage Import resource with a nested Image Import Job resource. The Image ImportJob resource tracks the machine image import progress. After the Image ImportJob completes, successfully or otherwise, there's no further use for the ImageImport resource.

The machine image is imported to a Google Cloud Project, desginated by theTarget Project resource. To get a list of Target Projects, run the gcloud alphamigration vms target-projects list command. Use the Google Cloud console to addtarget project resources. For information on adding target projects, seehttps://cloud.google.com/migrate/virtual-machines/docs/5.0/how-to/target-project.

A project can support up to a certain number of Image Import resources perproject. Hence it's recommended to delete an Image Import resource after theImage Import Job is complete to avoid reaching the Image Import resources limit.Deletion of Image Import resource does not affect the imported machine image.For more information about the image import resource, seehttps://cloud.google.com/migrate/virtual-machines/docs/5.0/migrate/image_import.

GCLOUD WIDE FLAGS
These flags are available to all commands:--help.

Run$gcloud help for details.

COMMANDS
COMMAND is one of the following:
create
(ALPHA) import machine images to Google Compute Engine.
delete
(ALPHA) delete an Image Import resource.
describe
(ALPHA) describe an Image Import.
list
(ALPHA) list Image Imports.
NOTES
This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. This variant is also available:
gcloudmigrationvmsmachine-image-imports

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.