Property and Equipment, net - Schedule of Property and Equipment, net (Details) - USD ($) $ in Thousands |
Dec. 31, 2016 |
Dec. 31, 2015 |
|---|---|---|
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment, gross | $ 86,238 | $ 66,408 |
| Less: Accumulated depreciation and amortization | (37,767) | (21,542) |
| Total solar energy systems, net | 48,471 | 44,866 |
| Machinery and Equipment | ||
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment, gross | 3,491 | 2,808 |
| Leasehold Improvements, Furniture and Computer hardware | ||
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment, gross | 13,407 | 10,669 |
| Vehicles | ||
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment, gross | 44,788 | 33,048 |
| Computer Software | ||
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment, gross | $ 24,552 | $ 19,883 |