-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathschema-confusion-aci.json
166 lines (166 loc) · 6.57 KB
/
schema-confusion-aci.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"name": {
"type": "string",
"metadata": {
"description": "Name for the container group"
},
"defaultValue": "acinavcontainergroup"
},
"dnsPrefix": {
"type": "string",
"maxLength": 50,
"metadata": {
"description": "The DNS label for the public IP address. It must be lowercase. It should match the following regular expression, or it will raise an error: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$"
},
"defaultValue": "acinav"
},
"navRelease": {
"type": "string",
"metadata": {
"description": "Before the colon: dynamics-nav for NAV or bcsandbox for Business Central. After the colon: Identifier for the specific release like 2018-cu4-de for NAV or de for BC. Possible values can be found at https://hub.docker.com/r/microsoft/dynamics-nav/tags/ or https://hub.docker.com/r/microsoft/bcsandbox/tags/"
},
"defaultValue": "microsoft/bcsandbox:us"
},
"username": {
"type": "string",
"metadata": {
"description": "Username for your NAV super user"
}
},
"password": {
"type": "string",
"metadata": {
"description": "Password for your NAV/BC super user and your sa user on the database"
}
},
"cpuCores": {
"type": "string",
"metadata": {
"description": "The number of CPU cores to allocate to the container"
},
"defaultValue": "2.0"
},
"memoryInGb": {
"type": "string",
"metadata": {
"description": "The amount of memory to allocate to the container in gigabytes. Provide a minimum of 2 as he container will include SQL Server and NAV NST"
},
"defaultValue": "2.0"
},
"acceptEula": {
"type": "string",
"metadata": {
"description": "Change to 'Y' to accept the end user license agreement available at https://go.microsoft.com/fwlink/?linkid=861843. This is necessary to successfully run the container"
},
"defaultValue": "N",
"allowedValues": [
"Y", "N"
]
}
},
"variables": {
"image": "[parameters('navRelease')]",
"publicdnsname1": "[concat(parameters('dnsPrefix'),'.',resourceGroup().location,'.azurecontainer.io')]",
"publicdnsname": "[uniqueString(resourceGroup().id)]"
},
"resources": [
{
"name": "[parameters('name')]",
"type": "Microsoft.ContainerInstance/containerGroups",
"apiVersion": "2018-02-01-preview",
"location": "[resourceGroup().location]",
"properties": {
"containers": [
{
"name": "[parameters('name')]",
"properties": {
"environmentVariables": [
{
"name": "ACCEPT_EULA",
"value": "[parameters('acceptEula')]"
},
{
"name": "username",
"value": "[parameters('username')]"
},
{
"name": "password",
"value": "[parameters('password')]"
},
{
"name": "PublicDnsName",
"value": "[variables('publicdnsname')]"
}
],
"image": "[variables('image')]",
"ports": [
{
"protocol": "tcp",
"port": "443"
},
{
"protocol": "tcp",
"port": "80"
},
{
"protocol": "tcp",
"port": "7049"
},
{
"protocol": "tcp",
"port": "8080"
},
{
"protocol": "tcp",
"port": "1433"
}
],
"resources": {
"requests": {
"cpu": "[parameters('cpuCores')]",
"memoryInGb": "[parameters('memoryInGb')]"
}
}
}
}
],
"osType": "Windows",
"ipAddress": {
"type": "Public",
"ports": [
{
"protocol": "tcp",
"port": "443"
},
{
"protocol": "tcp",
"port": "80"
},
{
"protocol": "tcp",
"port": "7049"
},
{
"protocol": "tcp",
"port": "8080"
},
{
"protocol": "tcp",
"port": "1433"
}
],
"dnsNameLabel": "[parameters('dnsPrefix')]"
}
}
}
],
"outputs": {
"containerIPv4Address":{
"type": "string",
"value": "[reference(resourceId('Microsoft.ContainerInstance/containerGroups/', parameters('name'))).ipAddress.ip]"
}
}
}