Skip to content

Commit

Permalink
Merge pull request #64 from JimacoMS3/qs-tut-sharedaccesspolicy-update
Browse files Browse the repository at this point in the history
update code (1 place) and comments to reference service shared access…
  • Loading branch information
robinsh committed Jun 21, 2019
2 parents 4ea0f9d + df0f88f commit e866e52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class BackEndApplication
private static ServiceClient s_serviceClient;

// Connection string for your IoT Hub
// az iot hub show-connection-string --hub-name {your iot hub name}
// az iot hub show-connection-string --hub-name {your iot hub name} --policy-name service
private readonly static string s_connectionString = "{Your service connection string here}";

// Invoke the direct method on the device, passing the payload
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class ReadDeviceToCloudMessages
// az iot hub show --query properties.eventHubEndpoints.events.path --name {your IoT Hub name}
private readonly static string s_eventHubsCompatiblePath = "{your Event Hubs compatible name}";

// az iot hub policy show --name iothubowner --query primaryKey --hub-name {your IoT Hub name}
private readonly static string s_iotHubSasKey = "{your iothubowner primary key}";
private readonly static string s_iotHubSasKeyName = "iothubowner";
// az iot hub policy show --name service --query primaryKey --hub-name {your IoT Hub name}
private readonly static string s_iotHubSasKey = "{your service primary key}";
private readonly static string s_iotHubSasKeyName = "service";
private static EventHubClient s_eventHubClient;

// Asynchronously create a PartitionReceiver for a partition and then start
Expand Down

0 comments on commit e866e52

Please sign in to comment.