We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5dd9b9 commit 3eb9268Copy full SHA for 3eb9268
.github/workflows/deploy.yml
@@ -137,6 +137,15 @@ jobs:
137
capacity=${{ env.GPT_MIN_CAPACITY }} \
138
imageVersion="${IMAGE_TAG}" \
139
createdBy="Pipeline"
140
+ - name: Assign Contributor role to Service Principal
141
+ if: always()
142
+ run: |
143
+ echo "Assigning Contributor role to SPN for RG: ${{ env.RESOURCE_GROUP_NAME }}"
144
+ az role assignment create \
145
+ --assignee ${{ secrets.AZURE_CLIENT_ID }} \
146
+ --role "Contributor" \
147
+ --scope /subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }}/resourceGroups/${{ env.RESOURCE_GROUP_NAME }}
148
+
149
150
- name: Get Deployment Output and extract Values
151
id: get_output
0 commit comments