-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaintemplate.json
More file actions
602 lines (602 loc) · 29.2 KB
/
maintemplate.json
File metadata and controls
602 lines (602 loc) · 29.2 KB
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"hubFotigateVnetCIDR":{
"type": "string",
"defaultValue": "10.0.0.0/16",
"metadata": {
"description":"provide the CIDR for FortiGate VNet(Hub VNet)"
}
},
"fortiGatePublicFacingSubnetCIDR":{
"type": "string",
"defaultValue": "10.0.0.0/24",
"metadata": {
"description":"provide the CIDR for FortiGate public facing subnet"
}
},
"fortiGateInsideSubnetCIDR":{
"type": "string",
"defaultValue": "10.0.1.0/24",
"metadata": {
"description":"provide the CIDR for FortiGate internal/private facing subnet"
}
},
"fortiGatePublicFacingSubnetAddress":{
"type": "string",
"defaultValue": "10.0.0.4",
"metadata": {
"description":"provide the static address of public facing subnet"
}
},
"fortiGateInsideSubnetAddress":{
"type": "string",
"defaultValue": "10.0.1.4",
"metadata": {
"description":"provide the statis address of internal/private facing subnet"
}
},
"fortiGateVMSize": {
"type": "string",
"defaultValue": "Standard_F1",
"allowedValues": [
"Standard_F1",
"Standard_F16s",
"Standard_F1s",
"Standard_F2",
"Standard_F2s",
"Standard_F4",
"Standard_F4s",
"Standard_F8",
"Standard_F8s"
],
"metadata": {
"description": "FortiGate virtual machine size(if you select any size other than the default size the cost will be more)"
}
},
"adminUserName": {
"type": "string",
"defaultValue": "",
"metadata": {
"description": "username for FortiGate virtual machine, make a note of the username this will be used further"
}
},
"adminPassword": {
"type": "securestring",
"defaultValue": "",
"metadata": {
"description": "password for FortiGate virtual machine,make a note of the password this will be used further."
}
},
"clientID":{
"type": "string",
"defaultValue": "",
"metadata": {
"description":"provide application ID of the service principal,which is used to automate the Azure Fabric Connector creation"
}
},
"clientSecret":{
"type": "securestring",
"defaultValue": "",
"metadata": {
"description":"provide password of the service principal,which is used to automate the Azure Fabric Connector creation"
}
},
"fabricConnectorWorkloadAddressName":{
"type": "string",
"defaultValue": "testip",
"metadata": {
"description":"provide the name of the fabric connector address"
}
},
"fabricConnectorFirewallAddressName":{
"type": "string",
"defaultValue": "firewallip",
"metadata": {
"description":"provide the name of the FortiGate fabric connector firewall address"
}
},
"existingSpokeVnet":{
"type": "string",
"defaultValue": "",
"allowedValues": [
"Yes",
"No"
],
"metadata": {
"description": "This parameter will allow user to choose existing VNet or Create new VNet based on the values YES/NO.Note: You need to select the existing resource group while deploying the template if you choose Yes for Existing Vnet"
}
},
"existingVnetName":{
"type": "string",
"defaultValue": "",
"metadata": {
"description":"if you choose existingSpokeVnet as Yes, then provide the name of the existing VNet.Otherwise keep the default value as it is"
}
},
"existingVnetPrefix":{
"type": "string",
"defaultValue": "",
"metadata": {
"description":"if you choose existingSpokeVnet as Yes, then provide the CIDR of the existing VNet.Otherwise keep the default value as it is"
}
},
"spokeDemoVnetCIDR":{
"type": "string",
"defaultValue": "172.1.0.0/16",
"metadata": {
"description":"provide the CIDR for demo VNet(spoke)"
}
},
"spokeDemoSubnetCIDR1":{
"type": "string",
"defaultValue": "172.1.0.0/24",
"metadata": {
"description":"provide the CIDR for demo subnet1(spoke1)"
}
},
"spokeDemoSubnetCIDR2":{
"type": "string",
"defaultValue": "172.1.1.0/24",
"metadata": {
"description":"provide the CIDR for demo subnet2(spoke2)"
}
}
},
"variables": {
"apiVersions": {
"deploymentApiVersion": "2016-02-01",
"computeApiVersion": "2018-06-01",
"networkApiVersion": "2017-09-01",
"routtableApiVersion": "2015-06-15"
},
"networkSettings": {
"location": "[variables('location')]",
"networkApiVersion": "2016-03-30",
"virtualNetworkName": "[concat('ForiGateVNET',variables('suffix'))]",
"addressPrefix": "[parameters('hubFotigateVnetCIDR')]",
"subnet1Name": "[concat('PublicFacingSubnet',variables('suffix'))]",
"subnet1Prefix": "[parameters('fortiGatePublicFacingSubnetCIDR')]",
"subnet2Name": "[concat('InternalSubnet',variables('suffix'))]",
"subnet2Prefix": "[parameters('fortiGateInsideSubnetCIDR')]",
"gatewayAddress":"[split(parameters('fortiGateInsideSubnetAddress'),'.')]"
},
"wlNetworkSettings": {
"location": "[variables('location')]",
"networkApiVersion": "2016-03-30",
"virtualNetworkName": "[concat('workLoadsVNET',variables('suffix'))]",
"addressPrefix": "[parameters('spokeDemoVnetCIDR')]",
"subnetName1": "[concat('wlSubnet1',variables('suffix'))]",
"subnetName2": "[concat('wlSubnet2',variables('suffix'))]",
"subnetPrefix1": "[parameters('spokeDemoSubnetCIDR1')]",
"subnetPrefix2": "[parameters('spokeDemoSubnetCIDR2')]"
},
"fortigateFirewallSettings": {
"location": "[variables('location')]",
"fortiAvailName": "[concat('forti-avset',variables('suffix'))]",
"FGPubFacingAddress": "[parameters('fortiGatePublicFacingSubnetAddress')]",
"FGDMZAddress": "[parameters('fortiGateInsideSubnetAddress')]",
"fortiPublicIPAddressName": "[concat('forti-pip',variables('suffix'))]",
"publicIPAddressType": "Dynamic",
"FortiGateName": "[concat('fortigateVM',variables('suffix'))]",
"fortiNicName1": "[concat('forti-nic-1',variables('suffix'))]",
"fortiNicName2": "[concat('forti-nic-2',variables('suffix'))]",
"sku": "fortinet_fg-vm_payg",
"version": "6.2.0",
"product": "fortinet_fortigate-vm_v5",
"publisher": "fortinet",
"fortigateVMSize": "[parameters('fortiGateVMSize')]",
"storageAccountType": "Standard_LRS",
"adminUsername": "[parameters('adminUserName')]",
"adminPassword": "[parameters('adminPassword')]",
"fortiDnsLabelPrefix": "[concat('fortigate',variables('suffix'))]",
"routeTable1Name": "[concat('FortiGate', '-', variables('networkSettings').subnet1Name,'-routes')]",
"routeTable2Name": "[concat('FortiGate', '-', variables('networkSettings').subnet2Name,'-routes')]",
"networkSecurityGroupName":"[concat('FortiGatensg',variables('suffix'))]",
"userData": "[concat('config system sdn-connector \n edit \"fg-azure-sdn\" \n set status enable \n set type azure \n set tenant-id \"',subscription().tenantId,'\" \n set subscription-id \"',subscription().subscriptionId,'\" \n set client-id \"',parameters('clientID'),'\" \n set client-secret \"',parameters('clientSecret'),'\" \n set resource-group \"', variables('rgName'),'\" \n set azure-region global \n set update-interval 60 \n end \n config firewall address \n edit \"',parameters('fabricConnectorWorkloadAddressName'),'\" \n set type dynamic \n set comment ','',' \n set visibility enable \n set associated-interface ','', '\n set color 0 \n set sdn \"fg-azure-sdn\" \n set filter \"tag.displayName=web\" \n next \n end \n config firewall address \n edit \"',parameters('fabricConnectorFirewallAddressName'),'\" \n set type dynamic \n set comment ','',' \n set visibility enable \n set associated-interface ','', '\n set color 0 \n set sdn \"fg-azure-sdn\" \n set filter \"tag.displayName=firewall\" \n next \n end \n config firewall vip \n edit ssh-wl \n set extintf \"port1\" \n set extip \"',parameters('fortiGatePublicFacingSubnetAddress'),'\" \n set mappedip \"172.1.0.4\" \n set portforward enable \n set protocol tcp \n set extport 2222 \n set mappedport 22 \n end \n config firewall vip \n edit web-ip \n set extintf \"port1\" \n set extip \"',parameters('fortiGatePublicFacingSubnetAddress'),'\" \n set mappedip \"172.1.0.4\" \n set portforward enable \n set protocol tcp \n set extport 8888 \n set mappedport 8888 \n end \n config firewall policy \n edit 0 \n set name \"ssh-workload-policy\" \n set srcintf \"port1\" \n set dstintf \"port2\" \n set srcaddr \"all\" \n set dstaddr \"ssh-wl\" \n set action accept \n set schedule \"always\" \n set service \"ALL\" \n set logtraffic all \n set nat enable \n next \n end \n config firewall policy \n edit 0 \n set name \"web-policy\" \n set srcintf \"port1\" \n set dstintf \"port2\" \n set srcaddr \"all\" \n set dstaddr \"web-ip\" \n set action accept \n set schedule \"always\" \n set service \"ALL\" \n set logtraffic all \n set nat enable \n next \n end \n config firewall policy \n edit 0 \n set name \"internet-inbound-policy\" \n set srcintf \"port2\" \n set dstintf \"port1\" \n set srcaddr \"all\" \n set dstaddr \"all\" \n set action accept \n set schedule \"always\" \n set service \"ALL\" \n set logtraffic all \n set nat enable \n next \n end \n config firewall policy \n edit 0 \n set name \"blocking-url-policy\" \n set srcintf \"port2\" \n set dstintf \"port1\" \n set srcaddr \"',parameters('fabricConnectorWorkloadAddressName'),'\" \n set dstaddr \"all\" \n set action accept \n set schedule \"always\" \n set service \"ALL\" \n set logtraffic securityevents \n set webfilter-profile \"default\" \n set profile-protocol-options \"default\" \n set ssl-ssh-profile \"certificate-inspection\" \n set nat enable \n set inspection-mode proxy \n set status disable \n next \n end \n config system interface \n edit port2 \n set mode dhcp \n end \n config router static \n edit 1 \n set dst ',parameters('spokeDemoVnetCIDR'),'\n set gateway ',variables('staticRoute'),'\n set distance 10 \n set device port2 \n end')]"
},
"workloadsSettings": {
"location": "[variables('location')]",
"virtualMachineName1": "[concat('workloadVM-1',variables('suffix'))]",
"virtualMachineName2": "[concat('workloadVM-2',variables('suffix'))]",
"publicIPdnsPrefix": "[concat('workloadpip',variables('suffix'))]",
"adminUsername": "[variables('demoVmUserName')]",
"adminPassword": "[variables('demoVmPassword')]",
"nicName1": "[concat('wl-nic-1',variables('suffix'))]",
"nicName2": "[concat('wl-nic-2',variables('suffix'))]",
"networkSecurityGroupName": "[concat('workload-nsg',variables('suffix'))]",
"publicIpAddressName": "[concat('workload-pip',variables('suffix'))]",
"publicIpAddressType": "Static",
"vmSize": "Standard_DS1_v2",
"osPublisher": "Canonical",
"osOffer": "UbuntuServer",
"osSku": "16.04-LTS",
"storageAccountType": "Standard_LRS",
"routeTableName":"[concat('WorkloadRoute',variables('suffix'))]",
"tenantID":"[subscription().tenantId]",
"clientID":"[parameters('clientID')]",
"ClientSecret":"[parameters('clientSecret')]",
"subscriptionID":"[subscription().subscriptionId]",
"rgName":"[variables('rgName')]",
"fileUri":"[concat(variables('baseUrl'),'scripts/fg-automate.sh')]",
"osDiskName1":"[concat('wlOsDisk-1',variables('suffix'))]",
"osDiskName2":"[concat('wlOsDisk-2',variables('suffix'))]"
},
"EndUserVMSettings": {
"vnetName": "[concat('enduserVNET',variables('suffix'))]",
"subnetName": "[concat('endusersubnet',variables('suffix'))]",
"addressPrefix": "10.5.0.0/16",
"subnetPrefix": "10.5.1.0/24",
"pipName": "[concat('enduserpip',variables('suffix'))]",
"publicIPAddressType": "Dynamic",
"nsgName":"[concat('endusernsg',variables('suffix'))]",
"dnsLabelPrefix": "[concat('enduserdns',variables('suffix'))]",
"location": "[variables('location')]",
"nicName": "[concat('enduser-nic',variables('suffix'))]",
"VmName": "[concat('enduserVM',variables('suffix'))]",
"vmSize": "Standard_DS1_v2",
"Username": "[variables('enduserVmUserName')]",
"Password": "[variables('enduserVmPassword')]",
"imagePublisher": "Canonical",
"imageOffer": "UbuntuServer",
"ubuntuOSVersion": "16.04-LTS",
"fileUri":"[concat(variables('baseUrl'),'scripts/fg-routeenable.sh')]"
},
"AzureFunction":{
"appServicePlanName":"[concat('appsvc',variables('suffix'))]",
"functionAppName":"[concat('functionassociate',variables('suffix'))]",
"functionAppName1":"[concat('functionworkload',variables('suffix'))]",
"storageName":"[concat('storageacc',variables('suffix'))]",
"appInsightsName":"[concat('fg-appinsights',variables('suffix'))]",
"storageAccountsApiVersion":"2018-07-01",
"WebHostingApiVersion":"2016-03-01",
"WebSitesApiVersion":"2016-03-01",
"appInsightsApiVersion":"2015-05-01",
"storageAccountType":"Standard_LRS",
"storageAccountKind":"StorageV2",
"appServicePlanSku":"Basic",
"appServicePlanSkuCode":"B1",
"workerSize":"0",
"workerSizeId":"0",
"numberOfWorkers":"1",
"hostingEnvironment":"",
"WebHostingkind":"linux",
"WebSiteskind":"functionapp",
"appInsightskind":"web",
"applicationType":"web",
"reserved":"true",
"functionWorkerRuntime":"python",
"webSiteNodeDefaultVersion":"10.14.1",
"functionExtensionVersion":"~2",
"linuxFxVersion":"DOCKER|vivek225/routeupdatehttptrigger:v5.0.0",
"linuxFxVersion1":"DOCKER|vivek225/workloadhttptrigger:v5.0.0",
"appServiceStroage":"false",
"dockerRegistryURL":"registry.hub.docker.com"
},
"location": "[resourceGroup().location]",
"deploymentApiVersion": "2016-02-01",
"suffix": "[substring(uniqueString(resourceGroup().id), 0, 5)]",
"rgName":"[resourceGroup().name]",
"demoVmUserName":"demouser",
"enduserVmUserName":"enduser",
"demoVmPassword":"[concat('Demo@123',variables('suffix'))]",
"enduserVmPassword":"[concat('Endu@123',variables('suffix'))]",
"staticRoute":"[concat(variables('networkSettings').gatewayAddress[0],'.',variables('networkSettings').gatewayAddress[1],'.',variables('networkSettings').gatewayAddress[2],'.1')]",
"baseUrl": "https://raw.githubusercontent.com/sysgain/fortigate-azure/master/"
},
"resources": [
{
"apiVersion": "2018-02-01",
"name": "pid-5e01d470-a325-59eb-904e-13117209b836",
"type": "Microsoft.Resources/deployments",
"properties": {
"mode": "Incremental",
"template": {
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": []
}
}
},
{
"type": "Microsoft.Resources/deployments",
"name": "vnetPeeringExisting",
"apiVersion": "[variables('deploymentApiVersion')]",
"condition": "[equals(parameters('existingSpokeVnet'),'Yes')]",
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('baseUrl'),'nested/vnetpeering-existing.json')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"networkSettings": {
"value": "[variables('networkSettings')]"
},
"fortigateFirewallSettings": {
"value": "[variables('fortigateFirewallSettings')]"
},
"apiVersions": {
"value": "[variables('apiVersions')]"
},
"workloadsSettings":{
"value":"[variables('workloadsSettings')]"
},
"existingVNetName":{
"value":"[parameters('existingVNetName')]"
},
"existingVnetPrefix":{
"value":"[parameters('existingVnetPrefix')]"
}
}
}
},
{
"type": "Microsoft.Resources/deployments",
"name": "vnetPeeringNew",
"apiVersion": "[variables('deploymentApiVersion')]",
"condition": "[equals(parameters('existingSpokeVnet'),'No')]",
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('baseUrl'),'nested/vnetpeering.json')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"networkSettings": {
"value": "[variables('networkSettings')]"
},
"wlNetworkSettings": {
"value": "[variables('wlNetworkSettings')]"
},
"fortigateFirewallSettings": {
"value": "[variables('fortigateFirewallSettings')]"
},
"apiVersions": {
"value": "[variables('apiVersions')]"
},
"workloadsSettings":{
"value":"[variables('workloadsSettings')]"
}
}
}
},
{
"type": "Microsoft.Resources/deployments",
"name": "FortiGateVMExisting",
"apiVersion": "[variables('deploymentApiVersion')]",
"condition": "[equals(parameters('existingSpokeVnet'),'Yes')]",
"dependsOn": [
"vnetpeeringExisting"
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('baseUrl'),'nested/fortigate.json')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"fortigateFirewallSettings": {
"value": "[variables('fortigateFirewallSettings')]"
},
"networkSettings": {
"value": "[variables('networkSettings')]"
},
"apiVersions": {
"value": "[variables('apiVersions')]"
}
}
}
},
{
"type": "Microsoft.Resources/deployments",
"name": "FortiGateVMNew",
"apiVersion": "[variables('deploymentApiVersion')]",
"condition": "[equals(parameters('existingSpokeVnet'),'No')]",
"dependsOn": [
"vnetpeeringNew"
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('baseUrl'),'nested/fortigate.json')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"fortigateFirewallSettings": {
"value": "[variables('fortigateFirewallSettings')]"
},
"networkSettings": {
"value": "[variables('networkSettings')]"
},
"apiVersions": {
"value": "[variables('apiVersions')]"
}
}
}
},
{
"type": "Microsoft.Resources/deployments",
"name": "workloadVMNew",
"apiVersion": "[variables('deploymentApiVersion')]",
"condition": "[equals(parameters('existingSpokeVnet'),'No')]",
"dependsOn": [
"vnetpeeringNew"
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('baseUrl'),'nested/workload.json')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"workloadsSettings": {
"value": "[variables('workloadsSettings')]"
},
"wlNetworkSettings": {
"value": "[variables('wlNetworkSettings')]"
},
"apiVersions": {
"value": "[variables('apiVersions')]"
},
"adminUsername":{
"value": "[variables('demoVmUserName')]"
}
}
}
},
{
"type": "Microsoft.Resources/deployments",
"name": "functionAppNewroute",
"apiVersion": "[variables('deploymentApiVersion')]",
"condition": "[equals(parameters('existingSpokeVnet'),'No')]",
"dependsOn": [
"workloadVMNew"
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('baseUrl'),'nested/functionapp-docker-route.json')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"AzureFunction":{
"value":"[variables('AzureFunction')]"
},
"workloadsSettings": {
"value": "[variables('workloadsSettings')]"
},
"wlNetworkSettings": {
"value": "[variables('wlNetworkSettings')]"
}
}
}
},
{
"type": "Microsoft.Resources/deployments",
"name": "functionAppworkload",
"apiVersion": "[variables('deploymentApiVersion')]",
"condition": "[equals(parameters('existingSpokeVnet'),'No')]",
"dependsOn": [
"functionAppNewroute"
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('baseUrl'),'nested/functionapp-docker-workload.json')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"AzureFunction":{
"value":"[variables('AzureFunction')]"
},
"workloadsSettings": {
"value": "[variables('workloadsSettings')]"
},
"wlNetworkSettings": {
"value": "[variables('wlNetworkSettings')]"
}
}
}
},
{
"type": "Microsoft.Resources/deployments",
"name": "EndUserVMNew",
"apiVersion": "[variables('deploymentApiVersion')]",
"condition": "[equals(parameters('existingSpokeVnet'),'No')]",
"dependsOn": [
"functionAppworkload"
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('baseUrl'),'nested/EnduserVM.json')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"EndUserVMSettings":{
"value":"[variables('EndUserVMSettings')]"
},
"demoVnetAssociateRouteUrl":{
"value": "[concat('https://',variables('AzureFunction').functionAppName,'.azurewebsites.net/api/routeupdateHttpTrigger?name=update')]"
}
}
}
}
],
"outputs": {
"FortiGateWebURL": {
"condition": "[equals(parameters('existingSpokeVnet'),'Yes')]",
"type": "string",
"value": "[concat('https://',reference('FortiGateVMExisting').outputs.fortigateFQDN.value)]"
},
"FortiGate-WebURL": {
"condition": "[equals(parameters('existingSpokeVnet'),'No')]",
"type": "string",
"value": "[concat('https://',reference('FortiGateVMNew').outputs.fortigateFQDN.value)]"
},
"FortiGateDns": {
"condition": "[equals(parameters('existingSpokeVnet'),'Yes')]",
"type": "string",
"value": "[reference('FortiGateVMExisting').outputs.fortigateFQDN.value]"
},
"FortiGate-Dns": {
"condition": "[equals(parameters('existingSpokeVnet'),'No')]",
"type": "string",
"value": "[reference('FortiGateVMNew').outputs.fortigateFQDN.value]"
},
"FortiGateVMUserName": {
"type": "string",
"value": "[parameters('adminUserName')]"
},
"FortiGateVMPassword": {
"type": "string",
"value": "[parameters('adminPassword')]"
},
"WorkloadVM-UserName":{
"type": "string",
"value": "[variables('demoVmUserName')]"
},
"WorkloadVM-Password":{
"type": "string",
"value": "[variables('demoVmPassword')]"
},
"EndUserVMPublicDNS":{
"condition": "[equals(parameters('existingSpokeVnet'),'No')]",
"type": "string",
"value": "[reference('EndUserVMNew').outputs.enduserFQDN.value]"
},
"EndUserVM-UserName":{
"type": "string",
"value": "[variables('enduserVmUserName')]"
},
"EndUserVM-Password":{
"type": "string",
"value": "[variables('enduserVmPassword')]"
},
"resourceGroupName":{
"type": "string",
"value": "[resourceGroup().name]"
},
"FortiGateNic-1-IPAddress":{
"type": "string",
"value": "[variables('fortigateFirewallSettings').FGPubFacingAddress]"
},
"WorkloadVMPrivateIPAddress1":{
"condition": "[equals(parameters('existingSpokeVnet'),'No')]",
"type": "string",
"value": "[reference('workloadVMNew').outputs.WorkloadVMPrivateIPAddress1.value]"
},
"WorkloadVMPrivateIPAddress2":{
"condition": "[equals(parameters('existingSpokeVnet'),'No')]",
"type": "string",
"value": "[reference('workloadVMNew').outputs.WorkloadVMPrivateIPAddress2.value]"
},
"DemoVnetCleanupUrl":{
"condition":"[equals(parameters('existingSpokeVnet'),'No')]",
"type": "string",
"value": "[concat('https://',variables('AzureFunction').functionAppName1,'.azurewebsites.net/api/WorkloadHttpTrigger?name=demo')]"
}
}
}