File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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.4.3
23+ id : validation
24+ env :
25+ AZURE_CLIENT_ID : ${{ secrets.AZURE_CLIENT_ID }}
26+ AZURE_TENANT_ID : ${{ secrets.AZURE_TENANT_ID }}
27+ AZURE_SUBSCRIPTION_ID : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
28+ AZURE_ENV_NAME : ${{ secrets.AZURE_ENV_NAME }}
29+ AZURE_LOCATION : ${{ secrets.AZURE_LOCATION }}
30+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31+
32+ # Step 3: Print the result of the validation
33+ - name : Print result
34+ run : cat ${{ steps.validation.outputs.resultFile }}
Original file line number Diff line number Diff line change @@ -513,7 +513,6 @@ module aiFoundryAiServices 'br/public:avm/res/cognitive-services/account:0.14.0'
513513 {
514514 roleDefinitionIdOrName : '53ca6127-db72-4b80-b1b0-d745d6d5456d' // Azure AI User for deployer
515515 principalId : deployer ().objectId
516- principalType : 'User'
517516 }
518517 ]
519518 diagnosticSettings : enableMonitoring ? [{ workspaceResourceId : logAnalyticsWorkspaceResourceId }] : null
You can’t perform that action at this time.
0 commit comments