[英]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
,只需添加与Owner
或Contributor
同名的 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.