Skip to content

Commit

Permalink
update deprecated/azure/templates
Browse files Browse the repository at this point in the history
  • Loading branch information
chkp-rivkas committed Jul 21, 2024
1 parent dc6f6d3 commit 5e36655
Show file tree
Hide file tree
Showing 12 changed files with 243 additions and 2,893 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,8 @@
"R81 - Bring Your Own License",
"R81 - Pay As You Go (NGTP)",
"R81 - Pay As You Go (NGTX)",
"R81.10 - Bring Your Own License",
"R81.10 - Pay As You Go (NGTP)",
"R81.10 - Pay As You Go (NGTX)",
"R81.20 - Bring Your Own License",
"R81.20 - Pay As You Go (NGTP)",
"R81.20 - Pay As You Go (NGTX)"
],
"defaultValue": "R81.20 - Bring Your Own License",
"defaultValue": "R81 - Bring Your Own License",
"metadata": {
"description": "Check Point CloudGuard version"
}
Expand Down Expand Up @@ -55,13 +49,6 @@
},
"defaultValue": ""
},
"MaintenanceModePasswordHash": {
"type": "securestring",
"defaultValue": "",
"metadata": {
"Description": "Maintenance mode password hash, relevant only for R81.20 and higher versions"
}
},
"SerialConsolePasswordHash": {
"type": "securestring",
"defaultValue": "",
Expand Down Expand Up @@ -375,12 +362,6 @@
"R81 - Bring Your Own License": "BYOL",
"R81 - Pay As You Go (NGTP)": "NGTP",
"R81 - Pay As You Go (NGTX)": "NGTX",
"R81.10 - Bring Your Own License": "BYOL",
"R81.10 - Pay As You Go (NGTP)": "NGTP",
"R81.10 - Pay As You Go (NGTX)": "NGTX",
"R81.20 - Bring Your Own License": "BYOL",
"R81.20 - Pay As You Go (NGTP)": "NGTP",
"R81.20 - Pay As You Go (NGTX)": "NGTX"
},
"offer": "[variables('offers')[parameters('cloudGuardVersion')]]",
"osVersions": {
Expand All @@ -390,12 +371,6 @@
"R81 - Bring Your Own License": "R81",
"R81 - Pay As You Go (NGTP)": "R81",
"R81 - Pay As You Go (NGTX)": "R81",
"R81.10 - Bring Your Own License": "R8110",
"R81.10 - Pay As You Go (NGTP)": "R8110",
"R81.10 - Pay As You Go (NGTX)": "R8110",
"R81.20 - Bring Your Own License": "R8120",
"R81.20 - Pay As You Go (NGTP)": "R8120",
"R81.20 - Pay As You Go (NGTX)": "R8120"
},
"osVersion": "[variables('osVersions')[parameters('cloudGuardVersion')]]",
"SerialConsoleGeographies": {
Expand Down Expand Up @@ -688,7 +663,7 @@
{
"name": "customData",
"count": "[variables('count')]",
"input": "[concat('#!/usr/bin/python3 /etc/cloud_config.py\n', '\n', 'installationType=\"', variables('installationType'), '\"', '\n', 'allowUploadDownload=\"', variables('allowUploadDownload'), '\"', '\n', 'osVersion=\"', variables('osVersion'), '\"', '\n', 'templateName=\"', variables('templateName'), '\"', '\n', 'isBlink=\"', variables('isBlink'), '\"', '\n', 'templateVersion=\"', variables('templateVersion'), '\"', '\n', 'bootstrapScript64=\"', variables('bootstrapScript64'), '\"', '\n', 'location=\"', variables('location'), '\"', '\n', 'sicKey=\"', variables('sicKey'), '\"', '\n', 'location=\"', variables('location'), '\"', '\n', 'tenantId=\"', subscription().tenantId, '\"', '\n', 'virtualNetwork=\"', parameters('virtualNetworkName'), '\"', '\n', 'clusterName=\"', parameters('vmName'), '\"', '\n', 'customMetrics=\"', variables('customMetrics'), '\"', '\n', 'adminShell=\"', parameters('adminShell'), '\"', '\n', '\n','smart1CloudToken=\"', variables('tokens')[copyIndex('customData')], '\"', '\n', 'Vips=\"', string(variables('VipsInformationForCloudConfig')), '\"', '\n','externalPrivateAddresses=\"', variables('externalPrivateAddresses')[2], '\"', '\n', 'MaintenanceModePassword=\"', parameters('MaintenanceModePasswordHash'), '\"', '\n', 'passwordHash=\"', parameters('SerialConsolePasswordHash'), '\"', '\n')]"
"input": "[concat('#!/usr/bin/python3 /etc/cloud_config.py\n', '\n', 'installationType=\"', variables('installationType'), '\"', '\n', 'allowUploadDownload=\"', variables('allowUploadDownload'), '\"', '\n', 'osVersion=\"', variables('osVersion'), '\"', '\n', 'templateName=\"', variables('templateName'), '\"', '\n', 'isBlink=\"', variables('isBlink'), '\"', '\n', 'templateVersion=\"', variables('templateVersion'), '\"', '\n', 'bootstrapScript64=\"', variables('bootstrapScript64'), '\"', '\n', 'location=\"', variables('location'), '\"', '\n', 'sicKey=\"', variables('sicKey'), '\"', '\n', 'location=\"', variables('location'), '\"', '\n', 'tenantId=\"', subscription().tenantId, '\"', '\n', 'virtualNetwork=\"', parameters('virtualNetworkName'), '\"', '\n', 'clusterName=\"', parameters('vmName'), '\"', '\n', 'customMetrics=\"', variables('customMetrics'), '\"', '\n', 'adminShell=\"', parameters('adminShell'), '\"', '\n', '\n','smart1CloudToken=\"', variables('tokens')[copyIndex('customData')], '\"', '\n', 'Vips=\"', string(variables('VipsInformationForCloudConfig')), '\"', '\n','externalPrivateAddresses=\"', variables('externalPrivateAddresses')[2], '\"', '\n', 'passwordHash=\"', parameters('SerialConsolePasswordHash'), '\"', '\n')]"
}
],
"DefaultVipInformation": [
Expand Down Expand Up @@ -789,7 +764,7 @@
},
"NewNsgName":
{
"value": "[parameters('NewNsgName')]"
"value":"[parameters('NewNsgName')]"
},
"tagsByResource": {
"value": "[parameters('tagsByResource')]"
Expand Down Expand Up @@ -823,7 +798,7 @@
},
"NewNsgName":
{
"value": "[parameters('NewNsgName')]"
"value":"[parameters('NewNsgName')]"
},
"tagsByResource": {
"value": "[parameters('tagsByResource')]"
Expand Down Expand Up @@ -952,8 +927,8 @@
"primary": true,
"enableIPForwarding": true,
"enableAcceleratedNetworking": true,
"networkSecurityGroup": "[if(parameters('deployNewNSG') , variables('NewNsgReference') , parameters('ExistingNSG'))]",
"ipConfigurations": "[union(variables('DefaultIpAddresses'),variables('Vips'))]"
"networkSecurityGroup":"[if(parameters('deployNewNSG') , variables('NewNsgReference') , parameters('ExistingNSG'))]",
"ipConfigurations":"[union(variables('DefaultIpAddresses'),variables('Vips'))]"
},
"tags": "[ if(contains(parameters('tagsByResource'), 'Microsoft.Network/networkInterfaces'), parameters('tagsByResource')['Microsoft.Network/networkInterfaces'], json('{}')) ]"
},
Expand All @@ -971,7 +946,7 @@
"primary": true,
"enableIPForwarding": true,
"enableAcceleratedNetworking": true,
"networkSecurityGroup": "[if(parameters('deployNewNSG') , variables('NewNsgReference') , parameters('ExistingNSG'))]",
"networkSecurityGroup":"[if(parameters('deployNewNSG') , variables('NewNsgReference') , parameters('ExistingNSG'))]",
"ipConfigurations": [
{
"name": "member-ip",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"name": "cloudGuardVersion",
"type": "Microsoft.Common.DropDown",
"label": "Check Point CloudGuard version",
"defaultValue": "R81.20",
"defaultValue": "R81",
"toolTip": "The version of Check Point CloudGuard.",
"constraints": {
"allowedValues": [
Expand All @@ -75,14 +75,6 @@
{
"label": "R81",
"value": "R81"
},
{
"label": "R81.10",
"value": "R81.10"
},
{
"label": "R81.20",
"value": "R81.20"
}
]
}
Expand Down Expand Up @@ -161,64 +153,6 @@
},
"count": 1
},
{
"name": "R8110vmSizeUiBYOL",
"type": "Microsoft.Compute.SizeSelector",
"visible": "[and(equals(steps('chkp').cloudGuardVersion, 'R81.10'), contains(steps('chkp').R80Offer, 'Bring Your Own License'))]",
"label": "Virtual machine size",
"toolTip": "The VM size. Minimum of 16 cores and 64 GB RAM is required.",
"recommendedSizes": [
"Standard_DS5_v2",
"Standard_DS15_v2"
],
"constraints": {
"excludedSizes": [
"Standard_A1_v2",
"Standard_D1_v2",
"Standard_DS1_v2",
"Standard_F1",
"Standard_F1s",
"Standard_G1",
"Standard_GS1"
]
},
"osPlatform": "Linux",
"imageReference": {
"publisher": "checkpoint",
"offer": "check-point-cg-r8110",
"sku": "mgmt-byol"
},
"count": 1
},
{
"name": "R8120vmSizeUiBYOL",
"type": "Microsoft.Compute.SizeSelector",
"visible": "[and(equals(steps('chkp').cloudGuardVersion, 'R81.20'), contains(steps('chkp').R80Offer, 'Bring Your Own License'))]",
"label": "Virtual machine size",
"toolTip": "The VM size. Minimum of 16 cores and 64 GB RAM is required.",
"recommendedSizes": [
"Standard_D4ds_v5",
"Standard_D4d_v5"
],
"constraints": {
"excludedSizes": [
"Standard_A1_v2",
"Standard_D1_v2",
"Standard_DS1_v2",
"Standard_F1",
"Standard_F1s",
"Standard_G1",
"Standard_GS1"
]
},
"osPlatform": "Linux",
"imageReference": {
"publisher": "checkpoint",
"offer": "check-point-cg-r8120",
"sku": "mgmt-byol"
},
"count": 1
},
{
"name": "installationType",
"type": "Microsoft.Common.DropDown",
Expand Down Expand Up @@ -289,53 +223,6 @@
"hideConfirmation": false
}
},
{
"name": "MaintenanceModeInfoBox",
"type": "Microsoft.Common.InfoBox",
"visible": "[and(bool(basics('auth').password), not(contains('R80.40 R81 R81.10', steps('chkp').cloudGuardVersion)))]",
"options": {
"icon": "Info",
"text": "Check Point recommends setting a maintenance-mode password for recovery purposes."
}
},
{
"visible": "[not(contains('R80.40 R81 R81.10', steps('chkp').cloudGuardVersion))]",
"name": "EnableMaintenanceMode",
"type": "Microsoft.Common.OptionsGroup",
"label": "Enable Maintenance Mode",
"defaultValue": "Yes",
"toolTip": "A unique password hash to enable VM maintenance mode.",
"constraints": {
"allowedValues": [
{
"label": "Yes",
"value": true
},
{
"label": "No",
"value": false
}
]
}
},
{
"visible": "[and(not(contains('R80.40 R81 R81.10', steps('chkp').cloudGuardVersion)), steps('chkp').EnableMaintenanceMode)]",
"name": "MaintenanceModePassword",
"type": "Microsoft.Common.PasswordBox",
"defaultValue": "",
"toolTip": "To generate a password hash use the command 'grub2-mkpasswd-pbkdf2' on Linux and paste it here.",
"label": {
"password": "Maintenance Mode password hash",
"confirmPassword": "Confirm Password"
},
"constraints": {
"required": true,
"validationMessage": "The value must be the output of the hash command."
},
"options": {
"hideConfirmation": false
}
},
{
"name": "adminShell",
"type": "Microsoft.Common.DropDown",
Expand Down Expand Up @@ -456,7 +343,7 @@
"type": "Microsoft.Common.OptionsGroup",
"label": "VM disk type",
"toolTip": "Type of CloudGuard disk.",
"visible": "[not(contains('R80.40 R81 R81.10' , steps('chkp').cloudGuardVersion))]",
"visible": "[not(contains('R80.40 R81' , steps('chkp').cloudGuardVersion))]",
"defaultValue": "Premium",
"constraints": {
"allowedValues": [
Expand All @@ -476,7 +363,7 @@
"type": "Microsoft.Common.OptionsGroup",
"label": "VM disk type",
"toolTip": "Type of CloudGuard disk.",
"visible": "[contains('R80.40 R81 R81.10' , steps('chkp').cloudGuardVersion)]",
"visible": "[contains('R80.40 R81' , steps('chkp').cloudGuardVersion)]",
"defaultValue": "Standard",
"constraints": {
"allowedValues": [
Expand Down Expand Up @@ -674,7 +561,7 @@
"authenticationType": "[basics('auth').authenticationType]",
"sshPublicKey": "[basics('auth').sshPublicKey]",
"vmName": "[basics('gatewayNameUi')]",
"vmSize": "[coalesce(steps('chkp').R8040vmSizeUiBYOL, steps('chkp').R81vmSizeUiBYOL, steps('chkp').R8110vmSizeUiBYOL, steps('chkp').R8120vmSizeUiBYOL)]",
"vmSize": "[coalesce(steps('chkp').R8040vmSizeUiBYOL, steps('chkp').R81vmSizeUiBYOL)]",
"virtualNetworkName": "[steps('network').virtualNetwork.name]",
"virtualNetworkAddressPrefix": "[steps('network').virtualNetwork.addressPrefix]",
"Subnet1Name": "[steps('network').virtualNetwork.subnets.subnet1.name]",
Expand All @@ -688,16 +575,15 @@
"bootstrapScript": "[steps('chkp').bootstrapScript]",
"allowDownloadFromUploadToCheckPoint": "[coalesce(steps('chkp').allowUploadDownload, 'true')]",
"additionalDiskSizeGB": "[int(steps('chkp').additionalDiskSizeGB)]",
"diskType": "[if(contains('R80.40 R81 R81.10' , steps('chkp').cloudGuardVersion) , steps('chkp').VMDiskTypeOldVersions , steps('chkp').VMDiskType)]",
"diskType": "[if(contains('R80.40 R81' , steps('chkp').cloudGuardVersion) , steps('chkp').VMDiskTypeOldVersions , steps('chkp').VMDiskType)]",
"sourceImageVhdUri": "[coalesce(steps('chkp').sourceImageVhdUri, 'noCustomUri')]",
"adminShell": "[steps('chkp').adminShell]",
"tagsByResource": "[steps('tags').tagsByResource]",
"deployNewNSG": "[steps('network').NSG]",
"ExistingNSG": "[steps('network').nsgSelector]",
"NewNsgName": "[steps('network').NSGName]",
"addStorageAccountIpRules": "[steps('network').addStorageAccountIpRules]",
"SerialConsolePasswordHash": "[steps('chkp').AdditionalPassword]",
"MaintenanceModePasswordHash": "[steps('chkp').MaintenanceModePassword]"
"addStorageAccountIpRules":"[steps('network').addStorageAccountIpRules]",
"SerialConsolePasswordHash": "[steps('chkp').AdditionalPassword]"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
"allowedValues": [
"R80.40 - Bring Your Own License",
"R81 - Bring Your Own License",
"R81.10 - Bring Your Own License",
"R81.20 - Bring Your Own License"
],
"defaultValue": "R81.20 - Bring Your Own License",
"metadata": {
Expand Down Expand Up @@ -47,13 +45,6 @@
},
"defaultValue": ""
},
"MaintenanceModePasswordHash": {
"type": "securestring",
"defaultValue": "",
"metadata": {
"Description": "Maintenance mode password hash, relevant only for R81.20 and higher versions"
}
},
"SerialConsolePasswordHash": {
"type": "securestring",
"defaultValue": "",
Expand Down Expand Up @@ -269,16 +260,12 @@
"location": "[parameters('location')]",
"offers": {
"R80.40 - Bring Your Own License": "BYOL",
"R81 - Bring Your Own License": "BYOL",
"R81.10 - Bring Your Own License": "BYOL",
"R81.20 - Bring Your Own License": "BYOL"
"R81 - Bring Your Own License": "BYOL"
},
"offer": "[variables('offers')[parameters('cloudGuardVersion')]]",
"osVersions": {
"R80.40 - Bring Your Own License": "R8040",
"R81 - Bring Your Own License": "R81",
"R81.10 - Bring Your Own License": "R8110",
"R81.20 - Bring Your Own License": "R8120"
"R81 - Bring Your Own License": "R81"
},
"osVersion": "[variables('osVersions')[parameters('cloudGuardVersion')]]",
"serialConsoleGeographies": {
Expand Down Expand Up @@ -338,7 +325,7 @@
"storageAccountType": "Standard_LRS",
"diskSize100GB": 100,
"diskSizeGB": "[add(parameters('additionalDiskSizeGB'), variables('diskSize100GB'))]",
"customData": "[concat('#!/usr/bin/python3 /etc/cloud_config.py\n', '\n', 'installationType=\"', parameters('installationType'), '\"', '\n', 'allowUploadDownload=\"', variables('allowUploadDownload'), '\"', '\n', 'osVersion=\"', variables('osVersion'), '\"', '\n', 'templateName=\"', variables('templateName'), '\"', '\n', 'isBlink=\"', variables('isBlink'), '\"', '\n', 'templateVersion=\"', variables('templateVersion'), '\"', '\n', 'bootstrapScript64=\"', variables('bootstrapScript64'), '\"', '\n', 'location=\"', variables('location'), '\"', '\n', 'managementGUIClientNetwork=\"', variables('managementGUIClientNetwork'), '\"', '\n', 'sicKey=\"', parameters('sicKey'), '\"', '\n', 'primary=\"', variables('primary'), '\"', '\n', 'secondary=\"', variables('secondary'), '\"', '\n', 'logserver=\"', variables('logserver'), '\"', '\n', 'adminShell=\"', parameters('adminShell'), '\"', '\n', 'MaintenanceModePassword=\"', parameters('MaintenanceModePasswordHash'), '\"', '\n', 'passwordHash=\"', parameters('SerialConsolePasswordHash'), '\"', '\n')]",
"customData": "[concat('#!/usr/bin/python3 /etc/cloud_config.py\n', '\n', 'installationType=\"', parameters('installationType'), '\"', '\n', 'allowUploadDownload=\"', variables('allowUploadDownload'), '\"', '\n', 'osVersion=\"', variables('osVersion'), '\"', '\n', 'templateName=\"', variables('templateName'), '\"', '\n', 'isBlink=\"', variables('isBlink'), '\"', '\n', 'templateVersion=\"', variables('templateVersion'), '\"', '\n', 'bootstrapScript64=\"', variables('bootstrapScript64'), '\"', '\n', 'location=\"', variables('location'), '\"', '\n', 'managementGUIClientNetwork=\"', variables('managementGUIClientNetwork'), '\"', '\n', 'sicKey=\"', parameters('sicKey'), '\"', '\n', 'primary=\"', variables('primary'), '\"', '\n', 'secondary=\"', variables('secondary'), '\"', '\n', 'logserver=\"', variables('logserver'), '\"', '\n', 'adminShell=\"', parameters('adminShell'), '\"', '\n', 'passwordHash=\"', parameters('SerialConsolePasswordHash'), '\"', '\n')]",
"customData64": "[base64(variables('customData'))]",
"imageOffer": "[concat('check-point-cg-', toLower(variables('osVersion')))]",
"imagePublisher": "checkpoint",
Expand Down Expand Up @@ -458,7 +445,7 @@
},
"NewNsgName":
{
"value": "[parameters('NewNsgName')]"
"value":"[parameters('NewNsgName')]"
}
}
}
Expand Down Expand Up @@ -495,7 +482,7 @@
},
"NewNsgName":
{
"value": "[parameters('NewNsgName')]"
"value":"[parameters('NewNsgName')]"
}
}
}
Expand Down Expand Up @@ -652,7 +639,7 @@
"name": "[variables('nic1Name')]",
"properties": {
"enableIPForwarding": false,
"networkSecurityGroup": "[if(parameters('deployNewNSG') , variables('NewNsgReference') , parameters('ExistingNSG'))]",
"networkSecurityGroup":"[if(parameters('deployNewNSG') , variables('NewNsgReference') , parameters('ExistingNSG'))]",
"ipConfigurations": [
{
"name": "ipconfig1",
Expand Down
Loading

0 comments on commit 5e36655

Please sign in to comment.