Azure Blob Storage as the Mattermost file store: what changes and what to confirm
The file store is set in the Mattermost server configuration, not in the database, so moving uploads to an Azure Storage account is a configuration change plus a storage migration. This topic covers the two ways Mattermost can authenticate to Azure Blob Storage: a shared key, and Entra ID default credential authentication, which lets the server use an identity supplied by its environment instead of a stored secret. Before you act on either, confirm the exact option names, the supported authentication methods and the release that introduced Azure Blob Storage support against the Mattermost documentation for the version you run, because these details change between releases and the current server release line is not a safe assumption.
Keep the database and the file store separate in your planning. PostgreSQL continues to hold messages, users, channels and configuration, and the Azure Storage account holds uploaded files. A change to the file store does not move your database, and a database migration does not move your files. Each needs its own backup, restore test and access review. Confirm with your Mattermost contact whether any existing file references in the database depend on the previous backend, and whether a move of existing uploads is required or whether only new uploads should go to Azure.
Choose the authentication method before you build the storage account, because it determines who owns the credentials. A shared key is simple to configure but is a long-lived secret that must be stored, rotated and kept out of configuration files and logs. Entra ID default credential authentication avoids a stored key, but it depends on how the server is hosted, including whether a managed identity is attached to the virtual machine or container and whether that identity has the Storage Blob Data role on the account. Ask your Azure team to confirm role assignments, network rules on the storage account, and private endpoint routing before go-live, and test uploads and downloads from every Mattermost node.
What the Azure file store needs before configuration starts
Azure Blob Storage is a file store decision that touches the server version, the storage account, the network and the plan tier at the same time. Work through these six items before any setting changes, because a gap in one of them tends to surface only at cutover.
Confirm the server version and support status
Azure Blob Storage as a file store is available from Mattermost v11.9, so the first check is whether your target release includes it. Confirm the Azure option is present in the exact build you plan to run, not only in the release notes. Then check the support window: v11.11 is supported until 2026-12-15, while v11.7 is an Extended Support Release supported until 2027-05-15. Plan cutover on a version whose support end date falls after your go-live and retention plans.
Server releasesChoose the storage account and container
Decide which Azure Storage account and blob container will hold uploads, and who owns them. Keep the account in the same subscription and governance boundary as the Mattermost servers so access reviews cover both. Ask whether the account is dedicated to Mattermost, because shared accounts make lifecycle rules, deletion protection and cost attribution harder. Record the account name, container name and endpoint before you touch configuration.
Pick the region and redundancy
Place the storage account in the same region as the Mattermost application and database tiers wherever your data residency rules allow it. Cross-region reads add latency to every file preview and download. Confirm the redundancy option with your storage and compliance teams, since it determines where copies of attachments live and how a regional outage affects users. Write the decision down with the reason, because auditors often ask for it.
Map network paths to the storage endpoint
Every Mattermost node must reach the storage endpoint directly, and a node that cannot reach it will fail uploads while chat keeps working. Trace the path from each node through any outbound proxy, firewall and private DNS to the account endpoint. If you plan to restrict the account to private networking, confirm the private endpoint resolves correctly from every node. Test from each node, not from one jump host, and include the network ports reference in your review.
Confirm the plan tier for your shape
A single server can run on the plans that include the features you need, but a high availability cluster requires the Enterprise or Enterprise Advanced plan. In a cluster, every application node reads and writes the same file store, so the storage choice is part of the HA design rather than a standalone setting. Confirm your seat count, deployment shape and plan entitlement with Mattermost sales before you commit to a cluster design, since pricing is quoted per seat and not published.
PricingSecure access to every node's configuration
Azure settings can be changed in the System Console or in the configuration file, and in a cluster each node must end up with the same values. Confirm who holds System Console administrator rights, who can edit config.json on each host, and how changes are reviewed. Decide how the Azure credentials will be supplied, whether through a secret store or managed identity, before anyone enters them. Keep a record of which node was changed first and when.
Shared key, Entra ID default credentials or managed identity: choosing how Mattermost signs in
A shared account key is a storage account credential that grants full access to every container and blob in the account. Mattermost holds the key in its file storage settings, so anyone who can read the server configuration, a backup of it or the database-backed settings can read the key. Access control in this model is coarse: the key is not scoped to one container, one role or one application, and it does not identify which system made a request.
- Who supplies it: A storage account administrator copies one of the account keys from the Azure portal or CLI and places it in the Mattermost file storage configuration.
- Who holds it: Every administrator with access to the server configuration, plus any backup or automation that captures that configuration.
- How it is rotated: Azure exposes two keys so one can be regenerated while the other stays valid. Mattermost must then be updated with the new key, and both keys should be treated as sensitive until the switch is finished.
- Where it fails: A regenerated key that was never copied into Mattermost stops uploads and downloads. Keys that leak in logs, tickets or exported configuration cannot be revoked for one application without a rotation.
- Questions for the security team: Is shared key authentication permitted for this storage account? Who may regenerate keys, and how is the change recorded? Where will the key be stored, and is it excluded from configuration backups?
Confirm the current Mattermost guidance on supported authentication methods for Azure Blob Storage in the server documentation for your release before choosing this option.
The Entra ID default credential chain lets Mattermost obtain a token from whichever credential source the runtime finds first, such as environment variables for a service principal, a workload identity, a managed identity or a developer sign-in. Access is granted through Azure role assignments rather than a shared secret. The chain is convenient across environments, but the identity that is actually used depends on what is present when the process starts, which can differ between a laptop, a test server and production.
- Who supplies it: The platform team supplies the identity source, for example environment variables for a service principal or a managed identity on the host, and the storage team grants the data role on the account.
- Who holds it: The directory administrator controls the principal, and whoever controls the host controls the environment in which the chain runs.
- How it is rotated: Client secrets for service principals expire and must be replaced. Managed identities and workload identities have no secret for you to rotate, but their role assignments still need review.
- Where it fails: An expired client secret, a missing role such as the blob data reader or contributor role, or an unexpected earlier credential source in the chain that takes precedence over the intended one.
- Questions for the security team: Which credential source will be used in each environment, and how do we prove it? Which Azure role is granted, and at what scope? Who receives alerts before a client secret expires?
Confirm which credential sources Mattermost supports and their order in the current documentation before you rely on the default chain.
A managed identity is an Entra ID identity attached to an Azure resource, such as a virtual machine or a container host. The node requests tokens from the Azure instance metadata endpoint, so no password or key is stored in Mattermost or on disk. Permissions are granted to the identity through role assignments on the storage account or container, which lets the storage team audit and remove access centrally.
- Who supplies it: The cloud team enables a system-assigned or user-assigned managed identity on each node and attaches it to the Mattermost hosts, including every node in a cluster.
- Who holds it: Azure holds the credential, and no person receives its secret. Administrators of the Azure subscription can change the role assignments.
- How it is rotated: There is no secret to rotate. Access changes are made by editing role assignments, and the identity is removed when the resource is deleted.
- Where it fails: An identity that is not attached to the node that runs Mattermost, a role assigned to the wrong storage scope, or a node moved to a different subscription where the identity does not exist. Nodes outside Azure cannot use this option.
- Questions for the security team: Which resources carry the identity, and is each one listed in the asset inventory? Is the role limited to the Mattermost container rather than the whole account? How are new cluster nodes attached during scale-out?
As with the other options, check the current Mattermost release notes and documentation for managed identity support before you commit.
How an upload travels from a user to Azure Blob Storage
The diagram starts with a user's client sending a file to the load balancer, which passes the request to one of the Mattermost application nodes. Each node writes message metadata to the PostgreSQL primary and sends the file bytes to the Azure Storage account and its container. The authentication step on each arrow matters most: nodes present either a shared key or an Entra ID identity, and the trust boundary marks the Azure subscription where that credential is accepted. Check which identity each node uses and who can reach the storage account from outside it.
Upload path from client to Azure Blob Storage, with the trust boundary marked.
Configuring Azure Blob Storage for Mattermost in sequence
This sequence takes a self-hosted Mattermost from an unconfigured file store to one where every application node writes uploads to a private Azure Blob Storage container. Each step closes with a check, so the team can confirm the account, credentials, configuration and downloads before moving to the next node.
Create the storage account and private container
Ask the Azure subscription owner to create or select a storage account and a private blob container dedicated to Mattermost uploads. Keep public blob access disabled and place the account in the same region as the Mattermost servers so latency stays predictable. Record the account name, container name and endpoint in your change record. The step is done when the container exists, shows private access in the portal, and you can list it from an admin workstation. Confirm the settings required for your Mattermost version in its file storage documentation before continuing.
Decide the authentication method
Choose between a storage account shared key, Entra ID authentication through the default credential chain, or a managed identity when the servers run on Azure compute. Shared keys are the simplest to set up but grant full account access, so they need careful rotation and storage. Entra ID and managed identities avoid stored secrets but depend on role assignments and on how the Mattermost server resolves credentials at startup. Write the decision and the owner of each credential in your change record. The step is done when a named approver has signed off the choice and operations knows where any secret lives.
Grant the identity or issue the key
Create only the access the chosen method needs. For Entra ID or a managed identity, assign a blob data role scoped to the Mattermost container and nothing wider. For a shared key, retrieve it from the account's access keys and place it in your secrets store, never in a shared document. Confirm role names and scopes against current Azure documentation. Check the result by signing in as that identity and listing the Mattermost container, then attempting a listing on a second container, which should fail. If the second listing succeeds, narrow the scope before continuing.
Set the file store options on one node
Choose one application node and set the Azure Blob Storage file store options in the server configuration: the storage driver, account, container, and the authentication setting that matches the earlier decision. Make the change in the configuration source your team uses, whether a configuration file or database-backed settings, and keep a copy of the previous values. Do not leave the account key in a file readable by other users. Confirm exact option names for your release in the Mattermost documentation. The step is done when the configuration parses without error and a diff shows only the storage changes.
Restart the node and read startup logs
Restart Mattermost on that node using the method your install uses, such as systemd, a container runtime or Kubernetes. Mattermost documents when a restart or reload is required for each setting, so check that before choosing the method. Watch the server log during startup for errors about storage initialization, authentication failures or unreachable endpoints. The step is done when the server reports healthy through its health check and the log shows no storage errors. If a credential error appears, return to the access step and fix it before testing uploads.
Upload a test file through the client
Sign in to Mattermost as a test user connected to that node and attach a small file to a test channel. Then attach a larger file that is closer to what your users send, so the test covers more than a trivial upload. Open each file from a second client session and confirm that the preview and download work. The step is done when both posts show the attachments, both downloads succeed, and the server log records no storage errors for the uploads. Keep the test channel and user for later verification.
Confirm the object appears in the container
List the blobs in the Mattermost container from an admin workstation, using an administrator identity or the identity granted earlier. Match the newest objects to the test files by name, size and timestamp. Compare the object path with the layout described in the Mattermost documentation for your release before relying on it. The step is done when both test objects are present in the expected container and their sizes match the originals. If an object is missing, the upload went somewhere else, and the configuration on that node needs review before any other node changes.
Repeat the configuration check on every node
Apply the same storage settings to each remaining application node, one at a time, restarting each after its change. The high availability cluster documentation requires shared file storage that every node reaches, so each node must point at the same account and container. From a second node, download the test files uploaded in the earlier step. Compare the configuration on all nodes against your change record. The step is done when every node serves the test files, the configurations match, and each startup log is clean. Record the check in your runbook so later upgrades repeat it.
Mapping Azure identities, containers and Mattermost file paths
This table maps each Azure storage object to the Mattermost setting or behavior it affects, who typically owns it, and what to confirm before go-live. Read it top to bottom as a checklist: each row is a value you must agree on with the Azure team and then copy exactly from the configuration reference.
| Azure object | Mattermost mapping | Owner | What to confirm |
|---|---|---|---|
| Storage account | Account that holds all uploaded files; the Mattermost file storage settings point to its endpoint | Cloud or platform team | Region, redundancy, and whether it sits in the same network as the Mattermost nodes |
| Container | Single blob container that receives Mattermost uploads; the bucket-style name in the file storage settings | Cloud or platform team | Dedicated container for Mattermost only, with the exact name matching the configuration key |
| Authentication credential (shared key) | Account key entered directly in the file storage settings; grants full account access | Security team with platform team | Whether policy allows account keys, how the key is stored, and the rotation procedure |
| Authentication credential (Entra ID) | Identity used through the default credential chain instead of a stored key; no secret in the Mattermost config | Identity team with cloud team | Exact authentication option name in the configuration reference and the identity used in each environment |
| Managed identity assignment | Azure-hosted identity attached to the virtual machines or container platform running Mattermost | Cloud team | Assigned to every application node, including any added during a future cluster expansion |
| Role assignment on the container | Permission scope that lets Mattermost read, write and delete blobs in its container only | Cloud or identity team | Role is scoped to the container, not the account, and includes the data permissions needed for uploads and deletes |
| Path prefix for uploads | Folder-like prefix inside the container that Mattermost writes under; changing it later affects existing file references | Mattermost administrator | Prefix value chosen before go-live and recorded with the migration plan |
What moving existing uploads from local disk, S3 or NFS requires
Switching the file store does not move history. Mattermost keeps the references to uploaded files in its database, so every attachment in an old message still points to a path that must resolve after the change. If the server starts writing to Azure Blob Storage while the existing files stay on local disk, S3 or NFS, older messages will show broken attachments even though the new uploads work. Treat the migration as two jobs: copying the bytes and proving that every reference still leads to them. The most common mistake is changing the configured backend before the copy is finished and verified, which leaves a gap that is hard to see until users report it.
Plan the transition around a few concrete steps. Keep the old storage read-only from the start of the copy window so no new files land in a location the copy has already passed. Copy the files with a checksum check on each object and keep the same path layout, so the keys that the database references map predictably to blob names. Then test a sample of attachments from old messages across channels, date ranges and file types, opening each one through the Mattermost client as a normal user would. Schedule a cutover window that covers the final incremental copy, the configuration change and the sample test, and keep the old store available for a rollback period you define in advance.
Confirm every step against the Mattermost documentation for your target version before you run it, because file storage configuration and any supported migration tooling can change between releases. Ask your Azure administrator to confirm the container layout and access method you will use, and ask DeployOpen or your internal team to write down the rollback trigger, the person who makes the call and the checks that must pass before the old store is retired.
Security controls for an Azure-hosted file store
Each control below depends on how Mattermost authenticates to the storage account. Shared keys and Entra ID default credentials carry different risks, so confirm which method you use before applying each control. Together, these controls limit what a leaked credential or misconfigured network path can expose.
Scope the identity to one container
Grant the identity Mattermost uses only the data access it needs on the single container that holds uploads, not the whole storage account. With Entra ID, assign a built-in or custom role at container scope, not subscription or resource group scope. With a shared key, every request has full account rights, so scope cannot be narrowed this way and the key becomes the main risk. Confirm the role scoping options for your account in Azure documentation.
Rotate shared keys on a schedule
A shared key grants full access to the storage account, so its lifecycle is your control. Keep two keys so one can be rotated while Mattermost uses the other, and record which key Mattermost currently reads. Plan a rotation procedure that updates the Mattermost configuration, restarts or reloads nodes, and confirms uploads still work. Confirm the key regeneration and rotation features in Azure documentation.
Keep secrets out of config files
Storage credentials written into config.json sit in plain text on every node, in backups and in configuration snapshots. Supply the shared key or client secret through environment variables or a secrets manager, and restrict read access to the file and the service environment. Where the default credential chain is used, no secret needs to be stored. Check that the System Console does not expose the value to administrators who do not need it.
Limit the storage endpoint to private networks
Public access to the storage endpoint lets any network reach the account, so the only protection left is the credential. Plan private endpoints or firewall rules so that only the Mattermost application subnets can reach the blob service, and confirm that the cluster nodes, not just one, fall inside the allowed range. Test from outside the allowed network to confirm the request is refused. Confirm the private endpoint and network rule options in Azure documentation.
Review storage logs and access
Enable diagnostic logging on the storage account so reads, writes and deletes against the upload container are recorded with the identity that made them. Review who holds roles on the container and which keys exist at each access review. Entra ID sign-ins show the identity, while shared key requests do not identify a person, which is a reason to prefer Entra ID where your plan allows. Confirm the log categories and retention in Azure documentation.
Protect backups of the container
Backups of the upload container contain the same files as production, so they need the same access controls. Confirm who can read, restore and delete backup copies, and whether those copies use a separate identity or key. Keep backup credentials out of the Mattermost configuration. Test a restore of a sample of files into a separate location. Confirm the backup and immutability options for your account in Azure documentation.
Common Azure file store failures and how to fix them
This table pairs common symptoms with their likely causes and the configuration checks that confirm each one. Read it by matching the symptom you see to a row, then working through the cause and fix in order. The main takeaway is that most Azure file store failures come from credentials, role assignments, names or network rules, and each can be checked without changing Mattermost data.
| Symptom | Likely cause | Fix and checks |
|---|---|---|
| Authorization failures after a storage key rotation | The Mattermost configuration still holds the old account key, or only some nodes picked up the new key. | Update the file store access key in the Mattermost file settings on every node or in the shared configuration, then restart each node. Confirm the new key works with a test upload from the System Console. |
| Managed identity cannot read or write files | The managed identity has no data-plane role on the storage account or container, so requests return authorization errors even though the identity exists. | Assign a blob data role such as Storage Blob Data Contributor to the identity at the account or container scope. Allow time for the assignment to propagate, then test an upload and a download. |
| Uploads succeed on one node but fail on another | Nodes hold different file store settings, such as a stale key, a different container name, or a default credential chain that resolves to a different identity. | Compare the file store section of the configuration on each node. Make the settings identical, confirm each node uses the same authentication method, and restart the nodes one at a time. |
| Wrong container or account name | The configured storage account name or container name does not match the Azure resource, often because of a typo or a copied value from another environment. | List the storage accounts and containers in the subscription, then match the exact names in the configuration. Check that the container exists in the intended account and region before retrying an upload. |
| Network blocks from a subnet | The storage account firewall or private endpoint rules do not allow traffic from the Mattermost application subnet, or DNS resolves the account to a public address that is blocked. | Confirm the storage account network rules include the application subnet or private endpoint. Resolve the account hostname from a Mattermost node and check it returns the expected address. |
| Files missing after a backend switch | Files were not copied to the new Azure container, or the copy used a different path layout than Mattermost expects, so existing references point to nothing. | Compare object counts and paths between the old backend and the target container. Copy the full file tree, keep the original paths, and spot-check several attachments from message history before cutover. |
| Downloads fail for old attachments only | Older files were never migrated, or they were written under the previous backend and the reference still points there, so new uploads work but historical links break. | Identify which file paths fail, check whether they exist in the Azure container, and copy missing objects from the old store. Keep the old backend readable until all historical attachments are confirmed. |
Questions buyers ask before hiring help with Azure file storage
Can our team set up Azure Blob Storage for Mattermost without outside help?
Yes, many teams with Azure and Mattermost experience can do it in-house, and the work is mostly configuration rather than new software. The questions that decide whether to hire help are how many Mattermost nodes you run, whether you have already chosen between a shared key and Entra ID authentication, and whether your security team has time to review the credential design and network path. Teams with a single server, an existing Azure landing zone and a tested restore process usually have less to outsource than teams running a high availability cluster with existing files to move. Confirm your internal skills against the scope in this section before you decide.
What makes the effort for Azure file storage go up or down?
Four factors drive most of the effort. The first is the number of Mattermost nodes, because each node must reach the same storage account with the same configuration. The second is the volume of existing files you need to move, which affects copy time and verification work. The third is the authentication choice: a shared key is simpler to set up but needs secure key storage and rotation, while Entra ID with managed identities needs role assignments and identity configuration on each host. The fourth is network design, including private endpoints, firewall rules and outbound routes from the Mattermost servers. Ask any partner to state how each factor changes their scope.
What does our organization need to provide for this work?
You need access to the Azure subscription where the storage account will live, with enough rights to create or configure the account, role assignments and network settings. You also need a change window for the cutover, because Mattermost should stop writing new files while existing data is copied and checked. Your security team must approve the credential method before configuration starts, including whether a shared key is acceptable and how it would be stored and rotated. Finally, you should provide a test Mattermost environment and a named owner who can confirm that uploads and downloads work before production goes live.
Does a high availability Mattermost cluster require the Enterprise plan?
Yes. According to Mattermost's high availability documentation, high availability is available only on the Enterprise and Enterprise Advanced plans, and the pricing page places high availability clustering in the Enterprise tier. A cluster also needs shared file storage on each node, which for this topic means Azure Blob Storage or another supported shared option, because local file storage will not work correctly in a cluster. Confirm plan entitlements and licensing terms directly with Mattermost before you commit to a design, since plan details can change.
How long does a migration of Mattermost files to Azure take?
The duration depends mainly on the volume of files to move and on how many test cycles your change process requires. Copy time grows with data volume and available bandwidth, while verification time grows with the number of checks you want to run, such as confirming file counts, sampling downloads and testing a restore. Cutover planning also depends on your approved change window. No duration is set for this work in the supplied facts, so ask any partner for a written timeline tied to a measured data inventory and a named test plan.
What costs should we expect for Azure file storage work?
There are two separate cost components. The first is the partner fee, which DeployOpen agrees in a written, fixed-scope quote before work starts; DeployOpen does not publish a price list. The second is Azure storage charges, which are billed to your own subscription and depend on the amount of data stored, transactions and the storage tier you choose. Storage charges recur as long as the files are kept, while setup and migration work is largely one-time. Ask for the quote to separate one-time work from any retainer for ongoing support, and confirm Azure pricing with your Azure account team or the Azure pricing calculator.
Which authentication method should our engineers check first?
Check the credential method before anything else, because it changes how the rest of the design is built. A shared key is the simplest way to connect Mattermost to the storage account, but the key grants broad access and must be stored, rotated and restricted carefully. Entra ID authentication with the default credential chain, combined with managed identities on Azure hosts, removes stored keys but needs correct role assignments and a clear identity for each node. Confirm the exact configuration keys and supported options against the Mattermost file storage documentation for your server version before you write any change.
How DeployOpen scopes and delivers Mattermost file storage on Azure
DeployOpen plans, builds and hands over Azure Blob Storage as the file store for a self-hosted Mattermost inside your own Azure subscriptions. The work starts from your authentication policy, network model and Mattermost version, so storage, identity and operations are agreed in writing before any configuration changes.
How we scope
- Confirm your Mattermost server version and plan level, and whether the deployment is single-node or a high availability cluster that shares one file store.
- Agree the choice between shared key and Entra ID default credential authentication, and who owns each credential or identity.
- Record the storage account, container, region, network access rules and the file migration path, in a written scope before work starts.
How we build
- Create the storage account and container with private network access, then configure Mattermost file settings and verify uploads and downloads on each node.
- Assign managed identity roles on Azure-hosted servers where the chosen authentication model calls for them, and remove unused shared keys.
- Test file upload, download, preview and deletion behavior, plus restart and node failover, and document the results for your reviewers.
How we hand over
- Deliver a written runbook covering configuration keys, credential rotation, access roles, network rules and the rollback steps.
- Document the backup and retention approach for the storage account, and the recovery test you ran against it.
- Walk your platform and security teams through the configuration so they can review it against their own Azure and compliance controls.
How we support
- Offer ongoing support, Mattermost server upgrades and continuous testing as retainers after handover, scoped in writing.
- Re-check storage settings, credential age and role assignments when Mattermost releases a new server version or your Azure policy changes.
- Confirm with your Azure and Mattermost plan terms which support boundaries apply, since DeployOpen does not issue audit reports or certifications.

