microsoft / botbuilder-dotnet

Welcome to the Bot Framework SDK for .NET repository, which is the home for the libraries and packages that enable developers to build sophisticated bot applications using .NET.
https://github.com/Microsoft/botframework
MIT License
878 stars 484 forks source link

Managed identity with skills failing #6869

Open jamesemann opened 1 week ago

jamesemann commented 1 week ago

Version

Latest

Describe the bug

When using user assigned managed identity in azure app service, invoking a skill fails when requesting a token from the msi endpoint (http://127.0.0.1:41120/msi/token/?api-version=2019-08-01&resource=<redacted>&client_id=<redacted>) - which returns a HTTP 500 (with no detail) followed by the error below:

Failed to acquire token for client credentials. ([Managed Identity] Error Message: An unexpected error occurred while fetching the AAD Token. Managed Identity Correlation ID: 3b30b8c8-c05d-47d4-9e4b-c74af665aadc Use this Correlation ID for further investigation.)

To Reproduce

Detail in in https://github.com/microsoft/botbuilder-dotnet/issues/6778.

Expected behavior

It should authenticate and communicate with the skill as expected.

Screenshots

Screenshots in https://github.com/microsoft/botbuilder-dotnet/issues/6778.

sayali-MSFT commented 1 week ago

Hello @jamesemann - Thank you for your inquiry about your Teams app development issue! We are checking the issue. We will get back to you shortly.

sayali-MSFT commented 1 week ago

Hello @jamesemann -We have raised a bug for this issue, and our engineering team is currently investigating it.

We will keep you informed as soon as we have any updates.

Thank you for your patience!