Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ A number of VMs can be spun up that will then be automatically installed and con

* Each will have a single NIC and a private IP.
* The VM size can be any (selectable by the customer) that meets the Virtual Hardware Requirements. The requirements can be found on the Customer Portal (https://customerportal.darktrace.com/product-guides/main/vsensor-requirements).
* The OS will be the latest version of Ubuntu 20_04-lts (Gen2).
* The OS will be the latest version of Ubuntu 24_04-lts (Gen2).
* The VM OS disk will be StandardSSD_LRS; its size is between 30GB and 1024GB (configurable by input parameter).
* The vSensors will have a newly created Network Security Group to limit the access to the vSensor. Details can be found in the ‘Network Security Group’ below.
* The vSensor will have the provided user name (input parameter) created and its ssh public key added (input parameter).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.13.1.58284",
"templateHash": "6465596948281121102"
"version": "0.40.2.10011",
"templateHash": "15880100850915439147"
}
},
"parameters": {
Expand Down Expand Up @@ -55,17 +55,17 @@
"numberOfVsensors": {
"type": "int",
"defaultValue": 1,
"maxValue": 4,
"minValue": 1,
"maxValue": 4,
"metadata": {
"description": "Number of vSensors to be deployed, max is 4."
}
},
"diskSize": {
"type": "int",
"defaultValue": 30,
"maxValue": 1024,
"minValue": 30,
"maxValue": 1024,
"metadata": {
"description": "The vSensor disk size in GB between 30 and 1024. Check the Darktrace customer portal for more information."
}
Expand Down Expand Up @@ -99,26 +99,26 @@
"appliancePort": {
"type": "int",
"defaultValue": 443,
"maxValue": 65535,
"minValue": 1,
"maxValue": 65535,
"metadata": {
"description": "Darktrace master instance connection port."
}
},
"updateKey": {
"type": "secureString",
"type": "securestring",
"metadata": {
"description": "Darktrace Update Key needed to install the vSensor package. Contact your Darktrace representative for more information."
}
},
"pushToken": {
"type": "secureString",
"type": "securestring",
"metadata": {
"description": "The push token that vSensor will use to connect and register on the Darktrace master instance. Should be generated on the Darktrace master instance."
}
},
"osSensorHMACToken": {
"type": "secureString",
"type": "securestring",
"metadata": {
"description": "TThe osSensor HMAC Token."
}
Expand All @@ -131,7 +131,7 @@
"resources": [
{
"type": "Microsoft.Network/networkSecurityGroups",
"apiVersion": "2022-05-01",
"apiVersion": "2025-03-01",
"name": "[parameters('networkSecurityGroupName')]",
"location": "[parameters('location')]",
"properties": {
Expand Down Expand Up @@ -192,7 +192,7 @@
"count": "[length(range(0, parameters('numberOfVsensors')))]"
},
"type": "Microsoft.Network/networkInterfaces",
"apiVersion": "2022-05-01",
"apiVersion": "2025-03-01",
"name": "[format('{0}-{1}-nic', parameters('vsensorName'), add(range(0, parameters('numberOfVsensors'))[copyIndex()], 1))]",
"location": "[parameters('location')]",
"properties": {
Expand Down Expand Up @@ -222,7 +222,7 @@
"count": "[length(range(0, parameters('numberOfVsensors')))]"
},
"type": "Microsoft.Compute/virtualMachines",
"apiVersion": "2022-08-01",
"apiVersion": "2025-04-01",
"name": "[format('{0}-{1}', parameters('vsensorName'), add(range(0, parameters('numberOfVsensors'))[copyIndex()], 1))]",
"location": "[parameters('location')]",
"properties": {
Expand All @@ -239,9 +239,9 @@
"deleteOption": "delete"
},
"imageReference": {
"publisher": "canonical",
"offer": "0001-com-ubuntu-server-focal",
"sku": "20_04-lts-gen2",
"publisher": "Canonical",
"offer": "ubuntu-24_04-lts",
"sku": "server",
"version": "latest"
}
},
Expand Down Expand Up @@ -272,7 +272,7 @@
"patchMode": "ImageDefault"
}
},
"customData": "[base64(format('#!/bin/bash\nbash <(wget https://packages.darktrace.com/install -O -) --updateKey \"{0}\"\n sleep 5\n/usr/sbin/set_pushtoken.sh \"{1}\" {2}:{3}\nsleep 5\nset_ossensor_hmac.sh \"{4}\"', parameters('updateKey'), parameters('pushToken'), parameters('applianceHostName'), parameters('appliancePort'), parameters('osSensorHMACToken')))]"
"customData": "[base64(format('#!/bin/bash\nbash <(wget https://packages-cdn.darktrace.com/install -O -) --updateKey \"{0}\"\n sleep 5\n/usr/sbin/set_pushtoken.sh \"{1}\" {2}:{3}\nsleep 5\nset_ossensor_hmac.sh \"{4}\"', parameters('updateKey'), parameters('pushToken'), parameters('applianceHostName'), parameters('appliancePort'), parameters('osSensorHMACToken')))]"
},
"diagnosticsProfile": {
"bootDiagnostics": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ param osSensorHMACToken string
var nsgSourceAddressPrefix = split(varMgmtSourceAddressOrRange, ',')
var varMgmtSourceAddressOrRange = replace(MgmtSourceAddressOrRange, ' ', '')

resource networkSecurityGroup 'Microsoft.Network/networkSecurityGroups@2022-05-01' = {
resource networkSecurityGroup 'Microsoft.Network/networkSecurityGroups@2025-03-01' = {
name: networkSecurityGroupName
location: location
properties: {
Expand Down Expand Up @@ -117,7 +117,7 @@ resource networkSecurityGroup 'Microsoft.Network/networkSecurityGroups@2022-05-0
}
}

resource nic 'Microsoft.Network/networkInterfaces@2022-05-01' = [for i in range(0, numberOfVsensors): {
resource nic 'Microsoft.Network/networkInterfaces@2025-03-01' = [for i in range(0, numberOfVsensors): {
name: '${vsensorName}-${i+1}-nic'
location: location
properties: {
Expand All @@ -139,7 +139,7 @@ resource nic 'Microsoft.Network/networkInterfaces@2022-05-01' = [for i in range(
}
}]

resource vm 'Microsoft.Compute/virtualMachines@2022-08-01' = [for i in range(0, numberOfVsensors): {
resource vm 'Microsoft.Compute/virtualMachines@2025-04-01' = [for i in range(0, numberOfVsensors): {
name: '${vsensorName}-${i+1}'
location: location
properties: {
Expand Down
Loading