How-tos / How to configure for Azure

Azure Blob Storage support is only available for Enterprise License customers.

Step 1

Make sure you have added Azure to the plugins list like this:

$moxieManagerConfig['general.plugins'] = 'Favorites,History,Uploaded,Azure';
<!-- Make sure the Azure plugin is present in your web.config in the plugins element -->
<plugin type="MoxieManager.Plugins.Azure.Plugin" />
Step 2

Configure your container information in config file.

$moxieManagerConfig['azure.containers'] = array(
	'containername' => array(
		'account' => 'yourazureaccount',
		'sharedkey' => 'yoursharedkey'
<add key="azure.containers">
<container name="containername" account="yourazureaccount" sharedkey="yoursharedkey" />

Optional: You can also set development to true to run against the local Azure Storage Emulator.

Get your account and sharedkey from the Azure admin interface.

Step 3

Add your container to the rootpath configuration.

$moxieManagerConfig['filesystem.rootpath'] = 'azure://containername';
<add key="filesystem.rootpath" value="azure://containername" />

Note that the name must match with what you called your container in the container config in Step 2.

It is also possible to have many rootpath, if you wish to list local folder as well as Azure. Check out filesystem.rootpath config for more information about that.

Optional, setting config by sessions

 If you wish to configure for settings, do not forget to use the prefix for the azure settings as well.

$_SESSION[""] = "containername";
$_SESSION[""] = "accountname";
$_SESSION[""] = "accountsecretkey";

$_SESSION["moxiemanager.filesystem.rootpath"] = "azure://myazureclient";
Session[""] = "containername";
Session[""] = "accountname";
Session[""] = "accountsecretkey";

Session["moxiemanager.filesystem.rootpath"] = "azure://myazureclient";

If your session prefix is configured to "moxiemanager".