Attached files

file filename
S-1/A - AMENDMENT NO. 2 TO FORM S-1 - SOLARCITY CORPd229977ds1a.htm
EX-10.4 - 2012 EMPLOYEE STOCK PURCHASE PLAN AND FORM OF AGREEMENTS USED THEREUNDER - SOLARCITY CORPd229977dex104.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. 2 to the Registration Statement (Form S-1 No. 333-184317) and related Prospectus of SolarCity Corporation for the registration of 10,065,012 shares of its common stock.

/s/ Ernst & Young LLP

Redwood City, California

December 3, 2012