{
  "slug": "gcloud-backup-dr-restore-compute-and-disk-support-project-service-account-9248093f29b3",
  "title": "gcloud backup-dr restore compute and disk support project service account",
  "tools": [
    "gcloud"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-05-27T00:00:00.000Z",
  "announced_at": "2026-05-27T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "For a same-project restore that must use the project service agent’s credentials, add `--use-project-service-account` to the compute or disk restore command.",
    "examples": [
      "gcloud backup-dr backups restore compute <backup> --project=<project> --location=<location> --backup-vault=<backup-vault> --data-source=<data-source> --name=<instance-name> --target-project=<target-project> --target-zone=<target-zone> --use-project-service-account",
      "gcloud backup-dr backups restore disk <backup> --project=<project> --location=<location> --backup-vault=<backup-vault> --data-source=<data-source> --name=<disk-name> --target-project=<target-project> --target-zone=<target-zone> --use-project-service-account"
    ],
    "gotchas": [
      "--use-project-service-account: Use BackupDR Project Service Agent credentials instead of the Backup Vault Service Account; supported only for same-project restores.",
      "<backup>, --project, --location, --backup-vault, --data-source (required): Identify the backup and its project, location, backup vault, and data source; project can be supplied by a fully specified backup name or `core/project`.",
      "--name, --target-project (required): Set the restored resource name and destination project.",
      "--target-zone (required): Set the destination zone for a compute restore; for disk restore, this is optional and mutually exclusive with `--target-region`.",
      "--target-region: Set the destination region for a disk restore; mutually exclusive with `--target-zone`.",
      "Prerequisite: The restore must be same-project to use `--use-project-service-account`."
    ]
  },
  "why_it_matters": "Restore a compute backup or disk using the project service account when required by the restore workflow.",
  "sources": [
    "https://docs.cloud.google.com/sdk/docs/release-notes#57000_2026-05-27",
    "https://docs.cloud.google.com/sdk/gcloud/reference/backup-dr/backups/restore/compute",
    "https://docs.cloud.google.com/sdk/gcloud/reference/backup-dr/backups/restore/disk"
  ],
  "rank": 0.91017,
  "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-f07172907d5b3013-6:gate",
    "evidence_hash": "e5c3dfaf79508625221a7df7b889bce27b19e1ff9e1fc9003eb2261303cf0f2a"
  },
  "review": {
    "draft_hash": "16e78cc2399fb4fcfb9a8f753e6a8c37b62261294807b13abb4bee46f9194694",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "cloud-20261008:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.91 >= 0.9; 2 needed) and Jev gave 0.70 (>= 0.6 needed)."
  }
}
