Skip to content

Latest commit

 

History

History
executable file
·
75 lines (48 loc) · 1.55 KB

azure-storage.md

File metadata and controls

executable file
·
75 lines (48 loc) · 1.55 KB

Azure Storage Example

Pre Requisites

Step 1:

Azure storage comprises of three main services. Blob storage, queue storage and table storage.

Make a node project first, which is given in the example/azure-storage folder.

npm init --yes

Step 2:

Add the developer credentials to the Azure CLI cross platform

$ az storage container create --name 'test' --connection-string 'DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw=='

{
  "created": true
} 

Step 3:

Pull the docker image

docker pull arafato/azurite

Step 4:

Refer the documentation for the functionalities provided by the azure storage library.

And refer the project in the examples of the project.

Step 5:

Now run the server and following are the commands.

  • Start Storage
clocal storage-start
  • Stop Storage
clocal storage-stop
  • Clear all files created
clocal storage-clear

Step 6:

Go to the project you have created using azure storage. And start the project.

Expected Results

Storage-Result1

Storage-Result2

Storage-Result3