Attached files

file filename
S-1/A - AMENDMENT NO. 5 TO FORM S-1 - SOLARCITY CORPd229977ds1a.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 April 26, 2012, in Amendment No. 5 to the Registration Statement (Form S-1 No. 333-184317) and related Prospectus of SolarCity Corporation for the registration of 11,500,000 shares of its common stock.

/s/ Ernst & Young LLP

Redwood City, California

December 12, 2012