Skip to content

Commit 7635a84

Browse files
committed
Merge branch 'master' of https://github.com/MicrosoftDocs/azure-docs-pr into lbbugfix
2 parents 805488c + 272ab1e commit 7635a84

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

articles/iot-edge/module-deployment-monitoring.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Use automatic deployments in Azure IoT Edge to manage groups of dev
44
author: kgremban
55
manager: philmea
66
ms.author: kgremban
7-
ms.date: 12/12/2019
7+
ms.date: 01/30/2020
88
ms.topic: conceptual
99
ms.service: iot-edge
1010
services: iot-edge
@@ -56,7 +56,7 @@ The target condition is continuously evaluated throughout the lifetime of the de
5656

5757
For example, you have a deployment with a target condition tags.environment = 'prod'. When you kick off the deployment, there are 10 production devices. The modules are successfully installed in these 10 devices. The IoT Edge agent status shows 10 total devices, 10 successful responses, 0 failure responses, and 0 pending responses. Now you add five more devices with tags.environment = 'prod'. The service detects the change and the IoT Edge agent status becomes 15 total devices, 10 successful responses, 0 failure responses, and 5 pending responses while it deploys to the five new devices.
5858

59-
Use any Boolean condition on device twins tags or deviceId to select the target devices. If you want to use condition with tags, you need to add "tags":{} section in the device twin under the same level as properties. [Learn more about tags in device twin](../iot-hub/iot-hub-devguide-device-twins.md)
59+
Use any Boolean condition on device twin tags, device twin reported properties, or deviceId to select the target devices. If you want to use condition with tags, you need to add "tags":{} section in the device twin under the same level as properties. [Learn more about tags in device twin](../iot-hub/iot-hub-devguide-device-twins.md)
6060

6161
Examples of target conditions:
6262

@@ -65,10 +65,11 @@ Examples of target conditions:
6565
* tags.environment = 'prod' AND tags.location = 'westus'
6666
* tags.environment = 'prod' OR tags.location = 'westus'
6767
* tags.operator = 'John' AND tags.environment = 'prod' NOT deviceId = 'linuxprod1'
68+
* properties.reported.devicemodel = '4000x'
6869

69-
Here are some constrains when you construct a target condition:
70+
Consider these constraints when you construct a target condition:
7071

71-
* In device twin, you can only build a target condition using tags or deviceId.
72+
* In device twin, you can only build a target condition using tags, reported properties, or deviceId.
7273
* Double quotes aren't allowed in any portion of the target condition. Use single quotes.
7374
* Single quotes represent the values of the target condition. Therefore, you must escape the single quote with another single quote if it's part of the device name. For example, to target a device called `operator'sDevice`, write `deviceId='operator''sDevice'`.
7475
* Numbers, letters, and the following characters are allowed in target condition values: `-:.+%_#*?!(),=@;$`.
@@ -87,8 +88,8 @@ By default, all deployments report on four metrics:
8788

8889
* **Targeted** shows the IoT Edge devices that match the Deployment targeting condition.
8990
* **Applied** shows the targeted IoT Edge devices that are not targeted by another deployment of higher priority.
90-
* **Reporting Success** shows the IoT Edge devices that have reported back to the service that the modules have been deployed successfully.
91-
* **Reporting Failure** shows the IoT Edge devices that have reported back to the service that one or more modules have not been deployed successfully. To further investigate the error, connect remotely to those devices and view the log files.
91+
* **Reporting Success** shows the IoT Edge devices that have reported that the modules have been deployed successfully.
92+
* **Reporting Failure** shows the IoT Edge devices that have reported that one or more modules haven't been deployed successfully. To further investigate the error, connect remotely to those devices and view the log files.
9293

9394
Additionally, you can define your own custom metrics to help monitor and manage the deployment.
9495

@@ -107,7 +108,7 @@ Layered deployments are automatic deployments that can be combined together to r
107108

108109
Layered deployments have the same basic components as any automatic deployment. They target devices based on tags in the device twins, and provide the same functionality around labels, metrics, and status reporting. Layered deployments also have priorities assigned to them, but instead of using the priority to determine which deployment is applied to a device, the priority determines how multiple deployments are ranked on a device. For example, if two layered deployments have a module or a route with the same name, the layered deployment with the higher priority will be applied while the lower priority is overwritten.
109110

110-
The system runtime modules, edgeAgent and edgeHub, are not configured as part of a layered deployment. Any IoT Edge device targeted by a layered deployment needs a standard automatic deployment applied to it first to provide the base upon which layered deployments can be added.
111+
The system runtime modules, edgeAgent and edgeHub, are not configured as part of a layered deployment. Any IoT Edge device targeted by a layered deployment needs a standard automatic deployment applied to it first. The automatic deployment provides the base upon which layered deployments can be added.
111112

112113
An IoT Edge device can apply one and only one standard automatic deployment, but it can apply multiple layered automatic deployments. Any layered deployments targeting a device must have a higher priority than the automatic deployment for that device.
113114

@@ -136,7 +137,7 @@ For example, in a standard deployment you might add the simulated temperature se
136137
}
137138
```
138139

139-
In a layered deployment targeting the same devices, or a subset of the same devices, you may want to add an additional property that tells the simulated sensor to send 1000 messages and then stop. You don't want to overwrite the existing properties, so you create a new section within the desired properties called `layeredProperties`, which contains the new property:
140+
In a layered deployment that targets some or all of the same devices, you could add a property that tells the simulated sensor to send 1000 messages and then stop. You don't want to overwrite the existing properties, so you create a new section within the desired properties called `layeredProperties`, which contains the new property:
140141

141142
```json
142143
"SimulatedTemperatureSensor": {
@@ -179,7 +180,7 @@ A phased rollout is executed in the following phases and steps:
179180

180181
Deployments can be rolled back if you receive errors or misconfigurations. Because a deployment defines the absolute module configuration for an IoT Edge device, an additional deployment must also be targeted to the same device at a lower priority even if the goal is to remove all modules. 
181182

182-
Deleting a deployment does not remove the modules from targeted devices. There must be another deployment that defines a new configuration for the devices, even if it's an empty deployment.
183+
Deleting a deployment doesn't remove the modules from targeted devices. There must be another deployment that defines a new configuration for the devices, even if it's an empty deployment.
183184

184185
Perform rollbacks in the following sequence:
185186

0 commit comments

Comments
 (0)