Matt Hamilton
Matt Hamilton
I'm sure the team has their own ideas on how this could work, but I feel like adding an alias property to the output of the commands would be a...
Ok, I got a stack trace. My request path (/api/users/{id}) is the controller endpoint that is getting the photo for the requested user. So it needs User.Read.All. I've replaced my...
The line of code it's crashing on in my controller is: ``` var photo = await _graph.Users[id].Photo.Content.Request().GetAsync(); ``` The line works just fine if I supply a ClientSecret, but I...
I could only get this far by setting the ``AzureAd__UserAssignedManagedIdentityClientId`` environment variable to the app ID of my App Service / System Managed Identity, by the way. If I didn't...
https://stackoverflow.com/questions/71594455/call-graph-from-azure-app-service-using-managed-identity I've also tried posting this on Stack Overflow in case someone else is having any luck.
This doc: https://docs.microsoft.com/en-us/azure/app-service/scenario-secure-app-access-microsoft-graph-as-app?tabs=azure-powershell#call-microsoft-graph ... shows how to use `ManagedIdentityCredential` with `GraphServiceClient`, which is what I want, but how do I introduce that code into the simple extension-method based setup code...
OK, GitHub helps those who help themselves. I've currently got this code in my Program.cs, and it's working at least when running locally in Visual Studio: ``` builder.Services.AddSingleton(services => {...
The code above needed some work, but I have it working now! I've posted my most up-to-date code as an answer on my Stack Overflow question: https://stackoverflow.com/questions/71594455/call-graph-from-azure-app-service-using-managed-identity/71609780#71609780 Still would love...
Hi @jmprieur! Just App Services - no authentication at that level. The app itself handles the auth. I didn't have any luck with UserAssignedManagedIdentityClientId. I tried giving it the value...
I guess I can do: `(Get-LoggingTarget).Clear()` ... but that's relying on the internal implementation of Get-LoggingTarget (if you were to change it to return something without a .Clear() method, my...