File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 # Step 1: Checkout the code from your repository
2222 - name : Checkout code
2323 uses : actions/checkout@v4
24+
25+ # Step 2: Pre-authenticate Azure for azd validation
26+ - name : Login to Azure
27+ shell : bash
28+ run : |
29+ az login --service-principal -u "${{ secrets.AZURE_CLIENT_ID }}" -p "${{ secrets.AZURE_CLIENT_SECRET }}" --tenant "${{ secrets.AZURE_TENANT_ID }}"
30+ az account set --subscription "${{ secrets.AZURE_SUBSCRIPTION_ID }}"
2431
2532 # Step 3: Validate the Azure template using microsoft/template-validation-action
2633 - name : Validate Azure Template
3845 AZURE_SUBSCRIPTION_ID : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
3946 AZURE_ENV_NAME : ${{ secrets.AZURE_ENV_NAME }}
4047 AZURE_LOCATION : ${{ secrets.AZURE_LOCATION }}
41- AZURE_ENV_OPENAI_LOCATION : ${{ secrets.AZURE_ENV_OPENAI_LOCATION }}
4248 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4349
4450 # Step 4: Print the result of the validation
Original file line number Diff line number Diff line change 11environment :
22 name : content-generation
3- location : eastus2
3+ location : eastus
44
55name : content-generation
66metadata :
@@ -17,7 +17,7 @@ parameters:
1717 description : A unique prefix for all resources (3-15 chars)
1818 azureAiServiceLocation :
1919 type : string
20- default : eastus2
20+ default : eastus
2121 displayName : AI Services Location
2222 description : Location for Azure AI Services deployments
2323 enableMonitoring :
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ param secondaryLocation string = 'uksouth'
4242@allowed ([
4343 'australiaeast'
4444 'canadaeast'
45- 'eastus'
4645 'eastus2'
4746 'japaneast'
4847 'koreacentral'
You can’t perform that action at this time.
0 commit comments