Learn how to securely upload files using a SAS token
logstorage)abcd-logs)Copy the generated URL from bottom of screen and modify it to include your JSON file name after the container name and before the ? part.
Structure Example:
https://<storage_account>.blob.core.windows.net/<container>/myfile.json?sv=...&sig=...
Final URL Example :
"https://logstorage.blob.core.windows.net/abcd-logs/myfile.json?sv=2025-01-01&ss=b&srt=o&sp=rcw&se=2025-12-31T23:59:59Z&st=2025-08-04T00:00:00Z&spr=https&sig=aaaaaaaa"
PUT as the request method.Content-Type: application/jsonx-ms-blob-type: BlockBlob
Success: Empty response indicates success ✅
<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthenticationFailed</Code><Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.RequestId:9e3c77a1-a01e-003f-3f2e-056c07000000Time:2025-08-04T10:57:16.8054672Z</Message><AuthenticationErrorDetail>Signature did not match. String to sign used was rw2025-08-04T10:35:42Z2025-11-30T18:50:42Z/blob/optimuslogstorage/$roothttps2024-11-04c</AuthenticationErrorDetail></Error>
📝 Tip: Always double-check expiry time and permissions when generating SAS tokens.