Skip to content

Commit ac86e8e

Browse files
authored
Merge pull request Azure-Samples#82 from robinsh/robinsh-0930
Fix storage conn string var.
2 parents d8e1efa + fe9d053 commit ac86e8e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

iot-hub/Samples/service/ImportExportDevicesSample/ImportExportDevicesSample.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,17 @@ public async Task RunSampleAsync()
5454
// This is a good way to test the import -- create a bunch of devices on one hub,
5555
// then use this the Copy feature to copy the devices to another hub.
5656
// Number of devices to create and add. Default is 10.
57-
Console.WriteLine("Create new devices for the hub.");
58-
int NumToAdd = 10;
59-
await GenerateAndAddDevices(_IoTHubConnectionString,
60-
containerURIwSAS, NumToAdd, deviceListFile).ConfigureAwait(false);
57+
// Console.WriteLine("Create new devices for the hub.");
58+
// int NumToAdd = 10;
59+
// await GenerateAndAddDevices(_IoTHubConnectionString,
60+
// containerURIwSAS, NumToAdd, deviceListFile).ConfigureAwait(false);
6161

6262
// This exports the devices to a file in blob storage.
6363
// You can use this to add a bunch of new devices, then export them and look at them in a file (in blob storage).
6464
// Read the list of registered devices for the IoT Hub.
6565
// Write them to blob storage.
66-
Console.WriteLine("Read devices from the original hub, write to blob storage.");
67-
await ExportDevices(containerURIwSAS, _IoTHubConnectionString).ConfigureAwait(false);
66+
// Console.WriteLine("Read devices from the original hub, write to blob storage.");
67+
// await ExportDevices(containerURIwSAS, _IoTHubConnectionString).ConfigureAwait(false);
6868

6969
Console.WriteLine("Copy devices from the original hub to a new hub.");
7070
// Copy devices from an existing hub to a new hub.

iot-hub/Samples/service/ImportExportDevicesSample/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class Program
3434
// Log into https://azure.portal.com, go to Resources, find your storage account and select it.
3535
// Select Access Keys and copy one of the connection strings.
3636
private static string _storageAccountConnectionString =
37-
Environment.GetEnvironmentVariable("STORAGE_CONN_STRING");
37+
Environment.GetEnvironmentVariable("STORAGE_ACCT_CONN_STRING");
3838

3939
public static void Main(string[] args)
4040
{

0 commit comments

Comments
 (0)