Skip to content

Commit 7886a78

Browse files
Remove preprovision hooks and skipContainerDeployment parameter from Azure configuration
1 parent 268dc76 commit 7886a78

4 files changed

Lines changed: 377 additions & 3584 deletions

File tree

content-gen/azure.yaml

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -52,40 +52,6 @@ workflows:
5252
- azd: provision
5353

5454
hooks:
55-
preprovision:
56-
windows:
57-
run: |
58-
Write-Host "Preparing Content Generation Solution Accelerator deployment..." -ForegroundColor Cyan
59-
Write-Host "Checking Azure CLI authentication..."
60-
az account show --query "{name:name, id:id}" -o table
61-
62-
# For private networking on first run, skip ACI (image not yet in ACR)
63-
$currentSkip = azd env get-value skipContainerDeployment 2>$null
64-
if (-not $?) {
65-
$currentSkip = ""
66-
$global:LASTEXITCODE = 0
67-
}
68-
if ($env:enablePrivateNetworking -eq 'true' -and -not $env:ACR_NAME -and $currentSkip -ne 'false') {
69-
Write-Host "Private networking enabled - skipping container deployment until image is built" -ForegroundColor Yellow
70-
azd env set skipContainerDeployment true
71-
}
72-
shell: pwsh
73-
continueOnError: false
74-
posix:
75-
run: |
76-
echo "Preparing Content Generation Solution Accelerator deployment..."
77-
echo "Checking Azure CLI authentication..."
78-
az account show --query "{name:name, id:id}" -o table
79-
80-
# For private networking on first run, skip ACI (image not yet in ACR)
81-
current_skip=$(azd env get-value skipContainerDeployment 2>/dev/null || echo "")
82-
if [ "$enablePrivateNetworking" = "true" ] && [ -z "$ACR_NAME" ] && [ "$current_skip" != "false" ]; then
83-
echo "Private networking enabled - skipping container deployment until image is built"
84-
azd env set skipContainerDeployment true
85-
fi
86-
shell: sh
87-
continueOnError: false
88-
8955
postprovision:
9056
windows:
9157
run: |

content-gen/docs/AZD_DEPLOYMENT.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,6 @@ azd up --debug
360360

361361
If deployment gets into a bad state:
362362
```bash
363-
# Clear environment values
364-
azd env set skipContainerDeployment ""
365-
366363
# Re-run provisioning
367364
azd provision
368365
```

0 commit comments

Comments
 (0)