azure

Azure AAD - The audience is invalid

好久不见. 提交于 2021-02-17 19:20:10
问题 I have create a webapi secured with azure active directory. I need to test this now and trying to use fiddler with an authorization header. I am trying to generate the token with below code. Target obj = (Target)cmbTarget.SelectedItem; AuthenticationResult authenticationResult; string aadInstance = obj.AADInstance; // "https://login.windows.net/{0}"; string tenant = obj.Tenant; //"rudderless.onmicrosoft.com"; string apiResourceId = obj.ApiResourceId; //"15b4ac7f-23a8-4958-96a5-64159254690d";

Logging from ASP.NET 5 application hosted as Azure Web App

感情迁移 提交于 2021-02-17 15:14:18
问题 I have an ASP.NET 5 Web API that I host in Azure as a Web App. I want to log messages from my code using Azure Diagnostics. There are multiple article including Azure docs that suggest that it should be as easy as System.Diagnostics.Trace.WriteLine once enabled. The logs should show up under LogsFiles/Application and in log stream in Azure. I enabled application logging for the web app: But the following calls produces no logs: System.Diagnostics.Trace.TraceError("TEST"); System.Diagnostics

Get delegate permission in MSAL for EWS without PublicClientApplicationBuilder and AcquireTokenInteractive

限于喜欢 提交于 2021-02-17 05:14:09
问题 In EWS OAuth flow we can get delegate permissions by following: var pcaOptions = new PublicClientApplicationOptions { ClientId = ConfigurationManager.AppSettings["appId"], TenantId = ConfigurationManager.AppSettings["tenantId"] }; var pca = PublicClientApplicationBuilder .CreateWithApplicationOptions(pcaOptions).Build(); // The permission scope required for EWS access var ewsScopes = new string[] { "https://outlook.office.com/EWS.AccessAsUser.All" }; // Make the interactive token request var

Get delegate permission in MSAL for EWS without PublicClientApplicationBuilder and AcquireTokenInteractive

[亡魂溺海] 提交于 2021-02-17 05:13:04
问题 In EWS OAuth flow we can get delegate permissions by following: var pcaOptions = new PublicClientApplicationOptions { ClientId = ConfigurationManager.AppSettings["appId"], TenantId = ConfigurationManager.AppSettings["tenantId"] }; var pca = PublicClientApplicationBuilder .CreateWithApplicationOptions(pcaOptions).Build(); // The permission scope required for EWS access var ewsScopes = new string[] { "https://outlook.office.com/EWS.AccessAsUser.All" }; // Make the interactive token request var

How to change authentication mode (from Windows to Azure AD)

房东的猫 提交于 2021-02-17 04:54:27
问题 I have an existing WebForms application that currently uses Windows Authentication that I want to authenticate through Azure AD. The app is already configured in Azure (I have the AppID and TenantID), but the application still authenticates via Windows Authentication. Changes were made to the application by following this guide. Most guides use MVC as their example, and I couldn't find a thorough walk through for existing WebForms applications. Do I need to change something in the web.config

How to move error message to Azure dead letter queue using Java?

拈花ヽ惹草 提交于 2021-02-17 02:50:13
问题 We are using Azure Service Bus Queues for exchanging messages between different systems. We would like to move the invalid messages to Dead Letter Queue using Java code. I am able to move the messages to the Main queue, but not to dead letter queue. I tried to give the queue name as "BasicQueue/$deadletterqueue", but I was getting the error. 回答1: There are many reasons why a message may be automatically moved to the dead letter queue by the Azure Service bus runtime, such as: The max delivery

Application Error message when browsing Azure deployed web app

亡梦爱人 提交于 2021-02-17 01:52:17
问题 I created a simple web app (serverless) and deployed the web app using Azure App Service VS Code extension. I chose Linus + Node LTS environment. I configured deployment source to a local Git repo (also tried remote GitHub repo) and deployed. The deployment shows successful message. But when I browse the site, it throws a message (after 3-4 mins) that there was an ":( Application error". The admin diagnostics link doesn't show any error. Any reason why this could be happening? Where can I

Application Error message when browsing Azure deployed web app

≯℡__Kan透↙ 提交于 2021-02-17 01:50:36
问题 I created a simple web app (serverless) and deployed the web app using Azure App Service VS Code extension. I chose Linus + Node LTS environment. I configured deployment source to a local Git repo (also tried remote GitHub repo) and deployed. The deployment shows successful message. But when I browse the site, it throws a message (after 3-4 mins) that there was an ":( Application error". The admin diagnostics link doesn't show any error. Any reason why this could be happening? Where can I

Application Error message when browsing Azure deployed web app

瘦欲@ 提交于 2021-02-17 01:49:59
问题 I created a simple web app (serverless) and deployed the web app using Azure App Service VS Code extension. I chose Linus + Node LTS environment. I configured deployment source to a local Git repo (also tried remote GitHub repo) and deployed. The deployment shows successful message. But when I browse the site, it throws a message (after 3-4 mins) that there was an ":( Application error". The admin diagnostics link doesn't show any error. Any reason why this could be happening? Where can I

Excel Power Query - Is it possible to connect to Azure Blob Storage with SAS authentication or Azure AD account

自古美人都是妖i 提交于 2021-02-16 20:32:14
问题 I am accessing a container from a Azure Blob Storage with Excel, we connect through "New Query" but only gives the option to access with the Account Key. After logging the permissions are saved in Data source setting with the Account Key. To access that Azure Blob Storage from VBA is enough with the function from Power Query AzureStorage.Blobs (https://docs.microsoft.com/en-us/powerquery-m/azurestorage-blobs). ¿Is It possible to do the same with SAS (Shared Access Signature) Token or Azure AD