Azure Function access private resources

耗尽温柔 提交于 2020-06-26 14:32:48

问题


We have setup an infrastructure on Azure containing Azure AD , VM's etc. We use Azure Active Directory Domain Services to have the servers domain-joined and alsoo for local AD-authentication for some specific applications.

I would like to write some custom Azure functions that access the Azure Active Directory Domain Services for querying some specific AD-properties like msDS-UserPasswordExpiryTimeComputed. Those properties are not exposed in Azure AD.

Can an Azure function access resources that are only exposed into a Virtual Network? It is sufficient to have an App Service plan (Basic or Premium) to access these internal resources? Or is this not supported?

Best regards, Jens


回答1:


It should be possible using the VNET integration feature of App Service, or App Service Environments (ASE). See here for more information. Note that this document has not been updated for Azure Functions but the same process should work as long as you are creating Azure Functions on your standard/premium App Service plan or on an ASE. Please note that this won't work if you are trying to use the consumption (previously known as dynamic) plan for your function apps.




回答2:


This can be done when deploy a function app and choose App Service plan. Like Paul said that consumption plan won't work.

Refer to https://docs.microsoft.com/en-us/azure/azure-functions/functions-infrastructure-as-code#deploy-a-function-app-on-the-app-service-plan



来源:https://stackoverflow.com/questions/41341180/azure-function-access-private-resources

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!