Skip to content

Commit 7d5223f

Browse files
fix: update default image tag and placeholder container image for consistency
1 parent 949c253 commit 7d5223f

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

infra/main.bicep

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ param azureAiServiceLocation string
4545
#disable-next-line no-unused-params
4646
param containerRegistryEndpoint string = ''
4747

48-
@description('Optional. The image tag to use for container images. Defaults to "latest_v2".')
49-
param imageTag string = 'latest_v2'
48+
@description('Optional. The image tag to use for container images. Defaults to "latest".')
49+
param imageTag string = 'latest'
5050

5151
@description('''Optional. Placeholder container image used to initially provision the container apps.
52-
The dedicated Azure Container Registry is empty right after infrastructure provisioning, so a public image is used as the default allowed image until the post-deployment script (scripts/deploy_container_images.*) builds and pushes the deployment-specific images and updates the apps. Defaults to the Azure Container Apps quickstart image.''')
53-
param placeholderContainerImage string = 'mcr.microsoft.com/k8se/quickstart:latest'
52+
The dedicated Azure Container Registry is empty right after infrastructure provisioning, so a public image is used as the default allowed image until the post-deployment script (scripts/deploy_container_images.*) builds and pushes the deployment-specific images and updates the apps. Defaults to the Azure Container Apps hello-world image.''')
53+
param placeholderContainerImage string = 'mcr.microsoft.com/azuredocs/containerapps-helloworld:latest'
5454

5555
@minLength(1)
5656
@allowed(['Standard', 'GlobalStandard'])

infra/main.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"_generator": {
77
"name": "bicep",
88
"version": "0.43.8.12551",
9-
"templateHash": "17608527028333640769"
9+
"templateHash": "8577992003868472105"
1010
}
1111
},
1212
"parameters": {
@@ -70,16 +70,16 @@
7070
},
7171
"imageTag": {
7272
"type": "string",
73-
"defaultValue": "latest_v2",
73+
"defaultValue": "latest",
7474
"metadata": {
75-
"description": "Optional. The image tag to use for container images. Defaults to \"latest_v2\"."
75+
"description": "Optional. The image tag to use for container images. Defaults to \"latest\"."
7676
}
7777
},
7878
"placeholderContainerImage": {
7979
"type": "string",
80-
"defaultValue": "mcr.microsoft.com/k8se/quickstart:latest",
80+
"defaultValue": "mcr.microsoft.com/azuredocs/containerapps-helloworld:latest",
8181
"metadata": {
82-
"description": "Optional. Placeholder container image used to initially provision the container apps.\nThe dedicated Azure Container Registry is empty right after infrastructure provisioning, so a public image is used as the default allowed image until the post-deployment script (scripts/deploy_container_images.*) builds and pushes the deployment-specific images and updates the apps. Defaults to the Azure Container Apps quickstart image."
82+
"description": "Optional. Placeholder container image used to initially provision the container apps.\nThe dedicated Azure Container Registry is empty right after infrastructure provisioning, so a public image is used as the default allowed image until the post-deployment script (scripts/deploy_container_images.*) builds and pushes the deployment-specific images and updates the apps. Defaults to the Azure Container Apps hello-world image."
8383
}
8484
},
8585
"deploymentType": {
@@ -895,7 +895,7 @@
895895
"_generator": {
896896
"name": "bicep",
897897
"version": "0.43.8.12551",
898-
"templateHash": "10052698379792252001"
898+
"templateHash": "17231291582633402413"
899899
},
900900
"name": "Dedicated Azure Container Registry",
901901
"description": "Provisions a dedicated Azure Container Registry (ACR) for a single deployment and configures identity-based authentication.\r\nAdmin user and anonymous pull are disabled. The provided application managed identity principals are granted the AcrPull role, and the deployer is granted a registry-scoped AcrPush role so it can push/pull images (remote builds via `az acr build` additionally rely on the deployer's higher-scope role for scheduleRun/action)."
@@ -942,7 +942,7 @@
942942
"Disabled"
943943
],
944944
"metadata": {
945-
"description": "Optional. Public network access for the registry. Defaults to Enabled. Note: `az acr build` (ACR Tasks quick builds) and Container Apps image pulls require reachability; disabling public access requires VNet agent pools and private endpoints, so it is left Enabled by default for both WAF and non-WAF deployments."
945+
"description": "Optional. Public network access for the registry. Defaults to Enabled for non-WAF deployments. In WAF (private-networking) deployments the caller sets this to Disabled: runtime image pulls flow over a private endpoint, and the post-deployment build script (scripts/deploy_container_images.*) temporarily re-enables public access for the remote `az acr build` and then restores it to Disabled."
946946
}
947947
},
948948
"networkRuleBypassOptions": {

scripts/deploy_container_images.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Write-Host "==> [deploy_container_images] Building and pushing images to the ded
2525
$AcrName = $env:AZURE_CONTAINER_REGISTRY_NAME
2626
$RegistryEndpoint = $env:AZURE_CONTAINER_REGISTRY_ENDPOINT
2727
$ResourceGroup = $env:AZURE_RESOURCE_GROUP
28-
$ImageTag = if ($env:AZURE_ENV_IMAGE_TAG) { $env:AZURE_ENV_IMAGE_TAG } else { 'latest_v2' }
28+
$ImageTag = if ($env:AZURE_ENV_IMAGE_TAG) { $env:AZURE_ENV_IMAGE_TAG } else { 'latest' }
2929
$BackendApp = $env:CONTAINER_API_APP_NAME
3030
$FrontendApp = $env:CONTAINER_WEB_APP_NAME
3131
$ProcessorApp = $env:CONTAINER_PROCESSOR_APP_NAME

scripts/deploy_container_images.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ echo "==> [deploy_container_images] Building and pushing images to the dedicated
2323
ACR_NAME="${AZURE_CONTAINER_REGISTRY_NAME:-}"
2424
REGISTRY_ENDPOINT="${AZURE_CONTAINER_REGISTRY_ENDPOINT:-}"
2525
RESOURCE_GROUP="${AZURE_RESOURCE_GROUP:-}"
26-
IMAGE_TAG="${AZURE_ENV_IMAGE_TAG:-latest_v2}"
26+
IMAGE_TAG="${AZURE_ENV_IMAGE_TAG:-latest}"
2727
BACKEND_APP="${CONTAINER_API_APP_NAME:-}"
2828
FRONTEND_APP="${CONTAINER_WEB_APP_NAME:-}"
2929
PROCESSOR_APP="${CONTAINER_PROCESSOR_APP_NAME:-}"

0 commit comments

Comments
 (0)