Skip to content

Commit 2274dc1

Browse files
committed
updated deployment guide, validation pipeline
1 parent e5c1cdf commit 2274dc1

2 files changed

Lines changed: 36 additions & 1 deletion

File tree

.github/workflows/azure-dev.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Azure Template Validation
2+
on:
3+
workflow_dispatch:
4+
5+
permissions:
6+
contents: read
7+
id-token: write
8+
pull-requests: write
9+
10+
jobs:
11+
template_validation_job:
12+
runs-on: ubuntu-latest
13+
name: Template validation
14+
15+
steps:
16+
# Step 1: Checkout the code from your repository
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
# Step 2: Validate the Azure template using microsoft/template-validation-action
21+
- name: Validate Azure Template
22+
uses: microsoft/template-validation-action@v0.3.5
23+
id: validation
24+
env:
25+
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
26+
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
27+
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
28+
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
29+
AZURE_ENV_NAME: ${{ secrets.AZURE_ENV_NAME }}
30+
AZURE_LOCATION: ${{ secrets.AZURE_LOCATION }}
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
33+
# Step 3: Print the result of the validation
34+
- name: Print result
35+
run: cat ${{ steps.validation.outputs.resultFile }}

docs/DeploymentGuide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ This will rebuild the source code, package it into a container, and push it to t
247247
```
248248
249249
3. **Add Authentication Provider**
250-
- Follow steps in [App Authentication](./ConfigureAppAuthentication_withimage.md) to configure authenitcation in app service. Note that Authentication changes can take up to 10 minutes.
250+
- Follow steps in [App Authentication](./ConfigureAppAuthentication_withImage.md) to configure authenitcation in app service. Note that Authentication changes can take up to 10 minutes.
251251
252252
4. **Deleting Resources After a Failed Deployment**
253253

0 commit comments

Comments
 (0)