Deploy Azure Security Center for IoT C based security agent for Linux

Photo by Louis Reed on Unsplash

If you are planning to use Azure security center for your Linux device, you can install the Azure security center agent on the device by following the steps below.

  1. Login to your device. In my case, it is a Virtual machine using ubuntu 18.04. I did a ssh into my machine using below command.

2. Once logged in to device, you can download the Azure Security Center IoT Agent build/release zip file from here. I have downloaded the C Agent Version 0.0.6 on my Virtual machine.

3. Unzip the tar,gz file using the following command.

4. It’s time to fire the ASCIoT agent installation commend which is mentioned below.

Above command line arguments are explained below

  • -aui :- It is the type of authentication to be used which can be either SecurityModule or Device authentication. For further details on ASCIoT agent authentication types look here.
  • -aum:- This is the Module twin symmetric key. A module twin is added to your device identity in IoT hub. To add a module twin to your device identity in IoT hub follow steps from here. The name of the module twin will be azureiotsecurity.
  • -f:- It is the file path where your azureiotsecurity module symmetric key exists. Create one file and paste the symmetric key there.
  • -hn:- It is your IoT hub hostname which can be found in the overview section of IoT hub in Azure portal.
  • -di:- It is the deviceId of your device identity that exist in IoT hub, if not then create one from Azure portal.

Once above command ran successfully verify that your agent is installed correctly and is in running state usign below command.

The output of above command should be like below:-

If this post was helpful, please click the clap 👏 button below a few times to show your support! ⬇⬇



Always share your learnings and knowledge

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store