kaas
This commit is contained in:
parent
76c5de5c32
commit
22c733d8da
7 changed files with 133 additions and 125 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue