ARTIFACTORY: How to save binaries in a custom path for Azure Blob Storage

Ino Choi
2022-07-31 13:29

Subject:

How to set a custom path to save binaries in Azure Blob Storage

Affected Versions:

Artifactory 5.4 and above

Description

Artifactory supports using cloud object storage from the major SaaS providers including Amazon's S3, Google's Cloud Storage, or Azure's Blob Storage as its binary provider.
When using Azure Blob Storage, binaries are saved under the “data” folder by default.

User-added image
If you would like to set a custom path to save binaries in a different location, you can add the “path” parameter in the “azure-blob-storage” binary provider (under $JFROG_HOME/artifactory/var/etc/artifactory/binarystore.xml)<config version="1">
    <chain template="azure-blob-storage"/>
    <provider id="azure-blob-storage" type="azure-blob-storage">
        <accountName>XXXXXXXX</accountName>
        <accountKey>XXXXXXXX</accountKey>
        <endpoint>https://<ACCOUNT_NAME>.blob.core.windows.net/</endpoint>
        <containerName><NAME></containerName>
        <path>filestore</path>
    </provider>
</config>

After saving the change, restart Artifactory and the binaries will be uploaded and downloaded from the new location.

User-added image