Monday, January 1, 2018

Working with Azure Storage Explorer in Visual Studio Code

Visual Studio code is  an open source source code editor developed by Microsoft which supports all major operating systems like Windows, Linux and Mac OS. It includes support all most all software development activities like debugging, Git control, syntax highlighting, intelligent code completion, snippets, and code refactoring

Visual studio code can be extended via plug-ins known as ‘Extensions’. Extensions give VS code the option of supporting various programming languages on different development frameworks.
In this article you will see about ‘Azure Storage Explorer’  an extension that supports the administration of blob objects in Microsoft Azure. 

Here are the steps to setup ‘Azure Storage Explorer’ in your machine. 

  1.   Install Visual studio code in your machine. VS code can be downloaded from here
  2.   Install 'Azure Storage Explorer' extension in VS code.


After installing VS code you need to login to your azure account. For that you need to open the explorer in VS code. 


Expand the ‘Azure Storage’ item in the explore to ‘Sign in’. 


After signing in you can use the ‘+’ symbol to add the azure subscriptions that you are connected to. 

In the added subscription you can expand the tree view to see the different storage accounts created in that subscription. Please note that this will only work with Azure storage accounts and Page/Block blobs  created in those storage accounts. Azure managed disks can’t be administered like this. 


Azure Storage accounts consists of 4 parts.

  • Blob storage
  •  File storage
  • Table storage
  • Queues 

Out of those 4 storage types queues will not be displayed through this extension.


Azure Storage Explorer supports following features for blob objects.

  • ·         List Subscriptions 
  • ·         List storage accounts 
  • ·         Blob Storage
o   List Blob containers
o   Create blob container
o   Delete blob container
o   List blobs
o   View blob information
o   Download blob
o   Upload blob
o   Delete blob
  • ·         File storage
o   List file shares
o   Create file shares
o   Delete file shares
o   List directories and files
o   Create directory
o   Delete directory
o   Download file
o   Upload file
o   Delete file
  • ·         Table storage
o   List tables
o   Create tables
o   Delete table