-
Notifications
You must be signed in to change notification settings - Fork 13
/
nested_workload-stamp.bicep
71 lines (66 loc) · 1.65 KB
/
nested_workload-stamp.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
60
61
62
63
64
65
66
67
68
69
70
71
@description('ACR region.')
param location string = resourceGroup().location
@description('For Azure resources that support native geo-redundancy, provide the location the redundant service will have its secondary. Should be different than the location parameter and ideally should be a paired region - https://docs.microsoft.com/en-us/azure/best-practices-availability-paired-regions. This region does not need to support availability zones.')
@allowed([
'australiasoutheast'
'canadaeast'
'eastus2'
'westus'
'centralus'
'westcentralus'
'francesouth'
'germanynorth'
'westeurope'
'ukwest'
'northeurope'
'japanwest'
'southafricawest'
'northcentralus'
'eastasia'
'eastus'
'westus2'
'francecentral'
'uksouth'
'japaneast'
'southeastasia'
])
param geoRedundancyLocation string
@description('Azure Container Registry name.')
param acrName string
resource acr 'Microsoft.ContainerRegistry/registries@2023-01-01-preview' = {
name: acrName
sku: {
name: 'Premium'
}
location: location
tags: {
displayName: 'Container Registry'
}
properties: {
adminUserEnabled: false
networkRuleSet: {
defaultAction: 'Allow'
ipRules: []
}
policies: {
quarantinePolicy: {
status: 'disabled'
}
trustPolicy: {
type: 'Notary'
status: 'disabled'
}
retentionPolicy: {
days: 15
status: 'enabled'
}
}
}
}
resource acrGeoRedundancyLocation 'Microsoft.ContainerRegistry/registries/replications@2023-01-01-preview' = {
parent: acr
name: geoRedundancyLocation
location: geoRedundancyLocation
properties: {}
}
output acrId string = acr.id