Skip to content

Commit 3e76e14

Browse files
Merge pull request #225749 from pauljewellmsft/pauljewell-quickstart-update
Add links from quickstart sections to dev guide
2 parents 4866c5d + 1b5c7a1 commit 3e76e14

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

articles/storage/blobs/storage-quickstart-blobs-dotnet.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ string containerName = "quickstartblobs" + Guid.NewGuid().ToString();
173173
BlobContainerClient containerClient = await blobServiceClient.CreateBlobContainerAsync(containerName);
174174
```
175175
176+
To learn more about creating a container, and to explore more code samples, see [Create a blob container with .NET](storage-blob-container-create.md).
177+
176178
### Upload a blob to a container
177179
178180
Add the following code to the end of the `Program.cs` class:
@@ -202,6 +204,8 @@ The code snippet completes the following steps:
202204
1. Gets a reference to a [BlobClient](/dotnet/api/azure.storage.blobs.blobclient) object by calling the [GetBlobClient](/dotnet/api/azure.storage.blobs.blobcontainerclient.getblobclient) method on the container from the [Create a container](#create-a-container) section.
203205
1. Uploads the local text file to the blob by calling the [UploadAsync](/dotnet/api/azure.storage.blobs.blobclient.uploadasync#Azure_Storage_Blobs_BlobClient_UploadAsync_System_String_System_Boolean_System_Threading_CancellationToken_) method. This method creates the blob if it doesn't already exist, and overwrites it if it does.
204206
207+
To learn more about uploading blobs, and to explore more code samples, see [Upload a blob with .NET](storage-blob-upload.md).
208+
205209
### List blobs in a container
206210
207211
List the blobs in the container by calling the [GetBlobsAsync](/dotnet/api/azure.storage.blobs.blobcontainerclient.getblobsasync) method. In this case, only one blob has been added to the container, so the listing operation returns just that one blob.
@@ -218,6 +222,8 @@ await foreach (BlobItem blobItem in containerClient.GetBlobsAsync())
218222
}
219223
```
220224
225+
To learn more about listing blobs, and to explore more code samples, see [List blobs with .NET](storage-blobs-list.md).
226+
221227
### Download a blob
222228
223229
Download the previously created blob by calling the [DownloadToAsync](/dotnet/api/azure.storage.blobs.specialized.blobbaseclient.downloadtoasync) method. The example code adds a suffix of "DOWNLOADED" to the file name so that you can see both files in local file system.
@@ -236,6 +242,8 @@ Console.WriteLine("\nDownloading blob to\n\t{0}\n", downloadFilePath);
236242
await blobClient.DownloadToAsync(downloadFilePath);
237243
```
238244
245+
To learn more about downloading blobs, and to explore more code samples, see [Download a blob with .NET](storage-blob-download.md).
246+
239247
### Delete a container
240248
241249
The following code cleans up the resources the app created by deleting the entire container by using [DeleteAsync](/dotnet/api/azure.storage.blobs.blobcontainerclient.deleteasync). It also deletes the local files created by the app.
@@ -259,6 +267,8 @@ File.Delete(downloadFilePath);
259267
Console.WriteLine("Done");
260268
```
261269
270+
To learn more about deleting a container, and to explore more code samples, see [Delete and restore a blob container with .NET](storage-blob-container-delete.md).
271+
262272
## The completed code
263273
264274
After completing these steps the code in your `Program.cs` file should now resemble the following:

articles/storage/blobs/storage-quickstart-blobs-java.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,8 @@ Add this code to the end of the `Main` method:
335335

336336
:::code language="java" source="~/azure-storage-snippets/blobs/quickstarts/Java/blob-quickstart/src/main/java/com/blobs/quickstart/App.java" id="Snippet_CreateContainer":::
337337

338+
To learn more about creating a container, and to explore more code samples, see [Create a blob container with Java](storage-blob-container-create-java.md).
339+
338340
### Upload blobs to a container
339341

340342
Add this code to the end of the `Main` method:
@@ -347,6 +349,8 @@ The code snippet completes the following steps:
347349
1. Gets a reference to a [BlobClient](/java/api/com.azure.storage.blob.blobclient) object by calling the [getBlobClient](/java/api/com.azure.storage.blob.blobcontainerclient.getblobclient) method on the container from the [Create a container](#create-a-container) section.
348350
1. Uploads the local text file to the blob by calling the [uploadFromFile](/java/api/com.azure.storage.blob.blobclient.uploadfromfile) method. This method creates the blob if it doesn't already exist, but won't overwrite it if it does.
349351

352+
To learn more about uploading blobs, and to explore more code samples, see [Upload a blob with Java](storage-blob-upload-java.md).
353+
350354
### List the blobs in a container
351355

352356
List the blobs in the container by calling the [listBlobs](/java/api/com.azure.storage.blob.blobcontainerclient.listblobs) method. In this case, only one blob has been added to the container, so the listing operation returns just that one blob.
@@ -355,6 +359,8 @@ Add this code to the end of the `Main` method:
355359

356360
:::code language="java" source="~/azure-storage-snippets/blobs/quickstarts/Java/blob-quickstart/src/main/java/com/blobs/quickstart/App.java" id="Snippet_ListBlobs":::
357361

362+
To learn more about listing blobs, and to explore more code samples, see [List blobs with Java](storage-blobs-list-java.md).
363+
358364
### Download blobs
359365

360366
Download the previously created blob by calling the [downloadToFile](/java/api/com.azure.storage.blob.specialized.blobclientbase.downloadtofile) method. The example code adds a suffix of "DOWNLOAD" to the file name so that you can see both files in local file system.
@@ -363,6 +369,8 @@ Add this code to the end of the `Main` method:
363369

364370
:::code language="java" source="~/azure-storage-snippets/blobs/quickstarts/Java/blob-quickstart/src/main/java/com/blobs/quickstart/App.java" id="Snippet_DownloadBlob":::
365371

372+
To learn more about downloading blobs, and to explore more code samples, see [Download a blob with Java](storage-blob-download-java.md).
373+
366374
### Delete a container
367375

368376
The following code cleans up the resources the app created by removing the entire container using the [delete](/java/api/com.azure.storage.blob.blobcontainerclient.delete) method. It also deletes the local files created by the app.
@@ -373,6 +381,8 @@ Add this code to the end of the `Main` method:
373381

374382
:::code language="java" source="~/azure-storage-snippets/blobs/quickstarts/Java/blob-quickstart/src/main/java/com/blobs/quickstart/App.java" id="Snippet_DeleteContainer":::
375383

384+
To learn more about deleting a container, and to explore more code samples, see [Delete and restore a blob container with Java](storage-blob-container-delete-java.md).
385+
376386
## Run the code
377387

378388
This app creates a test file in your local folder and uploads it to Blob storage. The example then lists the blobs in the container and downloads the file with a new name so that you can compare the old and new files.

articles/storage/blobs/storage-quickstart-blobs-nodejs.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,9 @@ Add this code inside the `try` block:
234234

235235
:::code language="javascript" source="~/azure_storage-snippets/blobs/quickstarts/JavaScript/V12/nodejs/index.js" id="snippet_CreateContainer":::
236236

237-
The preceding code creates an instance of the [BlobServiceClient](/javascript/api/@azure/storage-blob/blobserviceclient) class by calling the [fromConnectionString](/javascript/api/@azure/storage-blob/blobserviceclient#fromconnectionstring-string--storagepipelineoptions-) method. Then, call the [getContainerClient](/javascript/api/@azure/storage-blob/blobserviceclient#getcontainerclient-string-) method to get a reference to a container. Finally, call [create](/javascript/api/@azure/storage-blob/containerclient#create-containercreateoptions-) to actually create the container in your storage account.
237+
The preceding code takes a [BlobServiceClient](/javascript/api/@azure/storage-blob/blobserviceclient) object and calls the [getContainerClient](/javascript/api/@azure/storage-blob/blobserviceclient#getcontainerclient-string-) method to get a reference to a container. Finally, the code calls [create](/javascript/api/@azure/storage-blob/containerclient#create-containercreateoptions-) to actually create the container in your storage account.
238+
239+
To learn more about creating a container, and to explore more code samples, see [Create a blob container with JavaScript](storage-blob-container-create-javascript.md).
238240

239241
## Upload blobs to a container
240242

@@ -245,6 +247,8 @@ Copy the following code to the end of the `main` function to upload a text strin
245247
The preceding code gets a reference to a [BlockBlobClient](/javascript/api/@azure/storage-blob/blockblobclient) object by calling the [getBlockBlobClient](/javascript/api/@azure/storage-blob/containerclient#getblockblobclient-string-) method on the [ContainerClient](/javascript/api/@azure/storage-blob/containerclient) from the [Create a container](#create-a-container) section.
246248
The code uploads the text string data to the blob by calling the [upload](/javascript/api/@azure/storage-blob/blockblobclient#upload-httprequestbody--number--blockblobuploadoptions-) method.
247249

250+
To learn more about uploading blobs, and to explore more code samples, see [Upload a blob with JavaScript](storage-blob-upload-javascript.md).
251+
248252
## List the blobs in a container
249253

250254
Add the following code to the end of the `main` function to list the blobs in the container.
@@ -253,6 +257,8 @@ Add the following code to the end of the `main` function to list the blobs in th
253257

254258
The preceding code calls the [listBlobsFlat](/javascript/api/@azure/storage-blob/containerclient#listblobsflat-containerlistblobsoptions-) method. In this case, only one blob has been added to the container, so the listing operation returns just that one blob.
255259

260+
To learn more about listing blobs, and to explore more code samples, see [List blobs with JavaScript](storage-blobs-list-javascript.md).
261+
256262
## Download blobs
257263

258264
1. Add the following code to the end of the `main` function to download the previously created blob into the app runtime.
@@ -265,6 +271,8 @@ The preceding code calls the [listBlobsFlat](/javascript/api/@azure/storage-blob
265271

266272
:::code language="javascript" source="~/azure_storage-snippets/blobs/quickstarts/JavaScript/V12/nodejs/index.js" id="snippet_ConvertStreamToText":::
267273

274+
To learn more about downloading blobs, and to explore more code samples, see [Download a blob with JavaScript](storage-blob-download-javascript.md).
275+
268276
## Delete a container
269277

270278
Add this code to the end of the `main` function to delete the container and all its blobs:
@@ -273,6 +281,8 @@ Add this code to the end of the `main` function to delete the container and all
273281

274282
The preceding code cleans up the resources the app created by removing the entire container using the [​delete](/javascript/api/@azure/storage-blob/containerclient#delete-containerdeletemethodoptions-) method. You can also delete the local files, if you like.
275283

284+
To learn more about deleting a container, and to explore more code samples, see [Delete and restore a blob container with JavaScript](storage-blob-container-delete-javascript.md).
285+
276286
## Run the code
277287

278288
1. From a Visual Studio Code terminal, run the app.

0 commit comments

Comments
 (0)