As a Cloud security admin, you can secure your Azure workloads at the time of rollout through sensor installation scripts for the Ansible, Chef, or Puppet configuration management tools.
You can use the
Carbon Black Cloud console to download the customized sensor install script and install the sensor as part of the Azure instance initialization. You can also install the sensor on an already existing in the
Carbon Black Cloud console Azure virtual machine by using the sensor installation script.
Procedure
- On the left navigation pane, go to .
- On the Azure Worklaods page, click the Sensor Options dropdown menu and select Download sensor install scripts.
The
Download Sensor Install Scripts windows opens.
- Locate the OS version for your instance and use the Sensor Version dropdown menu to select the related sensor version to install.
These scripts are customized with pre-populated Org Keys and selected platform details.
- Click Download Scripts.
- After the package downloads, unzip it.
You can see the sensor installation folders for each of the configuration management tools.
- Open the folder.
It contains one script for Unix-based platforms and one PowerShell script for Windows.
- Create a virtual machine (VM) and use the sensor installation script (cloud_ini_linux.sh for a Linux VM or cloud_ini_windows.ps1 for a Windows VM) that is relevant to the configuration management tool in your environment.
Create an Azure virtual machine (VM) with a sensor installation script running as a part of the instance initialization:
- Go to the Azure portal and click the Virtual machines option under Azure services.
- Click Create and select Azure virtual machine.
- Select the subscription with which to associate the VM, and the resource group from the relevant dropdown menus.
- Enter a name for the new VM and select the image type from the Image dropdown menu.
- From the Size dropdown menu, select the VM size that can support the workload.
- On the Advanced tab, select the Enable user data checkbox and paste the content of the sensor installation script (for Linux or Windows) into the User data text box.
- On the Tag tab, define the key-value pairs for categorizing your VM.
For example:
Name |
Value |
Environment |
Production |
- Click Review + create.
The sensor installation starts as part of the instance initialization.
- Click Create after the validation completes successfully.
The
Generate new key pair window opens.
- Click the Download private key and create resource option.
The initializing deployment of the VM template begins.
- To install the Carbon Black sensor on Azure instances that are already available in the Carbon Black Cloud console but do not have the sensor installed, follow these steps:
For these Azure VMs, the sensor installation script has not been executed.
- Go to the Azure portal and select your existing VM.
- Click the Run command operation.
- Select the RunShellScript.
The
Run Command Script text box displays.
- Paste the content of the sensor installation script and click Run.
Results
After the sensor installs, the VM displays on the
tab in the
Carbon Black Cloud console.