Skip to content

Commit a9483a5

Browse files
Merge pull request #285093 from diberry/diberry/0820-storage-js-linter
Storage Blob - JS - Linter fixes
2 parents 193dd95 + 120ee05 commit a9483a5

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

articles/storage/blobs/blob-upload-function-trigger-javascript.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
---
2-
title: Upload and analyze a file with Azure Functions (JavaScript) and Blob Storage
2+
title: Upload, analyze files with Azure Functions and Blob Storage
33
description: With JavaScript, learn how to upload an image to Azure Blob Storage and analyze its content using Azure Functions and Azure AI services
44
author: diberry
55
ms.author: diberry
66
ms.service: azure-blob-storage
77
ms.topic: tutorial
8-
ms.date: 07/06/2023
8+
ms.date: 08/20/2024
99
ms.devlang: javascript
1010
ms.custom: devx-track-js, devx-track-azurecli, engagement
11-
# As a JavaScript developer, I want to know how to upload files to blob storage within an application, so that I can adopt this functionality into my own solution.
11+
#Customer intent: As a JavaScript developer, I want to know how to upload files to blob storage within an application, so that I can adopt this functionality into my own solution.
1212
---
13-
1413
# JavaScript Tutorial: Upload and analyze a file with Azure Functions and Blob Storage
1514

16-
In this tutorial, you'll learn how to upload an image to Azure Blob Storage and process it using Azure Functions, Computer Vision, and Cosmos DB. You'll also learn how to implement Azure Function triggers and bindings as part of this process. Together, these services analyze an uploaded image that contains text, extract the text out of it, and then store the text in a database row for later analysis or other purposes.
15+
In this tutorial, you learn how to upload an image to Azure Blob Storage and process it using Azure Functions, Computer Vision, and Cosmos DB. You'll also learn how to implement Azure Function triggers and bindings as part of this process. Together, these services analyze an uploaded image that contains text, extract the text out of it, and then store the text in a database row for later analysis or other purposes.
1716

1817
Azure Blob Storage is Microsoft's massively scalable object storage solution for the cloud. Blob Storage is designed for storing images and documents, streaming media files, managing backup and archive data, and much more. You can read more about Blob Storage on the [overview page](./storage-blobs-introduction.md).
1918

@@ -45,6 +44,7 @@ In this tutorial, learn how to:
4544

4645

4746
## Create the storage account and container
47+
4848
The first step is to create the storage account that will hold the uploaded blob data, which in this scenario will be images that contain text. A storage account offers several different services, but this tutorial utilizes Blob Storage only.
4949

5050
### [Visual Studio Code](#tab/storage-resource-visual-studio-code)
@@ -419,7 +419,7 @@ To run the project locally, enter the environment variables in the `./local.sett
419419
420420
Although the Azure Function code runs locally, it connects to the cloud-based services for Storage, rather than using any local emulators.
421421
422-
```
422+
```json
423423
{
424424
"IsEncrypted": false,
425425
"Values": {
@@ -555,14 +555,6 @@ Use the following table to help troubleshoot issues during this procedure.
555555
|--|--|
556556
|`await computerVisionClient.read(url);` errors with `Only absolute URLs are supported`|Make sure your `ComputerVisionEndPoint` endpoint is in the format of `https://YOUR-RESOURCE-NAME.cognitiveservices.azure.com/`.|
557557

558-
## Clean up resources
559-
560-
If you're not going to continue to use this application, you can delete the resources you created by removing the resource group.
561-
562-
1. Select **Resource groups** from the Azure explorer
563-
1. Find and right-click the `msdocs-storage-function` resource group from the list.
564-
1. Select **Delete**. The process to delete the resource group may take a few minutes to complete.
565-
566558
## Security considerations
567559

568560
This solution, as a beginner tutorial, doesn't demonstrate secure-by-default practices. This is intentional to allow you to be successful in deploying the solution. The next step after that successful deployment is to secure the resources. This solution uses three Azure services, each has its own security features and considerations for secure-by-default configuration:
@@ -575,6 +567,14 @@ This solution, as a beginner tutorial, doesn't demonstrate secure-by-default pra
575567

576568
* [Azure Functions sample code](https://github.com/Azure-Samples/msdocs-storage-bind-function-service/blob/main/javascript-v4)
577569

570+
## Clean up resources
571+
572+
If you're not going to continue to use this application, you can delete the resources you created by removing the resource group.
573+
574+
1. Select **Resource groups** from the Azure explorer
575+
1. Find and right-click the `msdocs-storage-function` resource group from the list.
576+
1. Select **Delete**. The process to delete the resource group may take a few minutes to complete.
577+
578578
## Related content
579579

580580
* [Create a function app that connects to Azure services using identities instead of secrets](/azure/azure-functions/functions-identity-based-connections-tutorial)

0 commit comments

Comments
 (0)