Why move SuiteCRM Azure Blob Storage into your file plan
A self-hosted SuiteCRM 8.9 or later instance that keeps documents and images on local disk ties those files to one server. Moving them to Azure Blob Storage separates file storage from the application host, which matters when you need resilience if a web node fails, room to grow as attachments accumulate, or a place to hold files in a specific Azure region for data residency reasons. SuiteCRM 8 handles this through media storage configured per storage type, with private files (such as contract attachments) and public files (such as images used in templates or the interface) able to sit in separate containers. The configuration is driven by environment variables, the same pattern the Amazon S3 approach uses, so the change belongs in your deployment configuration rather than in application code.
The Azure path follows the same pattern as the S3 page, but do not assume the key names carry over. No Azure-specific configuration keys or adapter settings were supplied for this page. Before you change anything, confirm the exact environment variables, the storage mapping format and the Azure adapter options in the SuiteCRM 8.9+ SuiteDocs for your installed version, and check them against a staging instance. Also confirm which container and account authentication methods the adapter supports in your version, and whether it expects a shared key, a connection string or a managed identity. Those answers decide how you handle secrets, which is the part most likely to slip into a repository if it is not planned first.
Decide before cutover how existing local files will move, who owns the storage account and containers, and how access is reviewed. Ask your Azure administrators to confirm the storage account redundancy tier, network restrictions, and soft delete or versioning settings, since these affect recovery if a file is removed by mistake. Plan a full backup of the database and the current file directory first, because a storage change that fails midway can leave database records pointing at files that exist in neither place. Keeping the local copy until you have verified downloads from both private and public containers gives you a rollback path.
Which storage choices fit private and public files
This table compares the decisions that shape a SuiteCRM 8.9+ Azure Blob Storage setup, from container visibility and layout to authentication, access tier, redundancy and secret handling. Read each row against your document sensitivity and your backup and migration plan, and confirm any Azure-specific option with Microsoft and the SuiteCRM configuration reference before you commit.
| Decision | Option | Trade-off | When it fits |
|---|---|---|---|
| Container visibility | Private container for documents | Files are reached only through the application or authorized requests, so access control stays with SuiteCRM and your Azure identities. | Contracts, HR files, customer records and anything tied to a case or account. |
| Container visibility | Public container for images | Anyone with a direct blob URL can read the object, and URLs can be shared or indexed outside the CRM. | Logos, product images and templates that are meant to be seen without a login. |
| Container layout | One container per storage type | Access policies, lifecycle rules and backups can differ by type, but there are more containers to name and monitor. | Teams that need separate rules for documents, images and private attachments. |
| Container layout | Shared container with prefixes | Fewer containers to manage, but one policy applies to everything inside, so a permission mistake affects every file type. | Small installs with one sensitivity level and a single owner for storage. |
| Authentication | Account key or shared key | Simple to configure from the storage account, but the key grants broad access and must be rotated and kept out of source control. | Pilot or single-team installs where you can manage key rotation carefully. |
| Authentication | Managed identity or Entra ID token | Removes stored keys from the server and ties access to Azure roles, but you must confirm which methods your SuiteCRM 8.9+ build supports before planning around it. | Organizations that already govern Azure access through Entra ID and want no long-lived keys. |
| Access tier and redundancy | Hot tier with locally redundant storage | Lowest retrieval delay for active documents, with redundancy limited to one datacenter; confirm the options and costs in your Azure account. | Active CRM files that users open often and that you can restore from a separate backup. |
| Access tier and redundancy | Cool or archive tiers, or geo-redundant options | Lower storage cost in some cases, but retrieval can be slower or charged per access; confirm tier rules and any early-deletion terms. | Older attachments that are rarely opened and where restore timing is agreed in advance. |
| Secret location | Credentials in .env.local on the server | Easy to set up and deploy with the application, but anyone with file access to the server can read the secret. | Single-server installs where file permissions and server hardening are controlled. |
| Secret location | Platform secret store or environment injection | Keeps values out of application files and supports rotation, but adds a dependency on the secret store and its access policy. | Installs managed through a platform team that already runs a secrets service. |
How containers map to SuiteCRM storage types
Private documents hold the files users attach to CRM records, such as signed contracts, purchase orders, exported call notes and internal review material. These files belong to a record, so access should follow the same rules as the record: a user who cannot open an account should not be able to open its contract. The container behind this storage type should be private, with no anonymous read access, and downloads should pass through the application so SuiteCRM can apply its own permission checks.
- Container access level: Confirm in Azure that the container is private, so blobs cannot be read by anonymous requests.
- Mapping key: Check which container the private documents storage type points to in your 8.9+ configuration, and record the container name in your deployment notes.
- Record-level permissions: Test that a user without access to a record cannot download its attachments by copying or guessing a file path.
- Deletion: Confirm how deleted records and their files are removed, so files do not remain behind after the record is gone.
Before go-live, upload a test file to each storage type and confirm from an outside browser that the private test file is refused. Check this mapping first, because a private file placed in a public container is readable by anyone who obtains its address.
Public documents are files you intend anyone with the link to read, such as approved product sheets, published brochures or terms that customers download. The container's read setting applies to every blob inside it, so this storage type should hold only material that has been reviewed for release. Because the setting covers the whole container, keeping public and private files apart is the control that matters most for this tab.
- Release approval: Define who approves a file before it enters this storage type, and keep customer data and internal notes out of it.
- Container read setting: Confirm anonymous read is enabled only on the public container and on no other container.
- Link lifetime: Decide whether public links should remain valid indefinitely, and document how a superseded or withdrawn file is removed.
- Caching: Check whether a CDN or browser cache sits in front of the container, because removing a blob may not clear copies that are already cached.
Ask your team to confirm that the mapping key for this type points only to the public container. One wrong key can publish every document uploaded to this storage type, and the exposure may not be visible until someone outside the organization reports it.
Image storage holds profile photos, company logos and images embedded in pages or outbound email. The browser or mail client renders these files inline, so they must load without the user downloading them. Many images are safe to publish, but some are not, including photos of identity documents, signatures and scanned forms that users upload in image format. Those files need the same protection as private documents even though they look like pictures.
- Inline rendering: After the change, test that images display in the UI and in outbound email, since a blocked image URL appears as a broken image.
- Sensitive images: Ask whether scanned forms, identity photos or signatures are ever uploaded as images, and route those files to the private documents type.
- Access method: Confirm which access method your version uses for images, and whether time-limited links are supported for images kept in a private container.
- Upload validation: Check whether SuiteCRM validates file types on upload, so a document saved with an image extension is not accepted into the images container.
Before migrating existing files, confirm how each one will be assigned to a container. Files moved into the wrong container will keep their new access level until someone changes it.
How to configure SuiteCRM Azure Blob Storage step by step
This sequence moves SuiteCRM 8.9+ document and image storage onto Azure Blob Storage with private and public containers, credentials kept outside the web root, and checks that confirm access works as intended before production use.
Confirm version and platform support
Check the SuiteCRM version you run against the SuiteCRM 8 compatibility matrix before changing anything. SuiteCRM 8.10 lists PHP 8.2, 8.3 and 8.4, Apache 2.4, MariaDB 10.6, 10.11, 11.4 and 11.8, and MySQL 8.0 and 8.4 on Linux, Unix or macOS. Confirm that your PHP, web server and database versions appear in the matrix for your release, and confirm that your installation is 8.9 or later, since this storage configuration is documented from that line. Done means you have a written record of the version, PHP, web server and database combination, and it matches the matrix.
Create a staging instance
Build a copy of your SuiteCRM environment with a restored database and file set, and run it separately from production. The SuiteCRM migration documentation advises testing on a staging instance, so apply the storage change there first. Your team or DeployOpen can perform this step. Done means the staging site loads, logs in, and shows the same records and documents as production, and you have a recent backup of files and database that you can restore to.
Create storage accounts and containers
In your Azure subscription, create a storage account in the region and network placement your policy requires, then create one container for each storage type SuiteCRM uses, with private access for protected documents and a separate public container only for content that is meant to be publicly readable. Confirm which container types your SuiteCRM version defines by checking the SuiteDocs entry for your release. Done means each container exists, public access is set per container, and no container is open to anonymous listing by default.
Create a scoped identity for SuiteCRM
Create an identity that SuiteCRM uses to read and write blobs, such as a managed identity or a service principal, and grant it data-plane permissions only on the storage account or containers it needs. Avoid account-wide keys where a narrower role is possible. Ask your Azure administrator to record the assignment and who approved it. Done means the identity can write to a test blob in staging and cannot reach other storage accounts in the subscription.
Store credentials outside the web root
Place the storage credentials in the environment file or secret store that SuiteCRM reads at runtime, not in files served by the web server or committed to source control. Copy the exact variable names from the SuiteDocs page for your version, because the names are version specific. Restrict file permissions so only the web server user and deployment account can read them. Done means a direct browser request to the environment file returns no content and the file is excluded from version control.
Set the environment-driven storage mapping
Configure the storage mapping that routes each SuiteCRM storage type to its Azure container, using the same environment-driven pattern documented for S3 storage. Copy the mapping keys from the SuiteDocs reference for your release, set the container names and account values, and keep the public and private mappings separate. Run the SuiteCRM cache clear command after saving the configuration. Done means the application starts without configuration errors and the admin storage status checks report the Azure containers as the targets.
Test uploads, downloads and access denial
On staging, upload a document and an image, confirm each file appears as a blob in the correct container, and open each one in SuiteCRM. Then request a private file directly by its storage URL from an unauthenticated browser and confirm access is denied, while a logged-in user with permission can still open it through the application. Check that the public container serves only the content you expect. Done means each test has a recorded result, and any unexpected access is fixed before production work begins.
Migrate existing files and verify production
Copy existing files into the new containers using a documented method, confirm counts and sample checksums match the source, then repeat the upload, download and denial tests on production during a planned window. Keep the previous file store and backup available until the team has confirmed records open correctly. Done means file counts match, sample documents open from SuiteCRM, private blobs are denied to anonymous requests, and the rollback steps are written down.
How a SuiteCRM file request reaches an Azure container
A user's browser sends a file request to the SuiteCRM 8 application on your web server, which is the first trust boundary in the diagram. SuiteCRM reads its storage settings and credentials from the environment, not from the code, then resolves the storage type of the file to a mapping. The mapping sends private documents to the private container and public images to the public container in Azure Blob Storage. Check that the credentials stay on the web server, that private files never resolve to the public container, and that every call to Azure crosses the boundary from your own network.
Request flow from browser to private and public Azure containers, with the trust boundary marked.
Securing Azure credentials and private container access
Azure Blob Storage holds SuiteCRM documents that often contain customer and contract data, so the storage account is part of your CRM's security boundary. The controls below cover where credentials live, who and what can reach them, how keys change over time, and how access is recorded. Each card lists what to confirm in your own Azure tenant and SuiteCRM version before go-live.
Keep credentials out of version control
Store the storage account credentials in .env.local on the server, or in an Azure Key Vault that the deployment reads at release time, and never in a committed .env file or deployment template. Confirm which file or secret source your SuiteCRM build reads for the Azure media settings in your version, and check that the web server user can read the file but other local users cannot. Check your Git history and CI logs for keys that were pasted there during testing.
Grant the SuiteCRM identity least privilege
Give the identity SuiteCRM uses only the data-plane rights it needs on the containers it writes to, such as reading, writing and deleting blobs, and avoid owner or account-wide roles. Ask your Azure administrator to confirm the exact role assignment in the storage account scope rather than the subscription. Separate the identity used for file storage from any identity used for backups or other applications.
- Azure storage support
- 8.9+
Keep private containers closed
Private containers hold documents that should only reach users who pass SuiteCRM's own access checks, so anonymous read must be disabled at the account and container level. Confirm that public access is off for the storage account and for each private container, and test by requesting a private blob URL without a session. Public containers, if you use them for images, should hold only content you are willing to publish.
SuiteCRM lifecycleRotate keys and revoke old ones
Plan a key rotation procedure that updates the .env.local or Key Vault value, reloads the PHP and worker processes, and then regenerates the old key. Confirm with your Azure administrator whether the storage account exposes two keys so one can be rotated while the other stays live. Record the rotation date and test a file upload and download immediately after each change.
- Account keys to rotate
- 2
Restrict network access to the account
Limit the storage account to the networks that run SuiteCRM and the web and worker hosts, using firewall rules, virtual network rules or private endpoints, depending on your design. Confirm that your DNS resolves the storage hostname to the private address when private endpoints are used, because a misconfigured name often breaks uploads only from some hosts. Review whether administrative access from the Azure portal is also restricted.
Before you migrateLog access for periodic review
Enable Azure diagnostic logging for the storage account so reads, writes and deletes are recorded, and send those logs to a workspace your security team can query. Confirm the retention period your policy requires, because the default retention in your tenant may be shorter. Review logs for unexpected delete activity and for access from unknown addresses, and document who performs that review.
Migrating existing SuiteCRM files to Azure without losing links
Start with a complete backup and a staging copy before any file moves. Back up the database and the entire files directory, then restore both onto a staging SuiteCRM instance that points at a test Azure storage account. The SuiteCRM migration docs advise this kind of staging test and warn that a migration may remove non-core files under the public/legacy folder, so review every custom file, theme or extension you have added before you trust the copy. Record which files are core, which are customizations and which are uploads, because only the uploads belong in Blob Storage.
Next, copy the uploaded documents and images into the containers that match each storage type, using the same container layout you configured for the MEDIA_FLY_SYSTEM_STORAGES mapping. Keep the original relative paths so that the file references stored in the database still resolve after the move. On staging, open a sample of records from each module that holds attachments, check that document links, image previews and downloads work for both private and public content, and confirm that access follows your role settings. Ask your SuiteCRM implementation partner or your own team to confirm the exact copy method and path rules for your release, since this page does not supply a copy tool or timing figures.
Plan the production cutover as a defined window with a rollback path. Freeze uploads, take a final backup, run the copy again for files added since the test, switch the storage configuration and then repeat the link and preview checks on production before users return. Keep the local files until you have confirmed a full working day of access, and record who signs off each check. Ask the people who run the migration to estimate how long the final copy will take for your data volume, because that figure depends on your environment and not on anything stated here.
Limits to confirm before you commit to Azure storage
Azure Blob Storage for SuiteCRM 8 involves several dependencies that the supplied sources do not settle for every environment. Each card below names one item to confirm, who can answer it, and what to record before the build starts. Confirm these in writing so the storage design, the upgrade plan and the backup plan all rest on the same facts.
Supported SuiteCRM 8 versions
This configuration applies to SuiteCRM 8.9 and later only, so any older 8.x install needs an upgrade or a different storage plan first. Check the exact minor version you run against the compatibility and release notes, and confirm with SuiteCRM Ltd or your implementation partner that the Azure storage configuration is documented for that version. Record the version in your design so the build is not tested against a release it does not support.
- Minimum version
- 8.9+
Managed identity and authentication methods
Decide how SuiteCRM reaches the storage account before you write credentials to .env.local. Ask SuiteCRM Ltd whether managed identity is supported for your deployment and which authentication methods the Azure storage adapter accepts, such as account keys, connection strings or Microsoft Entra ID tokens. Where managed identity is not documented, plan for a secret store and rotation rather than assuming it works.
Private file links and expiry
Private documents are normally served through SuiteCRM rather than as public blob URLs, but confirm how download links are generated, whether they carry an expiry, and how long they stay valid. Test a private document link from outside your network and from an expired session. Confirm the answer with SuiteCRM Ltd before users depend on shared links in email or customer correspondence.
Effect of minor release upgrades
SuiteCRM 8 minor releases arrive about every eight weeks, and a minor release can change how storage settings are read or mapped. Before each upgrade, check the release notes for changes to the media storage mapping, and run the upgrade against a staging instance that uses the same container layout. Assign one owner to review each minor release against your storage configuration.
- Minor release cadence
- 8 weeks
Backup and restore of blobs
Database backups do not contain the files. Confirm with your Azure administrator whether blob versioning, soft delete or point-in-time restore is enabled on the storage account, how long deleted blobs remain recoverable, and whether the database and container restores can be matched to the same point in time. Test a restore of a document into a clean SuiteCRM instance and record the steps.
Ownership of these answers
Azure-side settings such as network rules, retention, redundancy and key rotation belong to your cloud or platform team, while SuiteCRM-side behavior belongs to the SuiteCRM admin and the vendor. Assign each open question to a named person with a date to answer it. Keep the answers in the design record so the security review and the operations runbook refer to the same settings.
What buyers ask about Azure storage for SuiteCRM
What does it cost to move SuiteCRM files to Azure Blob Storage?
The cost has two parts: one-time implementation labor and recurring Azure consumption. The labor covers planning the container layout, setting the environment-driven configuration, testing private and public access, migrating existing files and documenting the result. Azure bills you directly for stored data, transactions and any redundancy or network traffic you choose, so that bill recurs and scales with how much you store and how often users open files. Your own team carries ongoing operations such as credential rotation and monitoring. Ask any partner to separate the one-time fixed scope from recurring Azure spend and to list what would change the labor estimate, such as file count or the number of storage types in use.
How long does an Azure Blob Storage setup for SuiteCRM take?
Duration depends mainly on migration scope, not on the configuration itself. The main drivers are how many files exist, how many storage types need containers (private documents, public documents and images), whether existing files must be copied from local disk or an earlier store, how many custom modules or code paths read files directly, and how long your staging review and sign-off take. A clean instance with a small file set is the simplest case. Heavy customization, large archives or strict change windows lengthen the work. Ask for a timeline tied to a written file inventory and a named staging environment rather than a generic duration.
What access and information must our team provide before the work starts?
Plan to provide four things. First, Azure access: a subscription or resource group where containers and a storage account can be created, plus permission to manage access keys or identities for the application. Second, SuiteCRM admin access on a staging instance that matches production's version and PHP setup. Third, a current file inventory listing storage types, approximate file counts and sizes, and any files referenced by custom code. Fourth, a decision on who approves the production cutover and who owns the Azure account after handover. Missing any of these usually adds rework, so confirm each item in the written scope.
Can an internal SuiteCRM administrator set up Azure Blob Storage alone?
A capable administrator with Linux, PHP and Azure experience can often complete the configuration on a staging instance, but the risk lies in what surrounds it. Credentials must stay in the environment file and out of version control, existing files must be copied and verified, and public and private containers must be tested so no document is exposed by accident. The SuiteCRM migration documentation advises testing on staging, backing up files and database first, and reviewing customizations because some non-core files under the public/legacy folder may be removed during migration. If your team lacks time to test those points, a partner can take that work under a fixed scope while your staff review and approve it.
How do we ask a partner for a quote based on a written scope?
Send a written scope that names the SuiteCRM version and hosting model, the storage types to move, the expected file inventory, the Azure account and region constraints, the staging and cutover process, and the documents you expect at handover. Ask the partner to quote the one-time work as a fixed scope with listed deliverables and exclusions, to state which items are priced separately, such as custom code changes or a later migration wave, and to describe the Azure costs you will pay directly. Request acceptance criteria, such as verified file access for each container type, so both sides agree on what done means before work starts.
What should our security team check about the Azure storage setup?
Security reviewers should confirm that storage account keys or identities are scoped to the minimum required, that secrets live in the server environment rather than in code or repositories, and that private and public containers match the access model SuiteCRM uses for each file type. They should also confirm who can list or download blobs directly in the Azure portal, how access is logged, and how keys are rotated. Ask for a written access map that shows each container, its visibility and the identity that reads it. Compliance teams can use that map as evidence of configuration, while independent auditors decide whether controls meet a given requirement.
What happens to our Azure storage configuration after the project ends?
After handover, your team owns the Azure resources, the SuiteCRM environment configuration and the runbook. Ongoing work includes monitoring storage growth and cost, rotating credentials, reviewing container access, and checking file access after each SuiteCRM minor release or PHP change. Those tasks recur and can be kept in house or covered by a support retainer. Ask the partner which items the handover document covers, how restore of files would work if a container is misconfigured, and what the change process is for future storage types.
How DeployOpen works on this
DeployOpen scopes, builds, tests and documents SuiteCRM file storage on Azure Blob Storage inside your own Azure subscription and network. The work is agreed as a fixed scope in writing before it starts, so you know which containers, settings and checks are included before any change is made.
How we scope
- Inventory current document and image locations, file volumes and the private and public storage types SuiteCRM 8.9+ uses
- Agree the container layout, access levels and which storage types move to Azure Blob Storage in the written scope
- Confirm the SuiteCRM version, hosting model and Azure subscription, region and network boundaries before any build starts
- Document the existing S3 or local storage configuration so the Azure move has a clear starting point
How we build
- Configure the environment-driven storage settings and the storage mapping per storage type in a staging instance first
- Set credential handling so account keys or identities stay out of source control and are held in your chosen secrets store
- Migrate existing files in a rehearsed run, with counts and checksums compared between source and target before cutover
- Test private and public document and image access, including denied access for users without the right role
How we hand over
- Deliver a written configuration record covering containers, access settings, environment variables and secret locations
- Provide a runbook for rotating storage credentials, restoring files and checking storage health after deployments
- Document the rollback steps, the backup approach for file data and the owner for each setting
- Walk your administrators and engineers through the configuration and confirm the handover in writing
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer, covering SuiteCRM minor release changes that affect storage
- Re-test storage access after SuiteCRM upgrades, Azure configuration changes or credential rotation under the agreed scope
- Confirm with your Azure team and the SuiteCRM documentation for your version before changing storage settings in production
- Ask for a written quote that lists each support activity, its frequency and what is excluded from the retainer

