Skip to content

Commit cc157d2

Browse files
feat: Remove Service Principal Object ID resolution step from workflow
1 parent 4559409 commit cc157d2

1 file changed

Lines changed: 1 addition & 17 deletions

File tree

.github/workflows/azure-dev.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -48,23 +48,7 @@ jobs:
4848
tenant-id: ${{ vars.AZURE_TENANT_ID }}
4949
subscription-id: ${{ vars.AZURE_SUBSCRIPTION_ID }}
5050

51-
- name: Resolve Service Principal Object ID
52-
run: |
53-
# Use explicit PRINCIPAL_ID if set, otherwise resolve Object ID from Client ID
54-
if [ -n "${{ vars.PRINCIPAL_ID }}" ]; then
55-
echo "Using explicitly configured PRINCIPAL_ID"
56-
echo "AZURE_PRINCIPAL_ID=${{ vars.PRINCIPAL_ID }}" >> $GITHUB_ENV
57-
else
58-
echo "Resolving Service Principal Object ID from Client ID..."
59-
OBJECT_ID=$(az ad sp show --id "$AZURE_CLIENT_ID" --query id -o tsv)
60-
if [ -n "$OBJECT_ID" ]; then
61-
echo "Resolved Object ID: $OBJECT_ID"
62-
echo "AZURE_PRINCIPAL_ID=$OBJECT_ID" >> $GITHUB_ENV
63-
else
64-
echo "::error::Could not resolve Service Principal Object ID from Client ID"
65-
exit 1
66-
fi
67-
fi
51+
6852

6953
- name: Create Resource Group if needed
7054
run: |

0 commit comments

Comments
 (0)