I need assistance connecting Orthanc to Azure blob storage. My aim is to archive the DICOM files from Orthanc to Azure blob storage at least once every day.
I’ve referred to the documentation at Cloud Object Storage plugins — Orthanc Book documentation. Since the documentation mentions that the Azure plugin is included with the Windows installer, I added the following to orthanc.json:
“AzureBlobStorage”: {
“ConnectionString”: “DefaultEndpointsProtocol=https;AccountName=xxxxxxxxx;AccountKey=yyyyyyyy===;EndpointSuffix=core.windows.net”,
“ContainerName”: “test-orthanc-storage-plugin”,
“CreateContainerIfNotExists”: true,
“RootPath”: “”,
“MigrationFromFileSystemEnabled”: false,
“StorageStructure”: “flat”,
“EnableLegacyUnknownFiles”: true,
“StorageEncryption”: {},
“HybridMode”: “Disabled”
}
Furthermore, I included “C:\Program Files\Orthanc Server\Plugins\OrthancAzureBlobStorage.dll” in the plugins list within orthanc.json.
Afterwards, I attempted to initiate the process using the following command:
curl -X POST http://localhost:8042/move-storage
–data ‘{
“Resources”: [“LIST_OF_RESOURCE_IDS”],
“TargetStorage”: “object-storage”,
“Asynchronous”: true,
“Priority”: 0
}’
This resulted in an error. I’m trying to find out what I might be doing wrong. My objective is to archive Orthanc files to Azure Blob Storage every day. Additionally, I want to determine the folder structure in Azure based on the name of the DICOM image.
Any assistance would be greatly appreciated.