Azure function with NSG and NSG FLow logs

Amar-Azure-Practice 661 Reputation points
2022-05-23T19:52:06.503+00:00

Hi

I have an Azure functionApp with ASP, I have integrated with VNET/Subnet (FunctionAppSubnet) to the Azure function.
Added one Http trigger function to write the data to Azure storage.
Tested this function working as expected.

I have enabled the NSG Flow logs on the NSG that is associated to the Subnet(FunctionAppSubnet) and selected the storage account to log all NSG logs to capture IB/OB traffic flowing thru the NSG.
But the Storage account associated to NSG flow logs is not capturing any logs.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,929 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,772 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ChaitanyaNaykodi-MSFT 27,476 Reputation points Microsoft Employee Moderator
    2022-05-24T19:43:30.927+00:00

    Hello @Amar-Azure-Practice ,

    Thank you for your response, my bad I miss read it as ASE from your question.

    NSG flow logs are not supported by App Service plan as well it is documented here

    Because of the nature of how this technology operates, the traffic that's used with virtual network integration doesn't show up in Azure Network Watcher or NSG flow logs.

    The work around in this scenario will be to deploy the Function App in isolated App Service Environment V2 instead.

    I understand this limitation is not highlighted in the NSG flow log documentation. I will start a documentation thread to make this update.

    Hope this helps! Please let me know if you have any additional questions.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.