Exhibit 23.1
Consent of Independent Registered Public Accounting Firm
We consent to the incorporation by reference in the following Registration Statements:
of our reports dated February 9, 2022, with respect to the consolidated financial statements and schedules of National Retail Properties, Inc. and Subsidiaries and the effectiveness of internal control over financial reporting of National Retail Properties, Inc. and Subsidiaries included in this Annual Report (Form 10-K) of National Retail Properties, Inc. for the year ended December 31, 2021.
/s/ Ernst & Young LLP
Orlando, Florida
February 9, 2022