Documentation

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" />
</add>

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["moxiemanager.azure.containers.myazureclient.container"] = "containername";
$_SESSION["moxiemanager.azure.containers.myazureclient.account"] = "accountname";
$_SESSION["moxiemanager.azure.containers.myazureclient.sharedkey"] = "accountsecretkey";

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

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

If your session prefix is configured to "moxiemanager".