Azure SDK for PHP set_include_path(ini_get('include_path') . PATH_SEPARATOR . './library/'); // Windows Azure SDK for PHP read library require_once 'Microsoft/AutoLoader.php'; // Constant define('DEV', false); // Check develop fabric define('STORAGE_ACCOUNT', 'storage account'); // Created storage account define('STORAGE_KEY', 'storage accoune key'); // Created storage account key define('CONTAINER_NAME', 'sample'); // name of container // Create instance if (DEV) { // Connect storage emulator $blobClient = new Microsoft_WindowsAzure_Storage_Blob(); } else { // Windows Azure Storage $blobClient = new Microsoft_WindowsAzure_Storage_Blob( Microsoft_WindowsAzure_Storage::URL_CLOUD_BLOB, STORAGE_ACCOUNT, STORAGE_KEY ); }