You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@description('Optional. The endpoint (excluding https://) of an existing container registry. This is the `loginServer` when using Azure Container Registry.')
@description('Optional. [Deprecated] The endpoint (excluding https://) of an existing container registry. Retained only for backward compatibility with existing parameter files/pipelines; each deployment now provisions its own dedicated Azure Container Registry and no longer depends on a shared/public registry.')
45
+
#disable-next-line no-unused-params
46
+
paramcontainerRegistryEndpointstring = ''
46
47
47
48
@description('Optional. The image tag to use for container images. Defaults to "latest_v2".')
48
49
paramimageTagstring = 'latest_v2'
49
50
51
+
@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.''')
metadatadescription = '''Provisions a dedicated Azure Container Registry (ACR) for a single deployment and configures identity-based authentication.
3
+
Admin 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 Contributor role so it can run remote builds (`az acr build`) and push images.'''
4
+
5
+
@description('Required. Name of the Azure Container Registry. Must be globally unique and 5-50 alphanumeric characters.')
6
+
@maxLength(50)
7
+
paramnamestring
8
+
9
+
@description('Optional. Azure region for the registry. Defaults to the resource group location.')
10
+
paramlocationstring = resourceGroup().location
11
+
12
+
@description('Optional. Tags to apply to the registry.')
13
+
paramtagsobject = {}
14
+
15
+
@description('Optional. SKU for the registry. Premium is required for private networking. Defaults to Standard.')
16
+
@allowed([
17
+
'Basic'
18
+
'Standard'
19
+
'Premium'
20
+
])
21
+
paramskustring = 'Standard'
22
+
23
+
@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.')
24
+
@allowed([
25
+
'Enabled'
26
+
'Disabled'
27
+
])
28
+
parampublicNetworkAccessstring = 'Enabled'
29
+
30
+
@description('Optional. Whether to allow trusted Azure services (e.g. ACR Tasks used by `az acr build`) to bypass network rules. Defaults to AzureServices.')
@description('Optional. Principal IDs (managed identities) to grant the AcrPull role so they can pull images using identity-based authentication.')
38
+
paramacrPullPrincipalIdsarray = []
39
+
40
+
@description('Optional. Principal ID (e.g. the deployer) to grant a registry-scoped Contributor role so it can run remote builds (az acr build) and push images. Leave empty to skip.')
41
+
parambuildPrincipalIdstring = ''
42
+
43
+
@description('Optional. Principal type for the build principal.')
44
+
@allowed([
45
+
'Device'
46
+
'ForeignGroup'
47
+
'Group'
48
+
'ServicePrincipal'
49
+
'User'
50
+
])
51
+
parambuildPrincipalTypestring = 'User'
52
+
53
+
// AcrPull role definition ID (allows pulling images).
0 commit comments