Bug with managed identity and Service Bus Integration
- Dominant language
- ABAP
- Stars
- 424
- Forks
- 320
- Avg merge
- 14h 41m
- Merged PRs (30d)
- 1
Description
### Describe the Bug with repro steps
1. Enable Managed identity on the Logic App
2. Go into the workflow and and add a "Get messages from a topic subscription" workflow action
3. Configure this to use managed identity. Select a topic and subscription name.
4. Run workflow. Error received:
{
"code": "ServiceProviderActionFailed",
"message": "The service provider action failed with error code 'ServiceOperationFailed' and error message 'Put token failed. status-code: 401, status-description: InvalidIssuer: Token issuer is invalid. TrackingId:9a3679cb-d34c-4dbb-86f9-e44d46d28186, SystemTracker:NoSystemTracker, Timestamp:2025-05-03T02:19:41.\r\nFor troubleshooting information, see https://aka.ms/azsdk/net/servicebus/exceptions/troubleshoot.'."
}
### What type of Logic App Is this happening in?
Standard (Portal)
### Which operating system are you using?
Windows
### Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg
Yes
### Workflow JSON
```json
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"For_each_1": {
"type": "foreach",
"foreach": "@outputs('Get_messages_from_a_topic_subscription')?['body']",
"actions": {
"Complete_the_message_in_a_topic_subscription": {
"type": "ServiceProvider",
"inputs": {
"parameters": {
"topicName": "scim-messages-topic",
"subscriptionName": "SCIM",
"lockToken": "@outputs('LockToken')"
},
"serviceProviderConfiguration": {
"connectionName": "serviceBus-1",
"operationId": "completeTopicMessageV2",
"serviceProviderId": "/serviceProviders/serviceBus"
}
},
"runAfter": {
"HTTP": [
"SUCCEEDED"
]
}
},
"HTTP": {
"type": "Http",
"inputs": {
"uri": "https://graph.microsoft.com/v1.0/servicePrincipals/8599c51a-aa22-4af7-9bc6-e597ba0e1094/synchronization/jobs/API2AD.a88935c3586c4558957867aabfe160a8.d2a65756-1d16-4a27-8426-9e3c0a60ac77/bulkUpload",
"method": "POST",
"headers": {
"Content-Type": "application/scim+json"
},
"body": "@item()?['contentData']",
"authentication": {
"type": "ManagedServiceIdentity",
"audience": "https://graph.microsoft.com"
}
},
"runAfter": {
"LockToken": [
"SUCCEEDED"
]
},
"runtimeConfiguration": {
"contentTransfer": {
"transferMode": "Chunked"
}
}
},
"LockToken": {
"type": "Compose",
"inputs": "@items('For_each_1')?['lockToken']"
}
},
"runAfter": {
"Get_messages_from_a_topic_subscription": [
"SUCCEEDED"
]
}
},
"Get_messages_from_a_topic_subscription": {
"type": "ServiceProvider",
"inputs": {
"parameters": {
"topicName": "scim-messages-topic",
"subscriptionName": "SCIM",
"maxMessages": 200
},
"serviceProviderConfiguration": {
"connectionName": "serviceBus-1",
"operationId": "getMessagesFromTopicV2",
"serviceProviderId": "/serviceProviders/serviceBus"
}
},
"runAfter": {}
}
},
"contentVersion": "1.0.0.0",
"outputs": {},
"triggers": {
"Recurrence": {
"type": "Recurrence",
"recurrence": {
"frequency": "Minute",
"interval": 10,
"timeZone": "New Zealand Standard Time"
}
}
}
},
"kind": "Stateful"
}
```
### Screenshots or Videos
_No response_
### Browser
N/A
### Additional context
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.