Skip to content

Commit c369d84

Browse files
edits
1 parent 9e411e5 commit c369d84

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

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

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,19 @@ This section walks you through preparing a project to work with the Azure Blob S
7272

7373
Create a JavaScript application named *blob-quickstart*.
7474

75-
1. In a console window (such as cmd, PowerShell, or Bash), create a new directory for the project.
75+
1. In a console window (such as cmd, PowerShell, or Bash), create a new directory for the project:
7676

7777
```console
7878
mkdir blob-quickstart
7979
```
8080

81-
1. Switch to the newly created *blob-quickstart* directory.
81+
1. Switch to the newly created *blob-quickstart* directory:
8282

8383
```console
8484
cd blob-quickstart
8585
```
8686

87-
1. Create a *package.json*.
87+
1. Create a *package.json* file:
8888

8989
```console
9090
npm init -y
@@ -122,10 +122,10 @@ From the project directory, install the following packages using the `npm instal
122122

123123
From the project directory:
124124

125-
1. Create a new file named `index.js`.
126-
1. Copy the following code into the file. More code will be added as you go through this quickstart.
125+
1. Create a new file named `index.js`
126+
1. Copy the following code into the file:
127127

128-
:::code language="javascript" source="~/azure_storage-snippets/blobs/quickstarts/JavaScript/V12/nodejs/boilerplate.js" :::
128+
:::code language="javascript" source="~/azure_storage-snippets/blobs/quickstarts/JavaScript/V12/nodejs/boilerplate.js":::
129129

130130
::: zone-end
131131

@@ -135,7 +135,7 @@ With [Azure Developer CLI](/azure/developer/azure-developer-cli/install-azd) ins
135135

136136
### Initialize the Azure Developer CLI template and deploy resources
137137

138-
From an empty directory, follow these steps to initialize the `azd` template, provision Azure resources, and get started with the code:
138+
From an empty directory, follow these steps to initialize the `azd` template, create Azure resources, and get started with the code:
139139

140140
- Clone the quickstart repository assets from GitHub and initialize the template locally:
141141

@@ -147,7 +147,7 @@ From an empty directory, follow these steps to initialize the `azd` template, pr
147147

148148
- **Environment name**: This value is used as a prefix for all Azure resources created by Azure Developer CLI. The name must be unique across all Azure subscriptions and must be between 3 and 24 characters long. The name can contain numbers and lowercase letters only.
149149

150-
- Log in to Azure:
150+
- Sign in to Azure:
151151

152152
```console
153153
azd auth login
@@ -239,7 +239,7 @@ Sample code is also available on [GitHub](https://github.com/Azure-Samples/Azure
239239

240240
The order and locations in which `DefaultAzureCredential` looks for credentials can be found in the [Azure Identity library overview](/javascript/api/overview/azure/identity-readme#defaultazurecredential).
241241

242-
For example, your app can authenticate using your Azure CLI sign-in credentials with when developing locally. Your app can then use a [managed identity](../../active-directory/managed-identities-azure-resources/overview.md) once it has been deployed to Azure. No code changes are required for this transition.
242+
For example, your app can authenticate using your Azure CLI sign-in credentials with when developing locally. Your app can then use a [managed identity](../../active-directory/managed-identities-azure-resources/overview.md) once it's deployed to Azure. No code changes are required for this transition.
243243

244244
<a name='assign-roles-to-your-azure-ad-user-account'></a>
245245

@@ -263,7 +263,7 @@ You can authorize access to data in your storage account using the following ste
263263

264264
#### [Visual Studio Code](#tab/sign-in-visual-studio-code)
265265

266-
You'll need to [install the Azure CLI](/cli/azure/install-azure-cli) to work with `DefaultAzureCredential` through Visual Studio Code.
266+
[Install the Azure CLI](/cli/azure/install-azure-cli) to work with `DefaultAzureCredential` through Visual Studio Code.
267267

268268
On the main menu of Visual Studio Code, navigate to **Terminal > New Terminal**.
269269

@@ -329,7 +329,7 @@ export AZURE_STORAGE_CONNECTION_STRING="<yourconnectionstring>"
329329
AZURE_STORAGE_CONNECTION_STRING="<yourconnectionstring>"
330330
```
331331

332-
The code below retrieves the connection string for the storage account from the environment variable created earlier, and uses the connection string to construct a service client object.
332+
The following code retrieves the connection string for the storage account from the environment variable created earlier, and uses the connection string to construct a service client object.
333333

334334
::: zone pivot="blob-storage-quickstart-scratch"
335335

@@ -379,7 +379,7 @@ To learn more about uploading blobs, and to explore more code samples, see [Uplo
379379

380380
## List the blobs in a container
381381

382-
List the blobs in the container. The following 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.
382+
List the blobs in the container. The following code calls the [listBlobsFlat](/javascript/api/@azure/storage-blob/containerclient#listblobsflat-containerlistblobsoptions-) method. In this case, only one blob is in the container, so the listing operation returns just that one blob.
383383

384384
::: zone pivot="blob-storage-quickstart-scratch"
385385

@@ -433,32 +433,32 @@ To learn more about deleting a container, and to explore more code samples, see
433433

434434
## Run the code
435435

436-
1. From a Visual Studio Code terminal, run the app.
436+
From a Visual Studio Code terminal, run the app.
437437

438-
```console
439-
node index.js
440-
```
438+
```console
439+
node index.js
440+
```
441441

442-
2. The output of the app is similar to the following example:
442+
The output of the app is similar to the following example:
443443

444-
```output
445-
Azure Blob storage - JavaScript quickstart sample
444+
```output
445+
Azure Blob storage - JavaScript quickstart sample
446446
447-
Creating container...
448-
quickstart4a0780c0-fb72-11e9-b7b9-b387d3c488da
447+
Creating container...
448+
quickstart4a0780c0-fb72-11e9-b7b9-b387d3c488da
449449
450-
Uploading to Azure Storage as blob:
451-
quickstart4a3128d0-fb72-11e9-b7b9-b387d3c488da.txt
450+
Uploading to Azure Storage as blob:
451+
quickstart4a3128d0-fb72-11e9-b7b9-b387d3c488da.txt
452452
453-
Listing blobs...
454-
quickstart4a3128d0-fb72-11e9-b7b9-b387d3c488da.txt
453+
Listing blobs...
454+
quickstart4a3128d0-fb72-11e9-b7b9-b387d3c488da.txt
455455
456-
Downloaded blob content...
457-
Hello, World!
456+
Downloaded blob content...
457+
Hello, World!
458458
459-
Deleting container...
460-
Done
461-
```
459+
Deleting container...
460+
Done
461+
```
462462

463463
Step through the code in your debugger and check your [Azure portal](https://portal.azure.com) throughout the process. Check to see that the container is being created. You can open the blob inside the container and view the contents.
464464

0 commit comments

Comments
 (0)