From ef6cb9be969692ec13f9acd6518017d8d739885e Mon Sep 17 00:00:00 2001 From: Michael Wermeester Date: Thu, 29 Dec 2022 02:03:11 +0100 Subject: [PATCH] Fix: Retrieve correct service principal ID. (#690) --- arc-enabled-logic-app-sample/env/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arc-enabled-logic-app-sample/env/deploy.sh b/arc-enabled-logic-app-sample/env/deploy.sh index 9cc395e..001bcb8 100644 --- a/arc-enabled-logic-app-sample/env/deploy.sh +++ b/arc-enabled-logic-app-sample/env/deploy.sh @@ -6,7 +6,7 @@ echo 'Create Service Principal...' # create service principal export SP_INFO=$(az ad sp create-for-rbac --skip-assignment -n $SP_NAME) export CLIENT_ID=$(echo $SP_INFO | jq .appId -r) -export OBJECT_ID=$(az ad sp show --id $CLIENT_ID --query 'objectId' -o tsv) +export OBJECT_ID=$(az ad app show --id $CLIENT_ID --query 'id' -o tsv) export CLIENT_SECRET=$(echo $SP_INFO | jq .password -r) export TENANT_ID=$(echo $SP_INFO | jq .tenant -r)