Enable Traffic Analytics in NSG flow log

Murali R 205 Reputation points
2023-07-17T10:53:08.15+00:00

Hi Team,

Iam currently working on a process for creating NSG flow log with Traffic Analytics Enabled through bicep. When i have tested the pipeline i have received the below error "TAUserDoesNotHavePermissions: User does not have permissions to enable Traffic Analytics".

For this i have all the custom roles available provided as per Microsoft Document. Link [https://learn.microsoft.com/en-us/azure/network-watcher/traffic-analytics-faq#what-are-the-prerequisites-to-use-traffic-analytics-].

Kindly help me on this regard.

Thanks,

Murali

Azure Network Watcher
Azure Network Watcher
An Azure service that is used to monitor, diagnose, and gain insights into network performance and health.
158 questions
{count} votes

Accepted answer
  1. KapilAnanth-MSFT 35,246 Reputation points Microsoft Employee
    2023-08-11T04:55:25.25+00:00

    @Murali R

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    I understand that you are facing permission issues while trying to enable Traffic Analytics using Pipeline with Bicep code.

    While I tried to reproduce the error, I came across the below :

    There is a permission issue and is being tracked here : https://github.com/MicrosoftDocs/azure-docs/issues/110447

    The document was recently updated to include : Microsoft.OperationalInsights/workspaces/* actions.

    With further investigation from Azure Support, it was revealed that the Azure roles (permissions) should be at the subscription scope, and is not inherited from MG scope.

    The document also highlights this,

    Your account must have any one of the following Azure roles at the subscription scope: owner, contributor, or network contributor.

    David Hancocks , however, I understand it does not specifically state that the permissions should be exclusively assigned at subscription level and inheritance from MG would not work.

    I have informed our Product Group about this and hopefully, we should update the document stating that the exclusive assignment of permissions at subscription level is required.  

    This is being tracked in : https://github.com/MicrosoftDocs/azure-docs/issues/113313

    Thanks for your contribution on Q&A and appreciate much for taking the time to share your feedback and working with us.

    Cheers,

    Kapil


    Please Accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer.

    0 comments No comments

0 additional answers

Sort by: Most helpful