"Desired State Configuration now works boths ways! Richard talks to fellow Canadian Nik Charlebois, a Microsoft Premier Field Engineer, about his work building ReverseDSC. The open source tool is available in the PowerShell Gallery, that can create a copy of the configuration of a running system to be compared with desired state."
It supports Linux also!