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+ FROM mcr.microsoft.com/devcontainers/python:3.10-bullseye
2+
3+ # Remove Yarn repository to avoid GPG key expiration issue
4+ RUN rm -f /etc/apt/sources.list.d/yarn.list
Original file line number Diff line number Diff line change 11
22 {
33 "name" : " Azure Developer CLI" ,
4- "image" : " mcr.microsoft.com/devcontainers/python:3.10-bullseye" ,
4+ "build" : {
5+ "dockerfile" : " Dockerfile"
6+ },
57 "features" : {
68 // See https://containers.dev/features for list of features
79 "ghcr.io/devcontainers/features/docker-in-docker:2" : {},
810 "ghcr.io/azure/azure-dev/azd:latest" : {},
9- "ghcr.io/devcontainers/features/azure-cli:1" : {}
11+ "ghcr.io/devcontainers/features/azure-cli:1" : {},
12+ "ghcr.io/devcontainers/features/powershell:2.0.0" : {}
1013 }
1114}
Original file line number Diff line number Diff line change @@ -17,18 +17,25 @@ jobs:
1717 steps :
1818 - uses : actions/checkout@v4
1919
20+ # This postprovision cleanup step (Stage 19) has been removed from azure.yaml because
21+ # azd down was failing in the pipeline. As a workaround, we are removing this step
22+ # to ensure the pipeline runs successfully.
23+ - name : Remove postprovision cleanup step from azure.yaml
24+ run : |
25+ yq -i 'del(.hooks.postprovision[] | select(.run == "./submodules/ai-landing-zone/bicep/scripts/postprovision.ps1"))' azure.yaml
26+
2027 - uses : microsoft/template-validation-action@Latest
2128 with :
2229 validateAzd : ${{ vars.TEMPLATE_VALIDATE_AZD }}
2330 useDevContainer : ${{ vars.TEMPLATE_USE_DEV_CONTAINER }}
2431 id : validation
2532 env :
26- AZURE_CLIENT_ID : ${{ vars .AZURE_CLIENT_ID }}
27- AZURE_TENANT_ID : ${{ vars .AZURE_TENANT_ID }}
28- AZURE_SUBSCRIPTION_ID : ${{ vars .AZURE_SUBSCRIPTION_ID }}
33+ AZURE_CLIENT_ID : ${{ secrets .AZURE_CLIENT_ID }}
34+ AZURE_TENANT_ID : ${{ secrets .AZURE_TENANT_ID }}
35+ AZURE_SUBSCRIPTION_ID : ${{ secrets .AZURE_SUBSCRIPTION_ID }}
2936 AZURE_ENV_NAME : ${{ vars.AZURE_ENV_NAME }}
3037 AZURE_LOCATION : ${{ vars.AZURE_LOCATION }}
3138 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32-
39+ fabricCapacityMode : ' none '
3340 - name : print result
34- run : cat ${{ steps.validation.outputs.resultFile }}
41+ run : cat ${{ steps.validation.outputs.resultFile }}
Original file line number Diff line number Diff line change 11name : deploy-your-ai-application-in-production
22
33requiredVersions :
4- azd : " >=1.15.0"
4+ azd : " >=1.15.0 != 1.23.9 "
55
66infra :
77 provider : " bicep"
Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ param vmSize = 'Standard_D2s_v3'
227227// - Full setup: fabricCapacityPreset='create', fabricWorkspacePreset='create'
228228// - No Fabric: fabricCapacityPreset='none', fabricWorkspacePreset='none'
229229// - BYO both: fabricCapacityPreset='byo', fabricWorkspacePreset='byo'
230- var fabricCapacityPreset = ' create'
230+ var fabricCapacityPreset = readEnvironmentVariable ( 'fabricCapacityMode' , ' create')
231231var fabricWorkspacePreset = fabricCapacityPreset
232232
233233// Legacy toggle retained for back-compat with older docs/scripts
@@ -245,7 +245,8 @@ param fabricWorkspaceName = '' // optional (helpful for naming/UX)
245245param fabricCapacitySku = 'F8'
246246
247247// Fabric capacity admin members (email addresses or object IDs).
248- param fabricCapacityAdmins = []
248+ var fabricAdminValue = readEnvironmentVariable ('fabricCapacityAdmins' , '' )
249+ param fabricCapacityAdmins = empty (fabricAdminValue ) ? [] : split (fabricAdminValue , ',' )
249250
250251// ========================================
251252// PURVIEW PARAMETERS (Optional)
You can’t perform that action at this time.
0 commit comments