Skip to content

Commit 2e3ea26

Browse files
auth modify in auth step
1 parent 8693cb2 commit 2e3ea26

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,14 @@ jobs:
201201
--role "Contributor" \
202202
--scope /subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }}/resourceGroups/${{ env.RESOURCE_GROUP_NAME }}
203203
204-
echo "Assigning Log Analytics Contributor role for Log Analytics workspace access..."
204+
echo "Assigning Log Analytics Contributor role for Log Analytics workspace access at RG level..."
205205
az role assignment create \
206206
--assignee ${{ secrets.AZURE_CLIENT_ID }} \
207207
--role "Log Analytics Contributor" \
208-
--scope /subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }} || echo "Log Analytics Contributor role assignment failed (may already exist)"
208+
--scope /subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }}/resourceGroups/${{ env.RESOURCE_GROUP_NAME }} || echo "Log Analytics Contributor role assignment failed (may already exist)"
209+
210+
echo "Waiting for role assignment propagation..."
211+
sleep 30
209212
210213
- name: Get Log Analytics Workspace and OpenAI from Resource Group
211214
if: always()

0 commit comments

Comments
 (0)