Skip to content

Commit

Permalink
FGT A/P SDN: fortiGateImageSKU parameter vs variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jvhoof committed Jul 29, 2024
1 parent 76707e1 commit f4aba75
Show file tree
Hide file tree
Showing 2 changed files with 198 additions and 183 deletions.
22 changes: 11 additions & 11 deletions FortiGate/Active-Passive-SDN/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"description": "Naming prefix for all deployed resources"
}
},
"fortiGateImageSKU_x64": {
"fortiGateImageSku_x64": {
"type": "string",
"defaultValue": "fortinet_fg-vm",
"allowedValues": [
Expand All @@ -31,7 +31,7 @@
"description": "Identifies whether to to use PAYG (on demand licensing) or BYOL license model (where license is purchased separately)"
}
},
"fortiGateImageSKU_arm64": {
"fortiGateImageSku_arm64": {
"type": "string",
"defaultValue": "fortinet_fg-vm_arm64",
"allowedValues": [
Expand Down Expand Up @@ -614,7 +614,7 @@
"variables": {
"imagePublisher": "fortinet",
"imageOffer": "fortinet_fortigate-vm_v5",
"fortiGateImageSKU": "[if(equals(parameters('fortiGateInstanceArchitecture'), 'arm64'), parameters('fortiGateImageSKU_arm64'), parameters('fortiGateImageSKU_x64'))]",
"fortiGateImageSku": "[if(equals(parameters('fortiGateInstanceArchitecture'), 'arm64'), parameters('fortiGateImageSku_arm64'), parameters('fortiGateImageSku_x64'))]",
"instanceType": "[if(equals(parameters('fortiGateInstanceArchitecture'), 'arm64'), parameters('instanceType_arm64'), parameters('instanceType_x64'))]",
"fortiGateImageVersion": "[if(equals(parameters('fortiGateInstanceArchitecture'), 'arm64'), parameters('fortiGateImageVersion_arm64'), parameters('fortiGateImageVersion_x64'))]",
"availabilitySetName": "[concat(parameters('fortiGateNamePrefix'),'-AvailabilitySet')]",
Expand Down Expand Up @@ -733,14 +733,14 @@
"imageReferenceMarketplace": {
"publisher": "[variables('imagePublisher')]",
"offer": "[variables('imageOffer')]",
"sku": "[variables('fortiGateImageSKU')]",
"sku": "[variables('fortiGateImageSku')]",
"version": "[variables('FortigateImageVersion')]"
},
"imageReferenceCustomImage": {
"id": "[parameters('customImageReference')]"
},
"virtualMachinePlan": {
"name": "[variables('fortiGateImageSKU')]",
"name": "[variables('fortiGateImageSku')]",
"publisher": "[variables('imagePublisher')]",
"product": "[variables('imageOffer')]"
},
Expand Down Expand Up @@ -1203,7 +1203,7 @@
"type": "SystemAssigned"
},
"zones": "[if(variables('useAZ'), variables('zone1'), json('null'))]",
"plan": "[if(and(equals(parameters('fortiGateImageSKU'),'fortinet_fg-vm'),not(equals(parameters('customImageReference'),''))), json('null'), variables('virtualMachinePlan'))]",
"plan": "[if(and(equals(variables('fortiGateImageSku'),'fortinet_fg-vm'),not(equals(parameters('customImageReference'),''))), json('null'), variables('virtualMachinePlan'))]",
"dependsOn": [
"[variables('fgaNic1Id')]",
"[variables('fgaNic2Id')]",
Expand All @@ -1212,7 +1212,7 @@
],
"properties": {
"hardwareProfile": {
"vmSize": "[parameters('instanceType')]"
"vmSize": "[variables('instanceType')]"
},
"availabilitySet": "[if(not(variables('useAZ')), variables('availabilitySetId'), json('null'))]",
"osProfile": {
Expand All @@ -1222,7 +1222,7 @@
"customData": "[variables('fgaCustomData')]"
},
"storageProfile": {
"imageReference": "[if(and(equals(parameters('fortiGateImageSKU'),'fortinet_fg-vm'),not(equals(parameters('customImageReference'),''))), variables('imageReferenceCustomImage'), variables('imageReferenceMarketplace'))]",
"imageReference": "[if(and(equals(variables('fortiGateImageSku'),'fortinet_fg-vm'),not(equals(parameters('customImageReference'),''))), variables('imageReferenceCustomImage'), variables('imageReferenceMarketplace'))]",
"osDisk": {
"createOption": "FromImage"
},
Expand Down Expand Up @@ -1279,7 +1279,7 @@
"type": "SystemAssigned"
},
"zones": "[if(variables('useAZ'), variables('zone2'), json('null'))]",
"plan": "[if(and(equals(parameters('fortiGateImageSKU'),'fortinet_fg-vm'),not(equals(parameters('customImageReference'),''))), json('null'), variables('virtualMachinePlan'))]",
"plan": "[if(and(equals(variables('fortiGateImageSku'),'fortinet_fg-vm'),not(equals(parameters('customImageReference'),''))), json('null'), variables('virtualMachinePlan'))]",
"dependsOn": [
"[variables('fgbNic1Id')]",
"[variables('fgbNic2Id')]",
Expand All @@ -1288,7 +1288,7 @@
],
"properties": {
"hardwareProfile": {
"vmSize": "[parameters('instanceType')]"
"vmSize": "[variables('instanceType')]"
},
"availabilitySet": "[if(not(variables('useAZ')), variables('availabilitySetId'), json('null'))]",
"osProfile": {
Expand All @@ -1298,7 +1298,7 @@
"customData": "[variables('fgbCustomData')]"
},
"storageProfile": {
"imageReference": "[if(and(equals(parameters('fortiGateImageSKU'),'fortinet_fg-vm'),not(equals(parameters('customImageReference'),''))), variables('imageReferenceCustomImage'), variables('imageReferenceMarketplace'))]",
"imageReference": "[if(and(equals(variables('fortiGateImageSku'),'fortinet_fg-vm'),not(equals(parameters('customImageReference'),''))), variables('imageReferenceCustomImage'), variables('imageReferenceMarketplace'))]",
"osDisk": {
"createOption": "FromImage"
},
Expand Down
Loading

0 comments on commit f4aba75

Please sign in to comment.