This commit is contained in:
Chris Kruining 2024-11-28 07:18:53 +01:00
parent 76c5de5c32
commit 22c733d8da
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
7 changed files with 133 additions and 125 deletions

View file

@ -1,23 +1,28 @@
import { Context } from 'types.bicep'
import { Context } from 'br/Tricep:types:latest'
import { with_managed_identity } from 'br/Tricep:common/identity:latest'
import { container_registry } from 'br/Tricep:recommended/container-registry/container-registry:latest'
targetScope = 'resourceGroup'
param context Context
resource registry 'Microsoft.ContainerRegistry/registries@2023-07-01' = {
name: 'acr${context.locationAbbreviation}${context.environment}${context.projectName}'
location: context.location
sku: {
name: 'Basic'
}
identity: {
type: 'SystemAssigned'
}
properties: {
adminUserEnabled: true
dataEndpointEnabled: false
encryption: {
status: 'disabled'
var registryConfig = container_registry(context, [
with_managed_identity()
{
properties: {
adminUserEnabled: true
dataEndpointEnabled: false
encryption: {
status: 'disabled'
}
}
}
])
resource registry 'Microsoft.ContainerRegistry/registries@2023-07-01' = {
name: registryConfig.name
location: registryConfig.location
sku: registryConfig.sku
identity: registryConfig.identity
properties: registryConfig.properties
}