-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontainerRegistrySample.bicep
59 lines (52 loc) · 1.47 KB
/
containerRegistrySample.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
@description('Location for resources.')
param location string = 'centralus'
@description('The SKU for the Container Registry.')
param containerRegistrySku string = 'Premium'
@description('Ghost container full image name and tag')
param ghostContainerName string = 'custom-ghost-ai:latest'
var containerRegistryName = replace('${resourceGroup().name}-cr-${uniqueString(resourceGroup().id)}', '-', '')
resource containerRegistry 'Microsoft.ContainerRegistry/registries@2021-12-01-preview' = {
name: containerRegistryName
location: location
sku: {
name: containerRegistrySku
}
identity: {
type: 'SystemAssigned'
}
properties: {
adminUserEnabled: false
networkRuleSet: {
defaultAction: 'Deny'
virtualNetworkRules: []
ipRules: []
}
policies: {
quarantinePolicy: {
status: 'disabled'
}
trustPolicy: {
type: 'Notary'
status: 'disabled'
}
retentionPolicy: {
days: 7
status: 'disabled'
}
exportPolicy: {
status: 'enabled'
}
}
encryption: {
status: 'disabled'
}
dataEndpointEnabled: false
publicNetworkAccess: 'Disabled'
networkRuleBypassOptions: 'AzureServices'
zoneRedundancy: 'Disabled'
anonymousPullEnabled: false
}
}
output containerRegistryName string = containerRegistryName
output registryUrl string = 'https://${containerRegistry.properties.loginServer}'
output ghostContainerName string = ghostContainerName