gcloud migration vms image-imports

NAME
gcloud migration vms image-imports - imports images to Google Compute Engine from Google Cloud Storage
SYNOPSIS
gcloud migration vms image-importsCOMMAND[GCLOUD_WIDE_FLAG]
DESCRIPTION
gcloud alpha migration vms image-imports provides a more robust and bettersupported method for importing images to Google Compute Engine. Otherimage-related operations (for example, list) can be done using gcloud computeimages, as usual.

The commands use VM Migartion API which supports importing of an image from aGoogle Cloud Storage file (gs://…) to a target project. VM Migration APImust be enabled in your project.

gcloud alpha migration vms image-imports create creates an Image Import resourcewith a nested Image Import Job resource. The Image Import Job resource tracksthe image import progress. After the Image Import Job completes, successfully orotherwise, there's no further use for the Image Import resource.

The image is imported to a Google Cloud Project, desginated by the TargetProject 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 a maximum of 1000 Image Import resources per project.Hence it's recommended to delete an Image Import resource after the Image ImportJob is complete to avoid reaching the Image Import resources limit. Deletion ofImage Import resource does not affect the imported image.

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

Run$gcloud help for details.

COMMANDS
COMMAND is one of the following:
create
import Virtual Disk images to Google Compute Engine.
delete
delete an Image Import resource.
describe
describe an Image Import.
list
list Image Imports.
NOTES
This variant is also available:
gcloudalphamigrationvmsimage-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.