- Login to the machine using privileged account.
- Install Google Cloud SDK, as instructed below:
- https://cloud.google.com/sdk/docs/quickstart-windows
- Run the following from command prompt to initialize the Cloud SDK:
- gcloud init --console-only
- Select a GCP project from the list
- Select a default Compute region and zone
- Login to the machine using privileged account.
- Install Google Cloud SDK, as instructed below:
- https://cloud.google.com/sdk/docs/quickstart-redhat-centos
- Run the following command to initialize the Cloud SDK:
- gcloud init --console-only
- Select a GCP project from the list
- Select a default Compute region and zone
Common PowerShell commands for GCP
- Login to Google Cloud Platform:
- gcloud auth login --no-launch-browser
- List all active GCP accounts:
- gcloud auth list
- Change the active account:
- gcloud config set account <Account_Name>
- Note: Replace <Account_Name> with the target GCP account
- Lists all available GCP projects:
- gcloud projects list
- gcloud config set project “<Project_ID>”
- Note: Replace <Project_ID> with the target GCP project ID