简体   繁体   English

blob 触发器 azure function 调用 rest Z8A5DA52ED126447D359E70C057

[英]blob trigger azure function invoke a rest api

Hi I'm having this scenario:嗨我有这种情况:

User Upload a file to a blob storage account -> Azure function picks it up -> Call a rest api to perform some actions with the date inside the excel. User Upload a file to a blob storage account -> Azure function picks it up -> Call a rest api to perform some actions with the date inside the excel.

The azure function has a system assigned identity and both, the rest api and the function, resides inside the same resource group. The azure function has a system assigned identity and both, the rest api and the function, resides inside the same resource group. The rest api is built using Azure app services. rest api 是使用 Azure 应用服务构建的。 I'm not sure on how to authenticate the Function app to call the REST api, is there any example on how should I proceed with authentication between Function App and REST api using Azure AD or system managed identity? I'm not sure on how to authenticate the Function app to call the REST api, is there any example on how should I proceed with authentication between Function App and REST api using Azure AD or system managed identity?

Is there another way of achieving this scenario that I'm not seeing?是否有另一种方法可以实现我没有看到的这种情况?

As you are using the App Service, You can refer this link to know how to secure your web app with the App Service authentication/authorization module and Azure Active Directory (Azure AD).当您使用应用服务时,您可以参考此链接以了解如何使用应用服务身份验证/授权模块和 Azure Active Directory (Azure AD) 保护您的 web 应用。

You can proceed with the authentication between the Function App and the Rest API by using Azure Active Directory as authentication provider.您可以通过使用 Z3A580F1422036767F53F0 身份验证提供程序 Z3A580F142036767F53F0 提供 Function 应用程序和 Rest API 继续在 Function 应用程序和 API 之间进行身份验证。 You have the option of creating a new app registration automatically or using an already registered registration.您可以选择自动创建新的应用注册或使用已注册的注册。 This link shows how to set up Azure App Service or Azure Functions authentication so that your app uses the Microsoft identity platform as the authentication provider.链接显示如何设置 Azure 应用服务或 Azure 函数身份验证,以便您的应用使用 Microsoft 标识平台作为身份验证提供程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM