From 1f02019717ea8d40b503d04d5a3575b38d1ff10c Mon Sep 17 00:00:00 2001 From: Tomasz Miazga Date: Mon, 19 Jan 2026 17:22:35 +0100 Subject: [PATCH 1/2] =Update command to do global auth first --- tools/calcctl-to-sheets/command.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/calcctl-to-sheets/command.sh b/tools/calcctl-to-sheets/command.sh index f412273..b7ae65b 100644 --- a/tools/calcctl-to-sheets/command.sh +++ b/tools/calcctl-to-sheets/command.sh @@ -1 +1 @@ -cd ~ && rm -rf ~/c2c-azure-files* ~/c2c-azure-script* && mkdir ~/c2c-azure-files && mkdir ~/c2c-azure-script && cd ~/c2c-azure-script && wget https://raw.githubusercontent.com/GoogleCloudPlatform/migrationcenter-utils//tools/calcctl-to-sheets/python/requirements.txt && wget https://raw.githubusercontent.com/GoogleCloudPlatform/migrationcenter-utils//tools/calcctl-to-sheets/python/gspread_helper.py && wget https://raw.githubusercontent.com/GoogleCloudPlatform/migrationcenter-utils//tools/calcctl-to-sheets/python/calcctl-to-sheets.py && wget https://raw.githubusercontent.com/GoogleCloudPlatform/migrationcenter-utils//tools/calcctl-to-sheets/python/settings.json && pip3 install -r ~/c2c-azure-script/requirements.txt && gsutil cp -r ~/c2c-azure-files && gcloud auth login && gcloud config set project && gcloud services enable drive.googleapis.com sheets.googleapis.com && gcloud auth application-default login --scopes='https://www.googleapis.com/auth/drive','https://www.googleapis.com/auth/cloud-platform' && python3 ~/c2c-azure-script/calcctl-to-sheets.py -d ~/c2c-azure-files/ -c && cd ~ && rm -rf ~/c2c-azure-files* ~/c2c-azure-script* +gcloud auth application-default login --scopes='https://www.googleapis.com/auth/drive','https://www.googleapis.com/auth/cloud-platform' && cd ~ && rm -rf ~/c2c-azure-files* ~/c2c-azure-script* && mkdir ~/c2c-azure-files && mkdir ~/c2c-azure-script && cd ~/c2c-azure-script && wget https://raw.githubusercontent.com/GoogleCloudPlatform/migrationcenter-utils//tools/calcctl-to-sheets/python/requirements.txt && wget https://raw.githubusercontent.com/GoogleCloudPlatform/migrationcenter-utils//tools/calcctl-to-sheets/python/gspread_helper.py && wget https://raw.githubusercontent.com/GoogleCloudPlatform/migrationcenter-utils//tools/calcctl-to-sheets/python/calcctl-to-sheets.py && wget https://raw.githubusercontent.com/GoogleCloudPlatform/migrationcenter-utils//tools/calcctl-to-sheets/python/settings.json && pip3 install -r ~/c2c-azure-script/requirements.txt && gsutil cp -r ~/c2c-azure-files && gcloud config set project && gcloud services enable drive.googleapis.com sheets.googleapis.com && python3 ~/c2c-azure-script/calcctl-to-sheets.py -d ~/c2c-azure-files/ -c && cd ~ && rm -rf ~/c2c-azure-files* ~/c2c-azure-script* \ No newline at end of file From 1eb27417c663e7c4fb71851e1fd95c5fad213643 Mon Sep 17 00:00:00 2001 From: Tomasz Miazga Date: Mon, 19 Jan 2026 18:20:48 +0100 Subject: [PATCH 2/2] =Update command to do global auth first --- tools/calcctl-to-sheets/command.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/calcctl-to-sheets/command.sh b/tools/calcctl-to-sheets/command.sh index b7ae65b..e27a1f3 100644 --- a/tools/calcctl-to-sheets/command.sh +++ b/tools/calcctl-to-sheets/command.sh @@ -1 +1 @@ -gcloud auth application-default login --scopes='https://www.googleapis.com/auth/drive','https://www.googleapis.com/auth/cloud-platform' && cd ~ && rm -rf ~/c2c-azure-files* ~/c2c-azure-script* && mkdir ~/c2c-azure-files && mkdir ~/c2c-azure-script && cd ~/c2c-azure-script && wget https://raw.githubusercontent.com/GoogleCloudPlatform/migrationcenter-utils//tools/calcctl-to-sheets/python/requirements.txt && wget https://raw.githubusercontent.com/GoogleCloudPlatform/migrationcenter-utils//tools/calcctl-to-sheets/python/gspread_helper.py && wget https://raw.githubusercontent.com/GoogleCloudPlatform/migrationcenter-utils//tools/calcctl-to-sheets/python/calcctl-to-sheets.py && wget https://raw.githubusercontent.com/GoogleCloudPlatform/migrationcenter-utils//tools/calcctl-to-sheets/python/settings.json && pip3 install -r ~/c2c-azure-script/requirements.txt && gsutil cp -r ~/c2c-azure-files && gcloud config set project && gcloud services enable drive.googleapis.com sheets.googleapis.com && python3 ~/c2c-azure-script/calcctl-to-sheets.py -d ~/c2c-azure-files/ -c && cd ~ && rm -rf ~/c2c-azure-files* ~/c2c-azure-script* \ No newline at end of file +gcloud auth application-default login --scopes='https://www.googleapis.com/auth/drive','https://www.googleapis.com/auth/cloud-platform' && cd ~ && rm -rf ~/c2c-azure-files* ~/c2c-azure-script* && mkdir ~/c2c-azure-files && mkdir ~/c2c-azure-script && cd ~/c2c-azure-script && wget https://raw.githubusercontent.com/GoogleCloudPlatform/migrationcenter-utils//tools/calcctl-to-sheets/python/requirements.txt && wget https://raw.githubusercontent.com/GoogleCloudPlatform/migrationcenter-utils//tools/calcctl-to-sheets/python/gspread_helper.py && wget https://raw.githubusercontent.com/GoogleCloudPlatform/migrationcenter-utils//tools/calcctl-to-sheets/python/calcctl-to-sheets.py && wget https://raw.githubusercontent.com/GoogleCloudPlatform/migrationcenter-utils//tools/calcctl-to-sheets/python/settings.json && pip3 install -r ~/c2c-azure-script/requirements.txt && gsutil cp ~/c2c-azure-files && gcloud config set project && gcloud services enable drive.googleapis.com sheets.googleapis.com && python3 ~/c2c-azure-script/calcctl-to-sheets.py -d ~/c2c-azure-files/ -c && cd ~ && rm -rf ~/c2c-azure-files* ~/c2c-azure-script* \ No newline at end of file