From 37d7dd2fa3d121e052aa3c0ce0a03c9032ad0b0a Mon Sep 17 00:00:00 2001 From: Sidney Andrews Date: Wed, 19 Aug 2020 18:50:09 -0400 Subject: [PATCH] Resolve #102 --- Instructions/Labs/AZ-204_07_lab.md | 2 +- Instructions/Labs/AZ-204_07_lab_ak.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Instructions/Labs/AZ-204_07_lab.md b/Instructions/Labs/AZ-204_07_lab.md index c338f3c6..9423fafa 100644 --- a/Instructions/Labs/AZ-204_07_lab.md +++ b/Instructions/Labs/AZ-204_07_lab.md @@ -364,7 +364,7 @@ In this exercise, you used a service identity to read the value of a secret stor 1. Use the **BlobClient.DownloadAsync** method to download the contents of the referenced blob asynchronously and store the result in a variable named *response*: ``` - var response = await blobClient.DownloadAsync(); + var response = await blob.DownloadAsync(); ``` 1. Return the value of the various content stored in the *content* variable by using the **FileStreamResult** class constructor: diff --git a/Instructions/Labs/AZ-204_07_lab_ak.md b/Instructions/Labs/AZ-204_07_lab_ak.md index 6af5dae4..ee27d897 100644 --- a/Instructions/Labs/AZ-204_07_lab_ak.md +++ b/Instructions/Labs/AZ-204_07_lab_ak.md @@ -677,7 +677,7 @@ In this exercise, you used a service identity to read the value of a secret stor 1. Add the following line of code to use the **BlobClient.DownloadAsync** method to download the contents of the referenced blob asynchronously and store the result in a variable named *response*: ``` - var response = await blobClient.DownloadAsync(); + var response = await blob.DownloadAsync(); ``` 1. Add the following line of code to return the various content stored in the *content* variable by using the **FileStreamResult** class constructor: @@ -699,7 +699,7 @@ In this exercise, you used a service identity to read the value of a secret stor { string connectionString = Environment.GetEnvironmentVariable("StorageConnectionString"); BlobClient blob = new BlobClient(connectionString, "drop", "records.json"); - var response = await blobClient.DownloadAsync(); + var response = await blob.DownloadAsync(); return new FileStreamResult(response?.Value?.Content, response?.Value?.ContentType); } ```