azure-function-app

Azure Function App - gives me the user logged

喜夏-厌秋 提交于 2020-08-10 06:17:49
问题 I need to create a simple Azure Function App that gives me the username who access it. I have enabled Azure Active Directory "Authentication/Authorization" and when I access the function URL it prompts for the user and I can login well In Function App log I want to see the user who have logged. How can I do it? 回答1: App Service passes user claims to your application by using special headers. External requests aren't allowed to set these headers, so they are present only if set by App Service.

Azure Function App - gives me the user logged

一世执手 提交于 2020-08-10 06:12:29
问题 I need to create a simple Azure Function App that gives me the username who access it. I have enabled Azure Active Directory "Authentication/Authorization" and when I access the function URL it prompts for the user and I can login well In Function App log I want to see the user who have logged. How can I do it? 回答1: App Service passes user claims to your application by using special headers. External requests aren't allowed to set these headers, so they are present only if set by App Service.

Azure Function App - gives me the user logged

六眼飞鱼酱① 提交于 2020-08-10 06:10:06
问题 I need to create a simple Azure Function App that gives me the username who access it. I have enabled Azure Active Directory "Authentication/Authorization" and when I access the function URL it prompts for the user and I can login well In Function App log I want to see the user who have logged. How can I do it? 回答1: App Service passes user claims to your application by using special headers. External requests aren't allowed to set these headers, so they are present only if set by App Service.

Generate Azure Function's Access Code on the fly programmatically

对着背影说爱祢 提交于 2020-07-31 04:46:25
问题 I have couple of Azure functions (written in c#) .. URL of which i have given to a different team to call\invoke .. I noticed that the access code which is suffixed is always the same hence poses a security risk .. Is there a way where we can generate Azure Function's Access Code on the fly programmatically and append it to the function's URL .. so that each and every invocation would have a Uniquely generated access code ? Please guide. Thanks. 回答1: Yes, you can do it using azure cli / rest

Login failed for user '<token-identified principal>'. Token is expired when using Azure Function app and Azure SQL Service using Managed Identity

瘦欲@ 提交于 2020-07-22 06:01:06
问题 I am using a function app which is service bus triggered. It connects to Azure SQL Server using Managed Identity . The connection is created using the following code. new SqlConnection(this.ConnectionString) { // AzureServiceTokenProvider handles caching the token and refreshing it before it expires AccessToken = new AzureServiceTokenProvider().GetAccessTokenAsync("https://database.windows.net/").Result }; I get a few thousand events every day, and all these are failing on connecting to the

How to extract Secret key from Azure key vault in Azure Function App on Nodejs stack

て烟熏妆下的殇ゞ 提交于 2020-07-22 05:19:48
问题 I have created an Azure Function app in Nodejs version 12. My hosting environment is windows. What is the easiest way to capture the username and password which are saved in Azure key vault inside my function. Also I am using Inline code Editor so how should be capture the credentials in code. Thanks 回答1: The node SDK used in above answer is going to be deprecated and won't have new feature and releases. Instead, the new versions are released here: https://www.npmjs.com/package/@azure

Understanding of Azure Functions Premium Plan Billing

旧时模样 提交于 2020-07-19 06:06:51
问题 I've been reading various documentation around this and was not able to clearly confirm my understanding, we are evaluating Azure Functions Premium Plan and want to have a clearer understanding on the costs. My understanding is as follows: In a Premium Plan, we can configure the minimum instances, and the burst size. This is min and max size of a reserved pool of Premium Plan instances (say it's SKU EP2). Let's say I set minimum instances to 3, burst size to 10. The configured minimum (in

Use SSL certificate in azure function app with nodejs

别来无恙 提交于 2020-07-09 06:43:28
问题 I uploaded a .pfx certificate to my function app. How do I load this certificate so I can use it in my Nodejs code? If I put it in the project directory I am able to use it and it works fine but I would like to avoid to have it in the project. Thanks. 回答1: In Azure portal, you can follow the figures below to upload your private certificate .pfx file and next to do the SSL binding. Fig 1. Select your Function App and move to Platform features tab to click SSL button. Fig 2. Then, select

IBM.Data.DB2.Core throws exception in azure function app

一曲冷凌霜 提交于 2020-06-17 13:26:28
问题 I'm using nuget package IBM.Data.DB2.Core version 1.3.0.100 dll to connect DB2 database from Azure functions with AzureFunctionsVersion V2. Application builds successfully. When I run the application and hit it with Postman I get the exception: System.Private.CoreLib: Exception while executing function: Personal-GetAgencyDownload. AgencyDownload: Could not load file or assembly 'IBM.Data.DB2.Core, Version=1.2.2.201, Culture=neutral, PublicKeyToken=7c307b91aa13d208'. Could not find or load a

IBM.Data.DB2.Core throws exception in azure function app

末鹿安然 提交于 2020-06-17 13:26:15
问题 I'm using nuget package IBM.Data.DB2.Core version 1.3.0.100 dll to connect DB2 database from Azure functions with AzureFunctionsVersion V2. Application builds successfully. When I run the application and hit it with Postman I get the exception: System.Private.CoreLib: Exception while executing function: Personal-GetAgencyDownload. AgencyDownload: Could not load file or assembly 'IBM.Data.DB2.Core, Version=1.2.2.201, Culture=neutral, PublicKeyToken=7c307b91aa13d208'. Could not find or load a