{"id":20165841,"url":"https://github.com/duffney/invokedsc","last_synced_at":"2025-08-28T08:08:00.521Z","repository":{"id":82666145,"uuid":"87433820","full_name":"duffney/InvokeDSC","owner":"duffney","description":"PowerShell module for Invoking DSC from json","archived":false,"fork":false,"pushed_at":"2017-12-28T19:00:25.000Z","size":99,"stargazers_count":17,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-03T20:59:26.847Z","etag":null,"topics":["dsc","powershell","powershell-dsc"],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/duffney.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-06T13:41:58.000Z","updated_at":"2024-12-03T17:57:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"c31f0fe0-5243-40d8-af7f-120b66cedeb8","html_url":"https://github.com/duffney/InvokeDSC","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/duffney/InvokeDSC","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duffney%2FInvokeDSC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duffney%2FInvokeDSC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duffney%2FInvokeDSC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duffney%2FInvokeDSC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duffney","download_url":"https://codeload.github.com/duffney/InvokeDSC/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duffney%2FInvokeDSC/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272467125,"owners_count":24939523,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-28T02:00:10.768Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dsc","powershell","powershell-dsc"],"created_at":"2024-11-14T00:39:17.823Z","updated_at":"2025-08-28T08:08:00.512Z","avatar_url":"https://github.com/duffney.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build status](https://ci.appveyor.com/api/projects/status/0ybs7owjkn14ro35?svg=true)](https://ci.appveyor.com/project/Duffney/invokedsc)\n\n# InvokeDSC\nInvokeDSC is a JSON based DSL for creating and managing infrastructure with DSC resources.\n\n## Overview\nAllows you to declaratively define your infrastructure within JSON configuration documents. InvokeDSC converts those json documents to PSCustomObjects that Invoke-DSCResource can consume. By doing this it removes the need for PowerShell configuration documents and the .mof documents it generates. Which results in more flexibility and removes the need of a single .mof document that declares the end state of your infrastructure.\n\n\n![test run output](doc/readme/InvokeDSC.jpg)\n\n\n\n## JSON Configuration File\n\n```JSON\n{\n    \"Modules\":{\n        \"xPSDesiredStateConfiguration\":\"8.0.0.0\"\n    },\n   \"DSCResourcesToExecute\":{\n        \"DevOpsGroup\":{\n            \"dscResourceName\":\"xGroup\",\n            \"GroupName\":\"DevOps\",\n            \"ensure\":\"Present\"\n        }\n   }\n}\n```\n\n## Commands\n\n* ConvertTo-Dsc\n* Invoke-Dsc\n* Invoke-DscConfiguration\n\n## Examples\n\n\n### Invoke-DscConfiguration\n\n```PowerShell\nInvoke-DscConfiguration -Path 'c:\\config.json'\n```\n\n```PowerShell\n$config = @\"\n{\n    \"Modules\":{\n        \"xPSDesiredStateConfiguration\":\"8.0.0.0\"\n    },\n   \"DSCResourcesToExecute\":{\n        \"DevOpsGroup\":{\n            \"dscResourceName\":\"xGroup\",\n            \"GroupName\":\"DevOps\",\n            \"ensure\":\"Present\"\n        }\n   }\n}\n\"@\n\nInvoke-DscConfiguration -InputObject $config\n```\n\n\n### ConvertTo-Dsc\n\n```PowerShell\nConvertTo-Dsc -Path 'c:\\json\\example.json'\n```\n\n```PowerShell\n$config = @\"\n{\n    \"Modules\":{\n        \"xPSDesiredStateConfiguration\":\"8.0.0.0\"\n    },\n   \"DSCResourcesToExecute\":{\n        \"DevOpsGroup\":{\n            \"dscResourceName\":\"xGroup\",\n            \"GroupName\":\"DevOps\",\n            \"ensure\":\"Present\"\n        }\n   }\n}\n\"@\n\nConvertTo-Dsc -InputObject $config\n```\n\n### Invoke-Dsc\n\n```powershell\n$r = ConvertTo-Dsc -Path 'c:\\config.json'\nInvoke-Dsc -Resource $r\n```\n\n\n### Credits\n\n[POSHOrigin](https://github.com/devblackops/POSHOrigin) by [Brandon Olin](https://github.com/devblackops)\n\n\n[Ansible-win_dsc](https://github.com/trondhindenes/Ansible-win_dsc) by [Trond Hindenes](https://github.com/trondhindenes)\n\n\n[Steven Murawski](https://github.com/smurawski)\n\n\n[Jaigene Kang](https://twitter.com/prattlesnake)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduffney%2Finvokedsc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduffney%2Finvokedsc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduffney%2Finvokedsc/lists"}