Replies: 3 comments 1 reply
-
Here's a bit more from the log output in aspire. It doesn't look to me like it's trying VisualStudioCredential? : [2025-04-07T12:35:08.010Z] DefaultAzureCredential.GetToken invoked. Scopes: [ https://storage.azure.com//.default ] ParentRequestId: 089b4cbb-53ea-4a87-a56c-4befd504b6be |
Beta Was this translation helpful? Give feedback.
-
I've got a bit further, I managed to eliminate the MSAL errors after quite a bit of trial and error with different roles, but the function itself was still shutting down without much clue as to why. After a bit of a trial and error, I found if I comment out this line in 'AddServiceDefaults' builder.ConfigureOpenTelemetry(); Things work. So there's something Azure functions with a queue trigger doesn't seem to like about open telemetry here. This is the log output with open telemetry enabled: [2025-04-08T09:13:17.861Z] Host state changed from Default to Initialized. |
Beta Was this translation helpful? Give feedback.
-
@mip1983 could you file an issue with a repro so we can investigate? I can move this discussion to an issue if you'd like. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, I'm after some help get an Azure Function with a storage queue trigger working with Aspire.
I've got my AppHost with similar configuration to this:
And a simple function
But there's this never hits a breakpoint or picks up anything from the queue.
I can an MSAL error in the lgos on startup like this:
And a message like this in the console of the function app:
I can see things in the queue in the Azure portal and have tried adding my account to roles like 'Storage Queue Data Message Processor' etc. to no avail. I've enabled more verbose logs, but just seeing more MSAL type errors. I don't know what it wants?
Beta Was this translation helpful? Give feedback.
All reactions