Attached files

file filename
S-1 - FORM S-1 - SOLARCITY CORPd595166ds1.htm
EX-5.1 - EX-5.1 - SOLARCITY CORPd595166dex51.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 the Registration Statement on Form S-1 and related Prospectus of SolarCity Corporation for the registration of 3,674,565 shares of its common stock.

/s/ Ernst & Young LLP

Redwood City, California

September 6, 2013