Azure Storage explorer on Linux

Linux and CIFS files permissions
July 27, 2018
Show all

Azure Storage explorer on Linux

Microsoft Azure Storage Explorer is a widely used tool by all Azure cloud administrators. However, with Azure slowly becoming more of an Linux occupied cloud, the necessity to have a working version of Azure Storage Explorer on a Linux driven machine becomes more and more a “must have”

Checking the official documentation doesn’t really help, since, for whatever reason, the instructions to actually install it on Linux are missing, although the package for Linux does exists.

Therefore, I took the time to put together some instructions, and after many fails, this is what I came up with, as working solution:

Prerequisites

Since we will use a Ubuntu 18.04 LTS VM, deployed in the Azure Cloud ( see instructions on how to do that here), we will need to install the following:

  • a desktop environment so we can run Azure Storage Explorer GUI. I decided to use MATE-Desktop.
  • a way to remotely connect to the Desktop environment of the VM. My choice here was xRDP.

Next, we will need a lot of libraries and .NET, since it’s required by the Azure Storage Explorer to run.

Considering that, let’s start:

After reboot:

Create ~/.xsession and ~/.xsessionrc

Add a NSG rule in Azure portal for the 3389 port and allow the same port in ufw:

image

And, in the VM terminal:

Finally, Install .NET

Check installed version with:

Azure Storage Explorer Installation

Install required dependency for Azure Storage Explorer:

Connect to the VM via RDP with your default username (must be configured with password). Open a browser and download Azure Storage Explorer binaries from: https://azure.microsoft.com/en-au/features/storage-explorer/ Be sure to select Linux from the drop-down. The file will be saved by default in your /home/username/Downloads directory, where “username” will correspond to your actual username.

image
Downloading the Azure Storage Explore
image
Saved file location

Go back to the SSH terminal and paste the following (as a block of text):

Create Storage Explorer Ubunutu/KDE Desktop Resource (paste again as a block of text):

Reboot the VM:

Back to the xrdp session, start the Azure Storage Explorer.

image

If the Azure Storage Explorer doesn’t show up on Desktop, you’ll find the startup link under Menu -> Programming. You can further create a Desktop shortcut.


NOTES: If prompted, anywhere during the above steps to create a keyring password, make sure you use one that you’ll remember (you can use the same password as for the username you are logged in with, eventually).

Open Azure Storage Explorer and connect with your account.

Patching Storage Explorer for newer versions of .NET Core If you have a version of .NET Core greater than 2.0 installed and are running Storage Explorer version 1.7.0 or older, you will most likely need to patch Storage Explorer by completing the following steps:

Download version 1.5.43 of StreamJsonRpc from https://www.nuget.org/packages/StreamJsonRpc/1.5.43 via browser on the Linux machine. Look for the “Download package” link on the right hand side of the page. After downloading the package, change its file extension from .nupkg to .zip and unzip it:

Copy StreamJsonRpc.dll to the following locations inside the Storage Explorer folder:

Reboot the VM before trying to start Azure Storage explorer again.

Marin Nedea
Marin Nedea
I'm passionate about open source software and technologies. In my spare time I build simple and functional websites from scratch, using PHP+HTML5+CSS3+MySQL and when I'm bored, I write simple PHP_CLI or bash scripts to play around on my Linux machine.

Leave a Reply

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close