Azure Files
Archive SAP documents to Azure Files shares over HTTPS with Entra ID or SAS auth. No host mounts, no SMB port 445.
Use Cases
- SAP landscapes that consume documents from SMB file shares
- Lifting file-share workflows to Azure without VPN storage plumbing
- Share-based collaboration on SAP output documents
Archive SAP documents to Azure Files shares. FileRelay writes via the Azure Files REST API over HTTPS — worker hosts need no share mounts and no outbound SMB port 445, and authentication is Entra ID (recommended) or a SAS token.
Validated against a real storage account with both Entra ID (Privileged Contributor role) and SAS (container- and object-scoped), including native file properties and multi-range uploads.
Choose authentication
| Option | When to use |
|---|---|
| Entra ID (recommended) | Production. Short-lived tokens, RBAC roles, no shared keys. |
| SAS token (simpler) | Testing or simple setups. One pasted value; set a long expiry or a rotation reminder. |
Setup — storage account and share
- In the Azure Portal, go to Storage accounts and select (or create) your storage account. Note the account name.
- Go to Data storage > File shares → + File share (e.g.
sap-documents). The share must exist — FileRelay creates directories inside it, never the share itself.
Setup — Entra ID (recommended)
- Go to Microsoft Entra ID > App registrations → New registration (e.g. "FileRelay Files"). Note the Application (client) ID and Directory (tenant) ID.
- Go to Certificates & secrets → New client secret, copy the value immediately.
- Back on the storage account, go to Access control (IAM) → Add → Add role assignment. Grant both roles to the app (different access paths need different roles):
- Storage File Data Privileged Contributor — required for FileRelay's Entra REST writes (backup intent needs a privileged role; plain Contributor will 403).
- Storage File Data SMB Contributor — required if anything also mounts the share over SMB (workstations, migration tooling).
- Assign access to: User, group, or service principal → select your app → Review + assign.
- Role propagation takes a few minutes (up to ten) — verify under Check access for the app before retesting.
Setup — SAS token (simpler)
- On the storage account, go to Security + networking > Shared access signature with:
- Allowed services: File · Allowed resource types: Object · Permissions: Write, Create
- Alternatively generate it scoped to the share under File shares > … > Generate SAS.
- Copy the token. Set an expiry that matches your rotation schedule — FileRelay surfaces auth errors on the delivery row when it lapses.
Configure FileRelay
- Add an Azure Files destination: account name, share name, optional path prefix (directories are created as needed).
- Pick Entra ID or SAS and paste the values.
- Click Test — FileRelay reads the share, creates a probe directory + empty probe file, then deletes both. A passing test proves end-to-end writability.
How It Works
FileRelay creates each directory level as needed, creates the file, then streams content in 4 MiB ranges. Entra tokens are minted per send and cached until just before expiry. Enrichment key-values ride on the file as native properties automatically.
Troubleshooting
| Symptom | Cause / fix |
|---|---|
| 403 on Test | Missing File Data role, role not yet propagated, or SAS lacking Write/Create. |
| 404 on Test | Share name misspelt or in another account. |
| Auth errors after months of working | Expired client secret or SAS — renew and update the destination. |
Azure Blob vs Azure Files
Use Azure Blob for object archival (tiers, immutability policies, cheapest at rest). Use Azure Files when downstream consumers read documents through SMB file shares or existing share-based tooling.
Configuration Fields
| Field | Type | Required | Description |
|---|---|---|---|
| account_name | string | Required | Azure Storage account name |
| share | string | Required | Azure file share name |
| path | string | Optional | Path prefix inside the share (directories are created as needed) |
Credentials
| Field | Type | Required | Description |
|---|---|---|---|
| tenant_id | string | Optional | Entra tenant ID (use with client_id + client_secret; recommended) |
| client_id | string | Optional | Entra app (client) ID |
| client_secret | string | Optional | Entra app client secret |
| sas_token | string | Optional | Shared Access Signature token (alternative to Entra ID) |
All credentials are encrypted at rest using envelope encryption.
Ready to set up Azure Files?
Create a free account and add this connector in under 2 minutes.