Troubleshooting notes - MissingRequiredHeader: x-ms-file-request-intent Error - Azure File Share Authentication
Azure File Share access issue - Missing Intent
An HTTP header that’s mandatory for this request is not specified. RequestId:38183809-a01a-00d5–4a98-c8ae50000000 Time:2026–04–10T03:16:22.7035119Z Status: 400 (An HTTP header that’s mandatory for this request is not specified. ) ErrorCode: MissingRequiredHeader Additional Information: HeaderName: x-ms-file-request-intent Content:
MissingRequiredHeaderAzure File Share + OAuth/Managed Identity requires ShareTokenIntent.Backup set in ShareClientOptions. This is not needed for key-based access and is not automatically injected by the SDK. Forgetting it produces a 400 MissingRequiredHeader: x-ms-file-request-intent error. The enum value name is misleading - it is not backup-specific, it is the mandatory OAuth intent declaration for all file share data-plane operations.