Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ var resourceToken = uniqueString(subscription().id, resourceGroup().id, location
// Total ≤32 chars, alphanumeric only
var kvName = 'kv${environmentName}${resourceToken}'
var storName = 'stor${resourceToken}'

// Container Registry: alphanumeric only (5-50 chars)
var acrName = replace('cr${environmentName}${resourceToken}', '-', '')
Comment thread
tmeschter marked this conversation as resolved.
```

## Security Requirements
Expand Down Expand Up @@ -123,3 +126,4 @@ resource keyVault 'Microsoft.KeyVault/vaults@2023-07-01' = {
}
}
```

Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Container Apps Bicep Patterns

> **⚠️ Container Registry Naming:** If using Azure Container Registry, names must be alphanumeric only (5-50 characters). Use `replace()` to remove hyphens: `replace('cr${environmentName}${resourceSuffix}', '-', '')`
Comment thread
tmeschter marked this conversation as resolved.

Comment thread
tmeschter marked this conversation as resolved.
## Basic Resource

```bicep
Expand Down
Loading