Skip to content

Commit

Permalink
FGT single: fixed API versions and base config
Browse files Browse the repository at this point in the history
  • Loading branch information
jvhoof committed Oct 10, 2024
1 parent 91cfd8d commit da2064d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions FortiGate/A-Single-VM/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,38 +333,38 @@ After deployment, the below configuration has been automatically injected during

#### FortiGate-VM - base configuration

```python
<pre><code>
config system sdn-connector
edit AzureSDN
set type azure
next
end
config router static
edit 1
set gateway 172.16.136.1
set gateway <b>172.16.136.1</b>
set device port1
next
edit 2
set dst 172.16.136.0/22
set dst <b>172.16.136.0/22</b>
set device port2
set gateway 172.16.136.65
set gateway <b>172.16.136.65</b>
next
end
config system interface
edit port1
set mode static
set ip 172.16.136.5/26
set ip <b>172.16.136.5/26</b>
set description external
set allowaccess ping ssh https
next
edit port2
set mode static
set ip 172.16.136.69/24
set ip <b>172.16.136.69/24</b>
set description internal
set allowaccess ping ssh https
next
end
```
</code></pre>

## Support

Expand Down
16 changes: 8 additions & 8 deletions FortiGate/A-Single-VM/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@
},
"resources": [
{
"apiVersion": "2024-03-01",
"apiVersion": "2023-07-01",
"name": "[concat(parameters('fortiGateNamePrefix'), '-fortinetdeployment-', uniquestring(resourceGroup().id))]",
"type": "Microsoft.Resources/deployments",
"properties": {
Expand All @@ -625,7 +625,7 @@
"condition": "[and(variables('useAS'),equals(parameters('existingAvailabilitySetName'),''))]",
"name": "[variables('availabilitySetName')]",
"type": "Microsoft.Compute/availabilitySets",
"apiVersion": "2023-03-01",
"apiVersion": "2023-09-01",
"location": "[parameters('location')]",
"tags": "[ if(contains(parameters('tagsByResource'), 'Microsoft.Compute/availabilitySets'), union(parameters('fortinetTags'),parameters('tagsByResource')['Microsoft.Compute/availabilitySets']), parameters('fortinetTags')) ]",
"properties": {
Expand All @@ -640,7 +640,7 @@
"condition": "[equals(parameters('vnetNewOrExisting'), 'new')]",
"name": "[variables('vnetName')]",
"type": "Microsoft.Network/virtualNetworks",
"apiVersion": "2023-11-01",
"apiVersion": "2023-06-01",
"location": "[parameters('location')]",
"tags": "[ if(contains(parameters('tagsByResource'), 'Microsoft.Network/virtualNetworks'), union(parameters('fortinetTags'),parameters('tagsByResource')['Microsoft.Network/virtualNetworks']), parameters('fortinetTags')) ]",
"dependsOn": [
Expand Down Expand Up @@ -681,7 +681,7 @@
"condition": "[equals(parameters('vnetNewOrExisting'), 'new')]",
"type": "Microsoft.Network/routeTables",
"name": "[variables('routeTableProtectedName')]",
"apiVersion": "2023-11-01",
"apiVersion": "2023-06-01",
"location": "[parameters('location')]",
"tags": "[ if(contains(parameters('tagsByResource'), 'Microsoft.Network/routeTables'), union(parameters('fortinetTags'),parameters('tagsByResource')['Microsoft.Network/routeTables']), parameters('fortinetTags')) ]",
"properties": {
Expand Down Expand Up @@ -715,7 +715,7 @@
{
"name": "[variables('nsgName')]",
"type": "Microsoft.Network/networkSecurityGroups",
"apiVersion": "2023-11-01",
"apiVersion": "2023-06-01",
"location": "[parameters('location')]",
"tags": "[ if(contains(parameters('tagsByResource'), 'Microsoft.Network/networkSecurityGroups'), union(parameters('fortinetTags'),parameters('tagsByResource')['Microsoft.Network/networkSecurityGroups']), parameters('fortinetTags')) ]",
"properties": {
Expand Down Expand Up @@ -755,7 +755,7 @@
"condition": "[equals(parameters('publicIP1NewOrExisting'), 'new')]",
"name": "[variables('publicIP1Name')]",
"type": "Microsoft.Network/publicIPAddresses",
"apiVersion": "2023-11-01",
"apiVersion": "2023-06-01",
"location": "[parameters('location')]",
"tags": "[ if(contains(parameters('tagsByResource'), 'Microsoft.Network/publicIPAddresses'), union(parameters('fortinetTags'),parameters('tagsByResource')['Microsoft.Network/publicIPAddresses']), parameters('fortinetTags')) ]",
"sku": {
Expand All @@ -772,7 +772,7 @@
{
"name": "[variables('fgtNic1Name')]",
"type": "Microsoft.Network/networkInterfaces",
"apiVersion": "2023-11-01",
"apiVersion": "2023-06-01",
"location": "[parameters('location')]",
"tags": "[ if(contains(parameters('tagsByResource'), 'Microsoft.Network/networkInterfaces'), union(parameters('fortinetTags'),parameters('tagsByResource')['Microsoft.Network/networkInterfaces'],variables('fastpathtag')), union(parameters('fortinetTags'),variables('fastpathtag'))) ]",
"dependsOn": [
Expand Down Expand Up @@ -805,7 +805,7 @@
{
"type": "Microsoft.Network/networkInterfaces",
"name": "[variables('fgtNic2Name')]",
"apiVersion": "2023-11-01",
"apiVersion": "2023-06-01",
"location": "[parameters('location')]",
"tags": "[ if(contains(parameters('tagsByResource'), 'Microsoft.Network/networkInterfaces'), union(parameters('fortinetTags'),parameters('tagsByResource')['Microsoft.Network/networkInterfaces'],variables('fastpathtag')), union(parameters('fortinetTags'),variables('fastpathtag'))) ]",
"dependsOn": [
Expand Down

0 comments on commit da2064d

Please sign in to comment.