skip to Main Content

Azure – me request is only valid with delegated authentication flow in Graph API in .Net Core API

I have a .net core api and User.Read delegated permission is given. Authentication section in startup.cs: services.AddAuthentication("Bearer") .AddMicrosoftIdentityWebApi(Configuration.GetSection("AzureAd")); Getting the graph api client: var credential = new DefaultAzureCredential(); var token = credential.GetToken( new Azure.Core.TokenRequestContext( new[] { "https://graph.microsoft.com/.default" })); var accessToken…

VIEW QUESTION

Retrieve last string in KQL query output in Azure

I am running an KQL Query in Azure Resource Graph Explorer: resources | where type == 'microsoft.network/virtualwans' and tags.CompanyTag =~ 'Company' | extend WANname = tostring(name) | extend VPNsite = tostring(properties.vpnSites) And the output of this is {"id":"/subscriptions/companysubscriptionid/resourceGroups/companyresourcegroupname/providers/Microsoft.Network/vpnSites/NAMEOFTHEWAN"}] I only…

VIEW QUESTION
Back To Top
Search