Skip to content

Commit 80abbe4

Browse files
author
Rakshith Bhyravabhotla
authored
Update README.md (#17641)
* Update README.md * Update sample_publish_events_to_a_topic_using_sas_credential.py
1 parent 44697ad commit 80abbe4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

sdk/eventgrid/azure-eventgrid/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ Use a dict-like representation to send to a topic with custom schema as shown be
211211

212212
```Python
213213
import os
214+
import uuid
215+
import datetime as dt
216+
from msrest.serialization import UTC
214217
from azure.core.credentials import AzureKeyCredential
215218
from azure.eventgrid import EventGridPublisherClient
216219

sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_events_to_a_topic_using_sas_credential.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
USAGE:
1111
python sample_publish_events_to_a_topic_using_sas_credential.py
1212
Set the environment variables with your own values before running the sample:
13-
1) EVENTGRID_SAS - The access key of your eventgrid account.
13+
1) EVENTGRID_SAS - The shared access signature to use Event Grid. This is typically given to you
14+
after creating it using the `generate_sas` method.
1415
2) EG_TOPIC_HOSTNAME - The topic hostname. Typically it exists in the format
1516
"https://<YOUR-TOPIC-NAME>.<REGION-NAME>.eventgrid.azure.net/api/events".
1617
"""

0 commit comments

Comments
 (0)