Skip to content

Commit 3d98c62

Browse files
Baby GroguBaby Grogu
authored andcommitted
DSC Configuration Migration Tool module
1 parent 6483333 commit 3d98c62

File tree

4 files changed

+468
-0
lines changed

4 files changed

+468
-0
lines changed

powershell-helpers/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Introduction
2+
3+
The `powershell-adapters` folder contains helper modules that can be loaded into your PowerShell session to assist you in familiarizing yourself with new DSC concepts. To see the availability of helper modules, see the following list:
4+
5+
- **DSC Configuration Migration Module**: - Aids in the assistance of grabbing configuration documents written in PowerShell code and transform them to valid configuration documents for the DSC version 3 core engine (e.g. YAML or JSON).
6+
7+
## Getting started
8+
9+
To get started using the helper modules, you can follow the below steps. This example uses the _DSC Configuration Migration Tool_ to be loaded into the session:
10+
11+
1. Open a PowerShell terminal session
12+
2. Execute the following command: `Import-Module "powershell-helpers\dscConfigurationMigrationTool.psm1"`
13+
3. Discover examples using: `Get-Help ConvertTo-DscYaml`

powershell-helpers/dscCfgMigMod.psd1

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
@{
2+
3+
# Script module or binary module file associated with this manifest.
4+
RootModule = 'dscCfgMigMod.psm1'
5+
6+
# Version number of this module.
7+
moduleVersion = '0.0.1'
8+
9+
# ID used to uniquely identify this module
10+
GUID = '42bf8cb0-210c-4dac-8614-319d9287c6dc'
11+
12+
# Author of this module
13+
Author = 'Microsoft Corporation'
14+
15+
# Company or vendor of this module
16+
CompanyName = 'Microsoft Corporation'
17+
18+
# Copyright statement for this module
19+
Copyright = '(c) Microsoft Corporation. All rights reserved.'
20+
21+
# Description of the functionality provided by this module
22+
Description = 'PowerShell Desired State Configuration Migration Module helper'
23+
24+
# Modules that must be imported into the global environment prior to importing this module
25+
RequiredModules = @('powershell-yaml')
26+
27+
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
28+
FunctionsToExport = @(
29+
'ConvertTo-DscJson'
30+
'ConvertTo-DscYaml'
31+
)
32+
33+
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
34+
CmdletsToExport = @()
35+
36+
# Variables to export from this module
37+
VariablesToExport = @()
38+
39+
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
40+
AliasesToExport = @()
41+
42+
PrivateData = @{
43+
PSData = @{
44+
ProjectUri = 'https://github.com/PowerShell/dsc'
45+
}
46+
}
47+
}

0 commit comments

Comments
 (0)