Skip to content

Commit

Permalink
FG single: fixed type and different region for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
jvhoof committed Jul 25, 2024
1 parent 835a24a commit 3ecfa08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion FortiGate/A-Single-VM/createUiDefinition.json
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@
"subnets": "Standard deployment is to have an external and internal subnet"
},
"defaultValue": {
"name": "[if(equals(basics('fortiGateNamePrefix'),''),'FortiGate-VNET',concat(basics('fortiGateNamePrefix'),'-VNET'))]",
"name": "[if(equals(basics('fortiGateNamePrefix'),''),'fortigate-vnet',concat(basics('fortiGateNamePrefix'),'-vnet'))]",
"addressPrefixSize": "/22"
},
"constraints": {
Expand Down
7 changes: 4 additions & 3 deletions FortiGate/A-Single-VM/test/azuredeploy.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ BeforeAll {
$testsPrefix = "FORTIQA"
$testsResourceGroupName = "FORTIQA-$testsRandom-$templateName"
$testsAdminUsername = "azureuser"
$testsResourceGroupLocation = "westeurope"
$testsResourceGroupLocation_x86 = "westeurope"
$testsResourceGroupLocation_arm64 = "northeurope"

# ARM Template Variables
$config = "config system console `n set output standard `n end `n config system global `n set gui-theme mariner `n end `n config system admin `n edit devops `n set accprofile super_admin `n set ssh-public-key1 `""
Expand Down Expand Up @@ -141,7 +142,7 @@ Describe 'FGT Single VM' {
Context 'Deployment x86' {

It "Test Deployment" {
New-AzResourceGroup -Name $testsResourceGroupName -Location "$testsResourceGroupLocation"
New-AzResourceGroup -Name $testsResourceGroupName -Location "$testsResourceGroupLocation_x86"
(Test-AzResourceGroupDeployment -ResourceGroupName "$testsResourceGroupName" -TemplateFile "$templateFileLocation" -TemplateParameterObject $params_x86).Count | Should -Not -BeGreaterThan 0
}
It "Deployment" {
Expand Down Expand Up @@ -197,7 +198,7 @@ Describe 'FGT Single VM' {
Context 'Deployment ARM64' {

It "Test Deployment" {
New-AzResourceGroup -Name $testsResourceGroupName -Location "$testsResourceGroupLocation"
New-AzResourceGroup -Name $testsResourceGroupName -Location "$testsResourceGroupLocation_arm64"
(Test-AzResourceGroupDeployment -ResourceGroupName "$testsResourceGroupName" -TemplateFile "$templateFileLocation" -TemplateParameterObject $params_arm64).Count | Should -Not -BeGreaterThan 0
}
It "Deployment" {
Expand Down

0 comments on commit 3ecfa08

Please sign in to comment.