Skip to content

Commit 8a54412

Browse files
committed
pr fixes
1 parent 27fe314 commit 8a54412

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

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

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: "Quickstart: Azure Queue Storage client library v12 - .NET"
3-
description: Learn how to use the Azure Queue Storage client library v12 for .NET to create a queue and add messages to the queue. Next, you learn how to read and delete messages from the queue. You'll also learn how to delete a queue.
2+
title: "Quickstart: Azure Queue Storage client library - .NET"
3+
description: Learn how to use the Azure Queue Storage client library for .NET to create a queue and add messages to the queue. Next, you learn how to read and delete messages from the queue. You'll also learn how to delete a queue.
44
author: normesta
55
ms.author: normesta
66
ms.date: 07/24/2020
@@ -11,11 +11,11 @@ ms.devlang: csharp
1111
ms.custom: devx-track-csharp, mode-api
1212
---
1313

14-
# Quickstart: Azure Queue Storage client library v12 for .NET
14+
# Quickstart: Azure Queue Storage client library for .NET
1515

1616
Get started with the Azure Queue Storage client library version 12 for .NET. Azure Queue Storage is a service for storing large numbers of messages for later retrieval and processing. Follow these steps to install the package and try out example code for basic tasks.
1717

18-
Use the Azure Queue Storage client library v12 for .NET to:
18+
Use the Azure Queue Storage client library for .NET to:
1919

2020
- Create a queue
2121
- Add messages to a queue
@@ -40,22 +40,22 @@ Additional resources:
4040

4141
## Setting up
4242

43-
This section walks you through preparing a project to work with the Azure Queue Storage client library v12 for .NET.
43+
This section walks you through preparing a project to work with the Azure Queue Storage client library for .NET.
4444

4545
### Create the project
4646

47-
Create a .NET Core application named `QueuesQuickstartV12`.
47+
Create a .NET Core application named `QueuesQuickstart`.
4848

49-
1. In a console window (such as cmd, PowerShell, or Bash), use the `dotnet new` command to create a new console app with the name `QueuesQuickstartV12`. This command creates a simple "hello world" C# project with a single source file named `Program.cs`.
49+
1. In a console window (such as cmd, PowerShell, or Bash), use the `dotnet new` command to create a new console app with the name `QueuesQuickstart`. This command creates a simple "hello world" C# project with a single source file named `Program.cs`.
5050

5151
```console
52-
dotnet new console -n QueuesQuickstartV12
52+
dotnet new console -n QueuesQuickstart
5353
```
5454

55-
1. Switch to the newly created `QueuesQuickstartV12` directory.
55+
1. Switch to the newly created `QueuesQuickstart` directory.
5656

5757
```console
58-
cd QueuesQuickstartV12
58+
cd QueuesQuickstart
5959
```
6060

6161
### Install the package
@@ -87,7 +87,7 @@ Console.WriteLine("Hello, World!");
8787

8888
[!INCLUDE [passwordless-overview](../../../includes/passwordless/passwordless-overview.md)]
8989

90-
## [Passwordless](#tab/passwordless)
90+
## [Passwordless (Recommended)](#tab/passwordless)
9191

9292
[!INCLUDE [dotnet-default-azure-credential-overview](../../../includes/passwordless/dotnet-default-azure-credential-overview.md)]
9393

@@ -130,7 +130,7 @@ These example code snippets show you how to perform the following actions with t
130130
- [Delete messages from a queue](#delete-messages-from-a-queue)
131131
- [Delete a queue](#delete-a-queue)
132132

133-
## [Passwordless](#tab/passwordless)
133+
## [Passwordless (Recommended)](#tab/passwordless)
134134

135135
### Add the Azure Identity client library
136136

@@ -182,10 +182,10 @@ await queueClient.CreateAsync();
182182

183183
The following code retrieves the connection string for the storage account. The connection string is stored in the environment variable created in the [Configure your storage connection string](#configure-your-storage-connection-string) section.
184184

185-
Add this code inside the `Main` method:
185+
Add this code to the end of the `Program.cs` file:
186186

187187
```csharp
188-
Console.WriteLine("Azure Queue Storage client library v12 - .NET quickstart sample\n");
188+
Console.WriteLine("Azure Queue Storage client library - .NET quickstart sample\n");
189189

190190
// Retrieve the connection string for use with the application. The storage
191191
// connection string is stored in an environment variable called
@@ -221,6 +221,9 @@ QueueClient queueClient = new QueueClient(connectionString, queueName);
221221
await queueClient.CreateAsync();
222222
```
223223

224+
> [!IMPORTANT]
225+
> The account access key should be used with caution. If your account access key is lost or accidentally placed in an insecure location, your service may become vulnerable. Anyone who has the access key is able to authorize requests against the storage account, and effectively has access to all the data. `DefaultAzureCredential` provides enhanced security features and benefits and is the recommended approach for managing authorization to Azure services
226+
224227
---
225228

226229
### Add messages to a queue
@@ -341,7 +344,7 @@ dotnet run
341344
The output of the app is similar to the following example:
342345

343346
```output
344-
Azure Queue Storage client library v12 - .NET quickstart sample
347+
Azure Queue Storage client library - .NET quickstart sample
345348
346349
Creating queue: quickstartqueues-5c72da2c-30cc-4f09-b05c-a95d9da52af2
347350

0 commit comments

Comments
 (0)