Hi everyone,
Context:
I am currently working on a project where I need to access a variety of different Blobs, because each Blob stores client information that needs to be separate from each other. Furthermore, the amount of Blobs is expected to be relatively large, and is expected to expand with time.
For this reason, the Blob connectors that are available in power automate did not suit the needs of the project (you need to configure each individual connector, which doesn't scale well if hypothetically every day you need to add a new Blob).
The issue:
To replace the connector we have decided to access the Blobs using the html request connector:
https://docs.microsoft.com/en-us/rest/api/storageservices/put-blob
However, after trying to configure it for some time, I have been stuck with a "Forbidden" error (even though the credentials should be fine). Here is how I configured the request:
{
"uri": "https://*accname*.blob.core.windows.net/*blobname*/test.xlsx",
"method": "PUT",
"headers": {
"Authorization": "SharedKey *accname*:*authkey*",
"x-ms-blob-type": "BlockBlob",
"x-ms-date": "Mon, 28 Feb 2022 08:44:43 UTC",
"x-ms-version": "2019-12-12",
"Content-Length": "3010",
"Content-Type": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
},
}
Where *accname*, *blobname* and *auth* have obviously been anonymized.
This returns a "Forbidden", even though the given key (*auth*) has been tested to be correct.
Does anyone have any idea of why this might be the case? Or does anyone have an alternative solution to the requisites of being able to dynamically connect to different Blobs without explicitly specifying each Blob in the connector settings?
Thanks in advance,
Javier

Report
All responses (
Answers (