-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.bicep
36 lines (31 loc) · 864 Bytes
/
main.bicep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@minLength(5)
@maxLength(50)
@description('Name of the azure container registry (must be globally unique)')
param acrName string
@description('Enable an admin user that has push/pull permission to the registry.')
param acrAdminUserEnabled bool = false
@description('Location for all resources.')
param location string = resourceGroup().location
@allowed([
'Basic'
'Standard'
'Premium'
])
@description('Tier of your Azure Container Registry.')
param acrSku string = 'Basic'
// azure container registry
resource acr 'Microsoft.ContainerRegistry/registries@2019-12-01-preview' = {
name: acrName
location: location
tags: {
displayName: 'Container Registry'
'container.registry': acrName
}
sku: {
name: acrSku
}
properties: {
adminUserEnabled: acrAdminUserEnabled
}
}
output acrLoginServer string = acr.properties.loginServer