Uploading employee data to blob storage
In this recipe, we'll develop a console application for uploading the CSV sheet to blob storage.
Getting ready
Perform the following steps:
- Install Visual Studio 2019.
- Create a storage account and create a blob container with the name
csvimports
. - Create a CSV file with some employee data, as shown in Figure 8.2:
Figure 8.2: CSV file with employee data
How to do it...
In this section, we are going to create a .NET Core–based client application that uploads the csv
file to the blob container by performing the following steps:
- Create a new Console App (.NET Core) project named
CSVImport.Client
using Visual Studio, as shown in Figure 8.3:Figure 8.3: Creating a new Console App (.NET Core) project using Visual Studio
- Once the project is created, execute the following commands in the NuGet package manager:
Install-Package Microsoft.Azure.Storage.blob Install-Package Microsoft.Extensions.Configuration...