Pimco New York Municipal Income Fund Ii Sample Contracts

Exhibit a.2 PIMCO NEW YORK MUNICIPAL INCOME FUND II AMENDED AND RESTATED AGREEMENT AND DECLARATION OF TRUST
Agreement and Declaration of Trust • June 25th, 2002 • Pimco New York Municipal Income Fund Ii • Massachusetts
UBS WARBURG LLC
Broker-Dealer Agreement • August 12th, 2002 • Pimco New York Municipal Income Fund Ii • New York
AUCTION AGENCY AGREEMENT dated as of , 2002 ------------ Relating to
Auction Agency Agreement • August 12th, 2002 • Pimco New York Municipal Income Fund Ii • New York
JOINT FILING AGREEMENT
Joint Filing Agreement • September 20th, 2018 • Pimco New York Municipal Income Fund Ii • National commercial banks

Pursuant to and in accordance with the Securities Exchange Act of 1934, as amended (the "Exchange Act"), and the rules and regulations thereunder, each party hereto hereby agrees to the joint filing, on behalf of each of them, of any filing required by such party under Section 13 or Section 16 of the Exchange Act or any rule or regulation thereunder (including any amendment, restatement, supplement, and/or exhibit thereto) with the Securities and Exchange Commission (and, if such security is registered on a national securities exchange, also with the exchange), and further agrees to the filing, furnishing, and/or incorporation by reference of this agreement as an exhibit thereto. This agreement shall remain in full force and effect until revoked by any party hereto in a signed writing provided to each other party hereto, and then only with respect to such revoking party.

Exhibit h.4 ADDITIONAL COMPENSATION AGREEMENT
Additional Compensation Agreement • June 25th, 2002 • Pimco New York Municipal Income Fund Ii • New York
ARTICLE 1 Agreement and Declaration of Trust and Principal Office
Bylaws • June 25th, 2002 • Pimco New York Municipal Income Fund Ii
WITNESSETH:
Investment Management Agreement • June 25th, 2002 • Pimco New York Municipal Income Fund Ii
ARTICLE 1 Agreement and Declaration of Trust and Principal Office
Bylaws • March 17th, 2025 • Pimco New York Municipal Income Fund Ii

FIRST: The Fund is authorized under Article III of the Fund’s Agreement and Declaration of Trust, as amended (which, as hereafter restated or amended from time to time, is herein called the “Declaration”), to issue an unlimited number of Preferred Shares (as defined below), par value $0.00001 per share.

AMENDED AND RESTATED BYLAWS of PIMCO NEW YORK MUNICIPAL INCOME FUND II (Amended and Restated as of August 1, 2025) ARTICLE 1 Agreement and Declaration of Trust and Principal Office
Bylaws • March 13th, 2026 • Pimco New York Municipal Income Fund Ii

FIRST: The Fund is authorized under Article III of the Fund's Agreement and Declaration of Trust, as amended (which, as hereafter restated or amended from time to time, is herein called the “Declaration”), to issue an unlimited number of Preferred Shares (as defined below), par value $0.00001 per share.

Custodian Agreement
Custodian Agreement • April 4th, 2025 • Pimco New York Municipal Income Fund Ii

This Agreement between PIMCO New York Municipal Income Fund II, a business trust organized and existing under the laws of Massachusetts (the “Fund”), and STATE STREET BANK and TRUST COMPANY, a Massachusetts trust company (the “CUSTODIAN”),

INVESTMENT MANAGEMENT AGREEMENT
Investment Management Agreement • April 4th, 2025 • Pimco New York Municipal Income Fund Ii

INVESTMENT MANAGEMENT AGREEMENT, made this 29th day of June, 2023, between PNI SPV I LLC, a Delaware limited liability company (the “Company”), and Pacific Investment Management Company LLC (“PIMCO”), a Delaware limited liability company, effective as of June 29, 2023 (the “Effective Date”). Capitalized terms not otherwise defined herein have the meanings specified in the Company’s Certificate of Formation and Limited Liability Company Agreement (as amended, restated or otherwise modified from time to time, the “Company’s Governing Documents”).

ARTICLE 1 Agreement and Declaration of Trust and Principal Office
Bylaws • July 28th, 2009 • Pimco New York Municipal Income Fund Ii
JOINT FILING AGREEMENT Pursuant to and in accordance with the Securities Exchange Act of 1934, as amended (the "Exchange Act"), and the rules and regulations thereunder, each party hereto hereby agrees to the joint filing, on behalf of each of them,...
Joint Filing Agreement • February 25th, 2026 • Pimco New York Municipal Income Fund Ii • National commercial banks

Pursuant to and in accordance with the Securities Exchange Act of 1934, as amended (the "Exchange Act"), and the rules and regulations thereunder, each party hereto hereby agrees to the joint filing, on behalf of each of them, of any filing required by such party under Section 13 or Section 16 of the Exchange Act or any rule or regulation thereunder (including any amendment, restatement, supplement, and/or exhibit thereto) with the Securities and Exchange Commission (and, if such security is registered on a national securities exchange, also with the exchange), and further agrees to the filing, furnishing, and/or incorporation by reference of this agreement as an exhibit thereto. This agreement shall remain in full force and effect until revoked by any party hereto in a signed writing provided to each other party hereto, and then only with respect to such revoking party.

WITNESSETH:
Portfolio Management Agreement • June 25th, 2002 • Pimco New York Municipal Income Fund Ii
JOINT FILING AGREEMENT
Joint Filing Agreement • August 27th, 2019 • Pimco New York Municipal Income Fund Ii • National commercial banks

Pursuant to and in accordance with the Securities Exchange Act of 1934, as amended (the "Exchange Act"), and the rules and regulations thereunder, each party hereto hereby agrees to the joint filing, on behalf of each of them, of any filing required by such party under Section 13 or Section 16 of the Exchange Act or any rule or regulation thereunder (including any amendment, restatement, supplement, and/or exhibit thereto) with the Securities and Exchange Commission (and, if such security is registered on a national securities exchange, also with the exchange), and further agrees to the filing, furnishing, and/or incorporation by reference of this agreement as an exhibit thereto. This agreement shall remain in full force and effect until revoked by any party hereto in a signed writing provided to each other party hereto, and then only with respect to such revoking party.

JOINT FILING AGREEMENT Pursuant to and in accordance with the Securities Exchange Act of 1934, as amended (the "Exchange Act"), and the rules and regulations thereunder, each party hereto hereby agrees to the joint filing, on behalf of each of them,...
Joint Filing Agreement • August 13th, 2025 • Pimco New York Municipal Income Fund Ii • Security brokers, dealers & flotation companies

Pursuant to and in accordance with the Securities Exchange Act of 1934, as amended (the "Exchange Act"), and the rules and regulations thereunder, each party hereto hereby agrees to the joint filing, on behalf of each of them, of any filing required by such party under Section 13 or Section 16 of the Exchange Act or any rule or regulation thereunder (including any amendment, restatement, supplement, and/or exhibit thereto) with the Securities and Exchange Commission (and, if such security is registered on a national securities exchange, also with the exchange), and further agrees to the filing, furnishing, and/or incorporation by reference of this agreement as an exhibit thereto. This agreement shall remain in full force and effect until revoked by any party hereto in a signed writing provided to each other party hereto, and then only with respect to such revoking party.

JOINT FILING AGREEMENT
Joint Filing Agreement • April 24th, 2024 • Pimco New York Municipal Income Fund Ii • National commercial banks

Pursuant to and in accordance with the Securities Exchange Act of 1934, as amended (the "Exchange Act"), and the rules and regulations thereunder, each party hereto hereby agrees to the joint filing, on behalf of each of them, of any filing required by such party under Section 13 or Section 16 of the Exchange Act or any rule or regulation thereunder (including any amendment, restatement, supplement, and/or exhibit thereto) with the Securities and Exchange Commission (and, if such security is registered on a national securities exchange, also with the exchange), and further agrees to the filing, furnishing, and/or incorporation by reference of this agreement as an exhibit thereto. This agreement shall remain in full force and effect until revoked by any party hereto in a signed writing provided to each other party hereto, and then only with respect to such revoking party.

TENDER OFFER AGREEMENT
Tender Offer Agreement • August 15th, 2023 • Pimco New York Municipal Income Fund Ii • New York

This Agreement (“Agreement”) is made and entered into as of the 11th day of August, 2023, by and among PIMCO Corporate Income & Opportunity Fund (“PTY”), PIMCO Municipal Income Fund (“PMF”), PIMCO Municipal Income Fund II (“PML”), PIMCO Municipal Income Fund III (“PMX”), PIMCO New York Municipal Income Fund (“PNF”), PIMCO New York Municipal Income Fund II (“PNI”) and PIMCO New York Municipal Income Fund III (“PYN” and, together with PTY, PMF, PML, PMX, PNF and PNI each, a “Fund” and, collectively, the “Funds”), Pacific Investment Management Company LLC (“PIMCO” and, together with the Funds, the “Fund Parties”) and Oppenheimer & Co., Inc. (“Oppenheimer”).