Skip to content

Commit 2578e84

Browse files
authored
Merge pull request #153199 from ElazarK/d-iot-micro-edge-preview
added new article moved another in toc
2 parents dd28125 + e41b1ed commit 2578e84

File tree

2 files changed

+100
-0
lines changed

2 files changed

+100
-0
lines changed

articles/defender-for-iot/device-builders/TOC.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@
6868
href: concept-recommendations.md
6969
- name: How-to guides
7070
items:
71+
- name: Install Defender for IoT micro agent for Edge (Preview)
72+
displayName: Edge, micro agent,
73+
href: how-to-install-micro-agent-for-edge.md
7174
- name: Connect to Microsoft Sentinel
7275
displayName: log analytics, service notes
7376
href: how-to-configure-with-sentinel.md
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
---
2+
title: Install Defender for IoT micro agent for Edge (Preview)
3+
description: Learn how to install, and authenticate the Defender Micro agent for Edge.
4+
ms.date: 02/08/2022
5+
ms.topic: how-to
6+
---
7+
8+
# Install Defender for IoT micro agent for Edge (Preview)
9+
10+
This article explains how to install, and authenticate the Defender micro agent for Edge.
11+
12+
## Prerequisites
13+
14+
1. Navigate to your IoT Hub or, [create a new IoT hub](../../iot-hub/iot-hub-create-through-portal.md#create-an-iot-hub).
15+
16+
1. [Register an Iot Edge device in IoT Hub](../../iot-edge/how-to-register-device.md) and [retrieve connection strings](../../iot-edge/how-to-register-device.md#view-registered-devices-and-retrieve-connection-strings).
17+
18+
1. Add the appropriate Microsoft package repository.
19+
20+
1. Download the repository configuration that matches your device operating system.
21+
22+
- For Ubuntu 18.04
23+
24+
```bash
25+
curl https://packages.microsoft.com/config/ubuntu/18.04/multiarch/prod.list > ./microsoft-prod.list
26+
```
27+
28+
- For Ubuntu 20.04
29+
30+
```bash
31+
curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list > ./microsoft-prod.list
32+
```
33+
34+
- For Debian 9 (both AMD64 and ARM64)
35+
36+
```bash
37+
curl https://packages.microsoft.com/config/debian/stretch/multiarch/prod.list > ./microsoft-prod.list
38+
```
39+
40+
1. Copy the repository configuration to the `sources.list.d` directory.
41+
42+
```bash
43+
sudo cp ./microsoft-prod.list /etc/apt/sources.list.d/
44+
```
45+
46+
1. Update the list of packages from the repository that you added with the following command:
47+
48+
```bash
49+
sudo apt-get update
50+
```
51+
52+
1. Install and configure [Edge runtime version 1.2](../../iot-edge/how-to-install-iot-edge.md)
53+
54+
## Installation
55+
56+
1. Install the Defender micro agent package on Debian, and Ubuntu based Linux distributions, using the following command:
57+
58+
```bash
59+
sudo apt-get install defender-iot-micro-agent-edge
60+
```
61+
62+
1. Validate your installation.
63+
64+
1. Ensure the micro agent is running properly with the following command:
65+
66+
```bash
67+
systemctl status defender-iot-micro-agent.service
68+
```
69+
70+
1. Ensure that the service is stable by making sure it is `active` and that the uptime of the process is appropriate
71+
72+
:::image type="content" source="media/quickstart-standalone-agent-binary-installation/active-running.png" alt-text="Check to make sure your service is stable and active.":::
73+
74+
1. Test the system end-to-end by creating a trigger file on the device. The trigger file will cause a baseline scan in the agent, that will detect the file as a baseline violation.
75+
76+
Create a file on the file system with the following command:
77+
78+
```bash
79+
sudo touch /tmp/DefenderForIoTOSBaselineTrigger.txt
80+
```
81+
82+
A baseline validation failure recommendation will occur in the hub, with a `CceId` of `CIS-debian-9-DEFENDER_FOR_IOT_TEST_CHECKS-0.0`:
83+
84+
:::image type="content" source="media/quickstart-standalone-agent-binary-installation/validation-failure.png" alt-text="The baseline validation failure recommendation that occurs in the hub." lightbox="media/quickstart-standalone-agent-binary-installation/validation-failure-expanded.png":::
85+
86+
Allow up to one hour for the recommendation to appear in the hub.
87+
88+
1. Install a specific version of the Defender IoT micro agent, use the following command:
89+
90+
```bash
91+
sudo apt-get install defender-iot-micro-agent-edge=<version>
92+
```
93+
94+
## Next steps
95+
96+
> [!div class="nextstepaction"]
97+
> [Building the Defender micro agent from source code](quickstart-building-the-defender-micro-agent-from-source.md)

0 commit comments

Comments
 (0)