Attached files

file filename
EX-5.1 - EX-5.1 - SOLARCITY CORPd553628dex51.htm
EX-10.12 - EX-10.12 - SOLARCITY CORPd553628dex1012.htm
S-1/A - AMENDMENT NO. 2 TO FORM S-1 - SOLARCITY CORPd553628ds1a.htm

Exhibit 23.1

Consent of Independent Registered Public Accounting Firm

We consent to the reference to our firm under the caption “Experts” and to the use of our report dated March 27, 2013, in Amendment No. 2 to the Registration Statement (Form S-1 No. 333-189404) and related Prospectus of SolarCity Corporation for the offering of its convertible senior notes.

/s/ Ernst & Young LLP

Redwood City, California

July 31, 2013