[英]Exception while calling Azure Function from Azure Data Factory (ADF)
[英]Calling Azure Function from ADF using MSI
首先,請確保您在使用 Azure AD auth 配置 function 應用程序時選擇了Create New AD App
選項,然后 azure 將自動為您減少所有不必要的麻煩。 還要記住將 function 的Authorization level
設置為Anonymous
,因為我們使用 Azure AD auth 配置了 function 應用程序。
In your case, the error was caused by the wrong Resource
, it should be the Application ID URI
of the AD App corresponded to the function app, ie https://<functionapp-name>.azurewebsites.net
(this is configured by azure當您 select 如上所述Create New AD App
時自動)。
此外,您應該注意,如果您只是執行上述步驟,您的 AAD 租戶中的所有服務主體(MSI 本質上是服務主體)/用戶都可以訪問 function 應用程序,如果您只想讓您的 MSI 訪問 function 應用程序,那么您需要利用Azure AD App 角色,我已經在此處發布了詳細信息,如果您不介意,請忽略第 2 步和第 3 步,它也可以工作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.