{
  "slug": "gcloud-compute-instances-bulk-create-accepts-instance-flexibility-and-min-cpu-pl-95221805dc77",
  "title": "gcloud compute instances bulk create accepts instance flexibility and min CPU platform settings",
  "tools": [
    "gcloud"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-09-29T00:00:00.000Z",
  "announced_at": "2026-09-29T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "To create bulk Compute Engine instances with selected machine types and a minimum CPU platform, use the beta bulk-create command with `--instance-selection` or `--instance-flexibility-policy`.",
    "examples": [
      "gcloud beta compute instances bulk create --name-pattern=<name-pattern> --count=<count> --region=<region> --instance-selection=\"name=<selection-name>,machine-type=<machine-type>,min-cpu-platform=<platform>\"",
      "gcloud beta compute instances bulk create --name-pattern=<name-pattern> --count=<count> --region=<region> --instance-flexibility-policy='{\"instanceSelections\":{\"<selection-name>\":{\"rank\":<rank>,\"machineTypes\":[\"<machine-type>\"],\"minCpuPlatform\":\"<platform>\"}}}'"
    ],
    "gotchas": [
      "Availability: beta",
      "--name-pattern (required): Pattern for instance names; alternatively provide `--predefined-names`.",
      "--count: Number of instances to create; when omitted with predefined names, uses the number of names provided.",
      "--region (required): Region for bulk creation; alternatively specify `--zone`.",
      "--instance-selection: Named machine-type selection; repeat the flag for each selection. This form supports minimum CPU platform overrides but not disks.",
      "name (required): Name for the selection.",
      "machine-type (required): Machine type in the selection; the flag syntax allows repeated machine-type values.",
      "rank: Optional rank for the named selection.",
      "min-cpu-platform: Minimum CPU platform override for the selection.",
      "--instance-flexibility-policy: JSON policy containing named selections; may specify additional overrides such as minimum CPU platform and disks. Mutually exclusive with `--instance-selection` and `--instance-selection-machine-types`.",
      "instanceSelections (required): Object mapping selection names to selection configurations.",
      "rank: Optional selection rank in the flexibility policy.",
      "machineTypes (required): Array of machine types for the selection.",
      "minCpuPlatform: Minimum CPU platform for the selection.",
      "disks: Disk overrides for the selection; the docs example uses entries with `deviceName` and `boot`.",
      "deviceName: Disk device name in the documented flexibility-policy example.",
      "boot: Whether the documented policy disk is a boot disk."
    ]
  },
  "why_it_matters": "Specify instance flexibility and a minimum CPU platform when bulk creating Compute Engine instances.",
  "sources": [
    "https://docs.cloud.google.com/sdk/docs/release-notes#58700_2026-09-29",
    "https://docs.cloud.google.com/sdk/gcloud/reference/compute/instances/bulk/create"
  ],
  "rank": 0.90027,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "cloud-20261008",
    "verdict_id": "cloud-20261008:cloud-20261008-361ce8e7254bac08-20:gate",
    "evidence_hash": "14dd3287273a31f2f5043b6780294d9d21c31f084517ed5d8074f5c2372c8307"
  },
  "review": {
    "draft_hash": "a90f61cdbc38baa7ce7583ff3ddf885c42d561182ab2b065c319dbc3d2b69f83",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "cloud-20261008:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.90 >= 0.9; 2 needed) and Jev gave 0.66 (>= 0.6 needed)."
  }
}
