Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I am afraid I did not understand your requirement.
What exactly do you mean by "NSG behind private endpoints" ?
- Do you mean to say you are planning to associate an NSG to a subnet that contains Private EndPoint?
If so,
Q1.
- Yes, Private EndPoints honor NSGs that are attached to the subnet in which the PE is deployed into.
- Provided that Network policies for private endpoints is enabled at the subnet
- This will be enabled by default on recent deployments but feel free to verify it.
- The above link specifies how you can enable/disable it via Portal itself.
Q2.
- Currently, with NSG Flow logs, Traffic can't be recorded at the private endpoint itself due to platform limitations.
- See : NSG Flow Logs - Traffic to a private endpoint
- Nevertheless, you should be able to enable NSG Flow logs on this NSG like a regular NSG
If my understanding of your requirement is incorrect, please elaborate and I shall try my best to address your queries.
Thanks,
Kapil
Please Accept an answer if correct.
Original posters help the community find answers faster by identifying the correct answer.