简体   繁体   English

如何在 Azure 数据工厂中使用此 API

[英]How can I use this API in Azure Data Factory

I want to use this API as a Web module in Azure Data Factory [ https://docs.microsoft.com/en-us/rest/api/datafactory/pipelineruns/querybyfactory I want to use this API as a Web module in Azure Data Factory [ https://docs.microsoft.com/en-us/rest/api/datafactory/pipelineruns/querybyfactory

But it required me to get a bearer Token first in Authorization.但它要求我首先在授权中获得一个不记名令牌。 在此处输入图像描述

I'm try to set up a token request first in this link but no help.我尝试先在此链接中设置令牌请求,但没有帮助。 Any guidance is appreciated https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth-ropc任何指导表示赞赏https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth-ropc

No need to use the bearer token manually, you can use the MSI Authentication in your screenshot directly.无需手动使用不记名令牌,您可以直接在屏幕截图中使用MSI身份验证。

Navigate to your subscription or ADFv2 in the portal -> Access control (IAM) -> Add -> Add role assignment -> search for the name of your ADFv2 and add it as an Owner/Contributor role in the subscription.在门户中导航到您的订阅或 ADFv2 -> Access control (IAM) -> Add -> Add role assignment -> 搜索您的 ADFv2 的名称并将其添加为订阅中的Owner/Contributor参与者角色。 Then the MSI of your ADFv2 will be able to call the rest api.然后您的 ADFv2 的 MSI 将能够调用 rest api。

在此处输入图像描述

Update :更新

Add the MSI like below, for exampple, my ADFv2 named joyfactory , just add the MSI with the same name as an Owner or Contributor .添加如下所示的 MSI,例如,我的 ADFv2 名为joyfactory ,只需添加与OwnerContributor同名的 MSI。

在此处输入图像描述

After adding it, check it in the Role assignments , it should be like below.添加后,在Role assignments中检查它,它应该如下所示。

在此处输入图像描述

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

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