We have logic apps which were previously using 'Access Key' based API Connections to connect to the Azure Service Bus. Lately, we have started moving them to API connection based on User Assigned Identity based API connections.
It works but only for a day or two and then it will stop working suddenly. Only thing that works is to create a new API connection with the same User Managed Identity, which is exactly the same as the previous one. It just stops working on its own.
Not able to identify what the issue is and it does not make sense that a new API connection starts to work.
In the Trigger History, triggers shows 'Failed' Status and when you go in details and 'output' links gives the following details
{
"statusCode": 401,
"headers": {
"Cache-Control": "no-store, no-cache",
"Pragma": "no-cache",
"x-ms-request-id": "00bd6bfb-0f6e-41d2-827c-e12c439167dc",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "DENY",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "false",
"x-ms-apihub-obo": "false",
"Date": "Fri, 28 Oct 2022 12:55:20 GMT",
"Content-Length": "1109",
"Content-Type": "application/json",
"Expires": "-1"
},
"body": {
"status": 401,
"message": "40100: Unauthorized : Unauthorized access for 'Receive' operation on endpoint 'sb://xxxxxxxxxxxxxxxx.servicebus.windows.net/sbq-xxxxxxxxxxx'. Tracking Id: 92726aae-0ef3-4444-xxxxxxxxxxxxxxxx, Resource:sb://xxxxxxxxxxxxxxx.servicebus.windows.net/sbq-xxxxxxxxxxx. TrackingId:xxxxxxxxx-0ef3-4444-xxxxxxxxxxxxxxxx, SystemTracker:xxxxxxxxxxxxxxxxxx.servicebus.windows.net:sbq-xxxxxxxxxxxxxxx, Timestamp:2022-10-28T12:55:21\r\nclientRequestId: 00bd6bfb-0f6e-41d2-xxxxxxxxxxxxxxxxxx",
"error": {
"message": "40100: Unauthorized : Unauthorized access for 'Receive' operation on endpoint 'sb://xxxxxxx.servicebus.windows.net/sbq-xxxxxxx'. Tracking Id: xxxxxx-0ef3-4444-xxxxxxxxxxxxxxxxxxxxxxxxxx, Resource:sb://xxxxxxxxxxxxxxxxxx.servicebus.windows.net/sbq-xxxxxxxxxx. TrackingId:92726aae-xxxxxxxxxxx-xxxxxxxxxxxxx, SystemTracker:xxxxxxxxxxx.servicebus.windows.net:sbq-xxxxxxxxxxxxxxx, Timestamp:2022-10-28T12:55:21"
},
"source": "servicebus-uks.azconn-uks-002.p.azurewebsites.net"
}
}
Does any one know what could be going on here ?