Reputation: 1283
I am having trouble connecting my Logic App to an Azure Storage Queue. I followed MS guide for setting it up: https://learn.microsoft.com/en-us/azure/logic-apps/create-managed-service-identity
Here is my test Logic App to post something to my queue:
When my Logic App is triggered I get an error:
AuthenticationFailed.Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
Why is it requiring me to include an Authorization Header, when I stated that I want to use Managed Identity? As far as I have read on MS docs, the Queues do support Managed Identities.
Upvotes: 2
Views: 1455
Reputation: 1283
This worked for me: Put/Post JSON message to Azure Storage Queue via Logic App
Final result in Logic App designer
Upvotes: 1
Reputation: 23141
According to my test, if we want to call Azure queue storage rest API with Azure AD auth, we need to specify x-ms-version
in the request header and its value should be 2017-11-09 or higher. Otherwise, we will get error 403. For more details, please refer to the document and the document
My test is as below
1. If I do not specify x-ms-version
, I get the error
x-ms-version
, it is okMy request Headers in HTTP action
"Content-Type": "application/xml",
"x-ms-date": "@{utcNow('R')}",
"x-ms-version": "2019-07-07"
Result:
Upvotes: 3