Skip to content

Commit b891b69

Browse files
azure template validation
1 parent 47a24b9 commit b891b69

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/azure-dev.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ jobs:
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
@@ -38,7 +45,6 @@ jobs:
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

azure.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
environment:
22
name: content-generation
3-
location: eastus2
3+
location: eastus
44

55
name: content-generation
66
metadata:
@@ -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:

infra/main.bicep

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ param secondaryLocation string = 'uksouth'
4242
@allowed([
4343
'australiaeast'
4444
'canadaeast'
45-
'eastus'
4645
'eastus2'
4746
'japaneast'
4847
'koreacentral'

0 commit comments

Comments
 (0)