A Google Cloud administrator needs to migrate an existing project (`corp-analytics-prod`) from a legacy billing account to a newly established billing account (`01A2B3-4C5D6E-7F8901`) using the Google Cloud CLI (`gcloud`). The administrator has already been granted `roles/billing.projectManager` on the project and `roles/billing.user` on the target billing account. Which sequence of operations must the administrator execute to identify the new billing account ID, link the project to the new billing account, and verify the successful linkage?
- 1Execute `gcloud billing accounts list` to identify and copy the Account ID for the target Cloud Billing account.
- 2Execute `gcloud billing projects describe corp-analytics-prod` to view the project's baseline billing status and current billing account assignment.
- 3Execute `gcloud billing projects link corp-analytics-prod --billing-account=01A2B3-4C5D6E-7F8901` to bind the project to the target billing account.
- 4Execute `gcloud billing projects describe corp-analytics-prod` to confirm that `billingAccountId` matches `01A2B3-4C5D6E-7F8901` and `billingEnabled` is `true`.
Cevap
The correct execution order requires first discovering the target Cloud Billing account ID, then describing the project to record its baseline state, followed by running the link command with the target billing account ID, and finally running describe again to verify that the project billing account ID and billing status have updated.
The proper administrative workflow begins by listing accessible billing accounts to obtain the exact target billing account ID. Next, describing the project provides a baseline view of current billing settings. Running `gcloud billing projects link` applies the new billing account binding. Finally, re-describing the project confirms that the `billingAccountId` field reflects the new ID and that `billingEnabled` is set to `true`.
Adım Adım Çözüm
Anahtar Kavram
Managing Google Cloud project billing account links via `gcloud billing projects` CLI commands requires appropriate IAM roles (`roles/billing.projectManager` or `roles/billing.admin` on project, and `roles/billing.user` on billing account) and proper operational sequence.