Skip to content
This repository has been archived by the owner on Jun 2, 2021. It is now read-only.

Commit

Permalink
Azure: updated to parameterize purchase plan name and sku for vmss
Browse files Browse the repository at this point in the history
Fix the issue in GitHub: Resolve #6

Change-Id: Ifa17565baf143c98dc68afeeb2b8cd87bbdd0db0
  • Loading branch information
JaydenLiang committed Sep 10, 2019
1 parent 3f49179 commit 689cb23
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions azure_template_deployment/templates/deploy_scaleset.json
Expand Up @@ -207,7 +207,13 @@
"vnetID": "[resourceId(variables('namingInfix'),'Microsoft.Network/virtualNetworks', parameters('VNetName'))]",
"subnet2Ref": "[concat(variables('vnetID'),'/subnets/', parameters('Subnet2Name'))]",
"routeTableId": "[resourceId('Microsoft.Network/routeTables',variables('routeTableName'))]",
"userdata": "[concat('{\"config-url\": \"', parameters('EndpointURL'), '/api/fgt-asg-handler', '\"}\n')]"
"userdata": "[concat('{\"config-url\": \"', parameters('EndpointURL'), '/api/fgt-asg-handler', '\"}\n')]",
"fgtvmImagePAYG": {
"publisher": "Fortinet",
"offer": "fortinet_fortigate-vm_v5",
"sku": "fortinet_fg-vm_payg_20190624",
"version": "[parameters('FOSVersion')]"
}
},
"resources": [{
"type": "Microsoft.Network/routeTables",
Expand Down Expand Up @@ -457,9 +463,9 @@
"apiVersion": "2017-03-30",
"location": "[resourceGroup().location]",
"plan": {
"name": "fortinet_fg-vm_payg",
"publisher": "fortinet",
"product": "fortinet_fortigate-vm_v5"
"name": "[variables('fgtvmImagePAYG').sku]",
"publisher": "[variables('fgtvmImagePAYG').publisher]",
"product": "[variables('fgtvmImagePAYG').offer]"
},
"properties": {
"overprovision": "false",
Expand All @@ -479,10 +485,10 @@
"createOption": "Empty"
}],
"imageReference": {
"publisher": "Fortinet",
"offer": "fortinet_fortigate-vm_v5",
"sku": "fortinet_fg-vm_payg_20190624",
"version": "[parameters('FOSVersion')]"
"publisher": "[variables('fgtvmImagePAYG').publisher]",
"offer": "[variables('fgtvmImagePAYG').offer]",
"sku": "[variables('fgtvmImagePAYG').sku]",
"version": "[variables('fgtvmImagePAYG').version]"
}
},
"osProfile": {
Expand Down

0 comments on commit 689cb23

Please sign in to comment.