自動ロールバック Compute Engine が VM のターゲット数を作成できない場合、リクエストが自動的にロールバックされる
×
必要に応じて有効
API レート制限 リクエストが API レート制限にどのように影響するか
VM ごとに 1 つのリクエスト
一括オペレーションごとに 1 つのリクエスト
制限事項
次のリストでは、VM を一括作成するときに適用される制限事項を示します。
顧客指定の暗号鍵。顧客指定の暗号鍵(CSEK)で保護されるディスクを備えた VM は作成できません。ディスクには、Google のデフォルトまたは顧客管理の暗号鍵を使用する必要があります。
スナップショットからディスクを起動する。スナップショットを使用して VM のブートディスクを作成することはできません。代わりに、VM を一括で作成するときにカスタム イメージを使用します。
グローバル DNSグローバル DNS を使用している場合は、完全修飾ドメイン名(FQDN)にゾーンが含まれていないため、名前の競合が発生する可能性があります。これを回避するには、ゾーン DNS を使用します。ゾーン DNS に切り替えられない場合は、異なるリージョンで同じ名前パターンを使用しないでください。詳細については、内部 DNS 名のタイプをご覧ください。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-08-18 UTC。"],[[["\u003cp\u003eBulk VM creation allows for the creation of numerous identical and independent virtual machines with a single API request, effectively minimizing API rate limit consumption.\u003c/p\u003e\n"],["\u003cp\u003eWhen creating VMs in bulk, Compute Engine can automatically distribute the VMs across multiple zones within a region, optimizing for resource availability and honoring any existing reservations.\u003c/p\u003e\n"],["\u003cp\u003eUnlike batching API requests, bulk VM creation offers automatic zone selection, upfront validation of requests, optional automatic VM name generation, and the possibility of automatic rollback if VM creation fails.\u003c/p\u003e\n"],["\u003cp\u003eThere are limitations to bulk VM creation, such as not supporting customer-supplied encryption keys, boot disks from snapshots, machine images, sole-tenant nodes, and requiring most VM properties to be identical.\u003c/p\u003e\n"],["\u003cp\u003eUsing bulk VM creation does not incur additional charges, and billing only starts upon successful VM creation; additionally, audit logs are provided for both the bulk operation and individual VMs.\u003c/p\u003e\n"]]],[],null,["Linux Windows\n\n*** ** * ** ***\n\nBulk creation of virtual machine (VM) instances lets you create a large number\nof VMs that are identical and independent from each other. When you create VMs\nin bulk, you can do the following:\n\n- **Minimize consumption of API rate limits.** Requests for creating VMs in bulk\n consume [API rate limits](/compute/docs/api-rate-limits) as if you were\n creating a single VM.\n\n- **Distribute VM creation across multiple zones in a region.**\n For regional requests, Compute Engine determines the zone to create\n the VMs in based on the zones that have available hardware, taking into\n consideration the available capacity in each zone, as well as any of your\n [reservations](/compute/docs/instances/choose-reservation-type).\n\nCompute Engine doesn't manage VMs that you create in bulk. To create a\ngroup of managed VMs, use [managed instance groups](/compute/docs/instance-groups).\n\nCreating VMs in bulk versus batching API requests\n\nCreating VMs in bulk is different from [batching API\nrequests](/compute/docs/api/how-tos/batch) with the [`instances.insert`\nmethod](/compute/docs/reference/rest/v1/instances/insert). The following table\ncompares these two ways of creating multiple VMs:\n\n| Functionality | Batching API requests | Creating VMs in bulk |\n|-------------------------------------------------------------------------------------------------------------------|-------------------------|--------------------------------------------|\n| **Zone selection** Automatically selected based on considerations such as resource availability and quota | Manual | Automatic when using the regional endpoint |\n| **Upfront validation** Request fails immediately if it is not feasible | No | With capacity and quota |\n| **VM name generation** Automatically generated based on a specified name pattern | Manual | Optionally generated automatically |\n| **Automatic rollback** Request automatically rolled back if Compute Engine cannot create the target number of VMs | No | Optionally enabled |\n| **API rate limit** How requests affect the API rate limit | One request for each VM | One request for each bulk operation |\n\nLimitations\n\nThe following list describes the limitations that apply when creating VMs in\nbulk:\n\n- **Customer supplied encryption keys.** You can't create VMs that have disks\n that are protected by [customer-supplied encryption keys (CSEK)](/compute/docs/disks/customer-supplied-encryption).\n The disks must use Google-default or customer-managed encryption keys.\n\n- **Boot disks from snapshots.** You can't use a snapshot to create the boot disks\n for the VMs. Instead, use [a custom image](/compute/docs/images/create-custom#create_image)\n when you create VMs in bulk.\n\n- **Global DNS.** If you are using global DNS, there might be name conflicts\n because the fully qualified domain name (FQDN) doesn't contain the zone. To\n avoid this, use zonal DNS. If you cannot switch to zonal DNS, avoid using the\n same name pattern across different regions. For more information, see [Types\n of internal DNS names](/compute/docs/internal-dns#instance-fully-qualified-domain-names).\n\n- **Machine images.** You cannot create VMs from [machine\n images](/compute/docs/machine-images).\n\n- **Number of VMs.** You can create up to 5,000 VMs with each call. Also, you\n can create a maximum of 8,000 instances simultaneously at any time. This\n simultaneous operation limit is shared between\n [`instances.insert`](/compute/docs/reference/rest/v1/instances/insert) and\n [`instances.bulkInsert`](/compute/docs/reference/rest/v1/instances/bulkInsert).\n\n- **Sole-tenant nodes.** You cannot create VMs that use\n [sole-tenant node affinity labels](/compute/docs/nodes/sole-tenant-nodes#node_affinity_and_anti-affinity).\n\n- **VM properties.** All [VM properties](/compute/docs/instances/update-instance-properties),\n except their names and custom hostnames, must be identical. You cannot use\n VM properties that are mutually exclusive between VMs, which include but\n are not limited to static external IP addresses and static internal IP addresses.\n\nAudit logs\n\nCompute Engine logs information about the bulk VM creation to the\n[Admin Activity audit log](/logging/docs/audit#admin-activity) when you make the\nAPI call and when the API call completes.\n\nCompute Engine also creates separate audit logs for each VM. You can\nfind the audit log for a single VM by matching the value of\n`protoPayload.resourceName` with the VM name generated by the naming pattern\nthat you specify with the request.\n\nPricing\n\nThere are no additional charges for using bulk VM creation. As with creating\nsingle VMs, billing begins when you create the VMs.\n\nYou are not billed for any VMs that Compute Engine fails to create.\n\nWhat's next\n\n- [Create VMs in bulk](/compute/docs/instances/multiple/create-in-bulk)"]]