Home

Awesome

⚠️ This repository has been moved to the monorepo jsreport/jsreport

jsreport-azure-storage

NPM Version Build Status

jsreport extension adding support for storing blobs in azure storage

Some of the jsreport extensions require a blob storage for storing binary objects. This implementation stores these objects like output reports inside cost-effective azure blob storage.

See the blob storages general documentation https://jsreport.net/learn/blob-storages

See how to persist jsreport output reports https://jsreport.net/learn/reports

Installation

npm install jsreport-azure-storage

Configuration

You have three options:

  1. Set just connectionString
  2. Set accountName and accountKey
  3. Set only accountName and let storage connect using azure managed identity

You can pass the options into jsreport in the following ways:

{
	"blobStorage": {  
		"provider": "azure-storage"
	},
	"extensions": {
		"azure-storage": {
			"accountName": "...",
			"accountKey": "...",
			"container": "..."
		}
	}
}
var jsreport = require('jsreport-core')({ blobStorage: { provider: 'azure-storage' } })
jsreport.use(require('jsreport-azure-storage')({}))