-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathACR.json
76 lines (74 loc) · 2.44 KB
/
ACR.json
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
72
73
74
75
76
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"acrName": {
"type": "String"
},
"workspaceId": {
"type": "string"
},
"resourceTag":{
"type":"string"
}
},
"variables": {
},
"resources": [
{
"type": "Microsoft.ContainerRegistry/registries",
"apiVersion": "2019-12-01-preview",
"name": "[parameters('acrName')]",
"location": "[resourceGroup().location]",
"tags":{"Quality":"[parameters('resourceTag')]"},
"dependsOn": [
],
"sku": {
"name": "Premium"
},
"properties": {
"publicNetworkAccess": "Disabled"
},
"resources": [
{
"type": "providers/diagnosticSettings",
"name": "Microsoft.Insights/loganalytics",
"dependsOn": [
"[parameters('acrName')]"
],
"apiVersion": "2017-05-01-preview",
"properties": {
"name": "loganalytics",
"workspaceId": "[parameters('workspaceId')]",
"logs": [
{
"category": "ContainerRegistryRepositoryEvents",
"enabled": true
},
{
"category": "ContainerRegistryLoginEvents",
"enabled": true
}
],
"metrics": [
{
"category": "AllMetrics",
"enabled": true,
"retentionPolicy": {
"days": 0,
"enabled": false
}
}
]
}
}
]
}
],
"outputs": {
"acrId": {
"type": "string",
"value": "[resourceId('Microsoft.ContainerRegistry/registries', parameters('acrName'))]"
}
}
}