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/communication-services/how-tos/event-grid/local-testing-event-grid.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ ngrok http 7071
32
32
33
33
1. Open Postman and create a new request.
34
34
35
-

35
+

36
36
37
37
2. Select the `POST` method.
38
38
@@ -68,10 +68,10 @@ ngrok http 7071
68
68
- `Content-Type`: `application/json`
69
69
- `aeg-event-type`: `Notification`
70
70
71
-

71
+

72
72
73
73
6. Select the `Send` button to trigger the event.
74
74
75
-

75
+

76
76
77
77
At this point, an event should trigger in your Azure Function. You can verify the event by looking at the execution of your Azure Function. You can then validate that the function is doing its job correctly.

23
23
24
24
2. Now, lets configure it. The connector requires you to provide a subscription you want to use. (Should be the same subscription where your Azure Communication Services resource is). Specify the type of resource. In this case, choose `Microsoft.Communication.CommunicationServices`. Then you need to provide a resource name for the Azure Communication Services resource you want it to connect to. Finally, we need to pick the event types we want to receive, in this case: `Microsoft.Communication.SMSReceived`.

89
89
90
-
At this point, you've successfully handled the SMS event. You then have multiple options of what to do with it ranging from logging it to responding to it. In the context of this document, lets respond to it. Continue reading to learn the steps to achieve respond to the SMS.
90
+
At this point, you've successfully handled the SMS event. You then have multiple options of what to do with it ranging from logging the event to responding to the SMS. In the context of this document, we will show how to respond to it. Continue reading to learn the steps to respond to the SMS.
91
91
92
92
## Responding to the SMS
93
93
94
-
1. Start by adding the SMS connector into our flow and configuring it with the information for our Azure Communication Services resource. This allows the connector to access the resource and send the SMS on our behalf. You need the `connection string` for your resource.
94
+
1. Start by adding the SMS connector into our flow and configuring it with the information for our Azure Communication Services resource. It allows the connector to access the resource and send the SMS on our behalf. You need the `connection string` for your resource.
95
95
96
-

96
+

97
97
98
98
2. Next, we configure the connector with the information for the sender and recipient. We use the information from the event we received to populate them. Fip the `to` and `from` numbers to send an SMS back to the original sender. Finally, add a message.

101
101
102
102
Now, you can save the flow and test it by sending an SMS to the phone number associated with your Azure Communication Services resource. You should receive back a text message.
0 commit comments