You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-maps/tutorial-geofence.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,7 +131,7 @@ Create the geofence JSON file using the following geofence data. You'll upload t
131
131
}
132
132
```
133
133
134
-
Follow the steps outlined in the [How to create data registry] article to upload the geofence JSON file into your Azure storage account then register it in your Azure Maps account.
134
+
Follow the steps outlined in the [How to create data registry] article to upload the geofence JSON file into your Azure storage account and register it in your Azure Maps account.
135
135
136
136
> [!IMPORTANT]
137
137
> Make sure to make a note of the unique identifier (`udid`) value, you will need it. The `udid` is how you reference the geofence you uploaded into your Azure storage account from your source code and HTTP requests.
@@ -158,29 +158,29 @@ To create the logic apps:
158
158
159
159
For the purposes of this tutorial, keep all other values on their default settings.
160
160
161
-
:::image type="content" border=false source="./media/tutorial-geofence/logic-app-create.png" alt-text="Screenshot of create a logic app.":::
161
+
:::image type="content" border="false" source="./media/tutorial-geofence/logic-app-create.png" alt-text="Screenshot of create a logic app.":::
162
162
163
-
6.Select **Review + Create**. Review your settings and select **Create**.
163
+
6.When you're done, select **Review + Create**. After Azure validates the information about your logic app resource, select **Create**.
164
164
165
165
7. When the deployment completes successfully, select **Go to resource**.
166
166
167
-
8.In the **Logic App Designer**, scroll down to the **Start with a common trigger** section. Select **When an HTTP request is received**.
167
+
8.Select **Logic app designer** in the **Development Tools** section in the menu of the left, scroll down to the **Start with a common trigger** section. Select **When an HTTP request is received**.
168
168
169
-
:::image type="content" source="./media/tutorial-geofence/logic-app-trigger.png" alt-text="Screenshot of create a logic app HTTP trigger.":::
169
+
:::image type="content" border="false" source="./media/tutorial-geofence/logic-app-trigger.png" alt-text="Screenshot of create a logic app HTTP trigger.":::
170
170
171
171
9. In the upper-right corner of Logic App Designer, select **Save**. The **HTTP POST URL** is automatically generated. Save the URL. You need it in the next section to create an event endpoint.
172
172
173
-
:::image type="content" source="./media/tutorial-geofence/logic-app-httprequest.png" alt-text="Screenshot of Logic App HTTP Request URL and JSON.":::
173
+
:::image type="content" border="false" source="./media/tutorial-geofence/logic-app-httprequest.png" alt-text="Screenshot of Logic App HTTP Request URL and JSON.":::
174
174
175
175
10. Select **+ New Step**.
176
176
177
177
11. In the search box, type `outlook.com email`. In the **Actions** list, scroll down and select **Send an email (V2)**.
178
178
179
-
:::image type="content" source="./media/tutorial-geofence/logic-app-designer.png" alt-text="Screenshot of create a logic app designer.":::
179
+
:::image type="content" border="false" source="./media/tutorial-geofence/logic-app-designer.png" alt-text="Screenshot of create a logic app designer.":::
180
180
181
181
12. Sign in to your Outlook account. Make sure to select **Yes** to allow the logic app to access the account. Fill in the fields for sending an email.
182
182
183
-
:::image type="content" source="./media/tutorial-geofence/logic-app-email.png" alt-text="Screenshot of create a logic app send email step.":::
183
+
:::image type="content" border="false" source="./media/tutorial-geofence/logic-app-email.png" alt-text="Screenshot of create a logic app send email step.":::
184
184
185
185
>[!TIP]
186
186
> You can retrieve GeoJSON response data, such as `geometryId` or `deviceId`, in your email notifications. You can configure Logic Apps to read the data sent by Event Grid. For information on how to configure Logic Apps to consume and pass event data into email notifications, see [Tutorial: Send email notifications about Azure IoT Hub events using Event Grid and Logic Apps].
@@ -218,7 +218,7 @@ Create geofence exit and enter event subscriptions:
218
218
* For **Endpoint Type**, choose `Web Hook`.
219
219
* For **Endpoint**, copy the HTTP POST URL for the logic app enter endpoint that you created in the previous section. If you forgot to save it, you can just go back into Logic App Designer and copy it from the HTTP trigger step.
220
220
221
-
:::image type="content" source="./media/tutorial-geofence/events-subscription.png" alt-text="Screenshot of Azure Maps events subscription details.":::
@@ -478,7 +478,7 @@ In the preceding GeoJSON response, the equipment has remained in the main site g
478
478
479
479
In the preceding GeoJSON response, the equipment has exited the main site geofence. As a result, the `isEventPublished` parameter is set to `true`, and the Operations Manager receives an email notification indicating that the equipment has exited a geofence.
480
480
481
-
You can also [Send email notifications using Event Grid and Logic Apps] and check [Supported Events Handlers in Event Grid] using Azure Maps.
481
+
You can also [Send email notifications using Event Grid and Logic Apps]. For more information,see [Event handlers in Azure Event Grid].
482
482
483
483
## Clean up resources
484
484
@@ -506,7 +506,7 @@ There are no resources that require cleanup.
506
506
[Send email notifications using Event Grid and Logic Apps]: ../event-grid/publish-iot-hub-events-to-logic-apps.md
507
507
[Spatial Geofence Get API]: /rest/api/maps/spatial/getgeofence
0 commit comments