Skip to content

Commit 17ed47f

Browse files
authored
Fix parameter name (#252)
1 parent 1835448 commit 17ed47f

File tree

22 files changed

+124
-124
lines changed

22 files changed

+124
-124
lines changed

dsc/docs-conceptual/dsc-1.1/configurations/add-parameters-to-a-configuration.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
ms.date: 12/12/2018
2+
ms.date: 03/09/2024
33
keywords: dsc,powershell,resource,gallery,setup
44
title: Add Parameters to a Configuration
55
description: DSC Configurations can be parameterized to allow more dynamic configurations based on user input.
@@ -18,7 +18,7 @@ This example starts with a basic Configuration that configures the "Spooler" ser
1818
Configuration TestConfig
1919
{
2020
# It is best practice to explicitly import any required resources or modules.
21-
Import-DSCResource -Module PSDesiredStateConfiguration
21+
Import-DSCResource -ModuleName PSDesiredStateConfiguration
2222
2323
Node localhost
2424
{
@@ -112,7 +112,7 @@ Configuration TestConfig
112112
)
113113
114114
# It is best practice to explicitly import any required resources or modules.
115-
Import-DSCResource -Module PSDesiredStateConfiguration
115+
Import-DSCResource -ModuleName PSDesiredStateConfiguration
116116
117117
Node $ComputerName
118118
{
@@ -150,7 +150,7 @@ Configuration TestConfig
150150
)
151151
152152
# It is best practice to explicitly import any required resources or modules.
153-
Import-DSCResource -Module PSDesiredStateConfiguration
153+
Import-DSCResource -ModuleName PSDesiredStateConfiguration
154154
155155
Node $ComputerName
156156
{
@@ -237,7 +237,7 @@ Configuration TestConfig
237237
)
238238
239239
# It is best practice to explicitly import any required resources or modules.
240-
Import-DSCResource -Module PSDesiredStateConfiguration
240+
Import-DSCResource -ModuleName PSDesiredStateConfiguration
241241
242242
Node $ComputerName
243243
{

dsc/docs-conceptual/dsc-1.1/configurations/crossNodeDependencies.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
ms.date: 12/12/2018
2+
ms.date: 03/09/2024
33
keywords: dsc,powershell,configuration,setup
44
title: Specifying cross-node dependencies
55
description: DSC provides special resources that are used in configurations to specify dependencies on configurations on other nodes.
@@ -86,7 +86,7 @@ will typically want to specify a **RetryCount** and **RetryIntervalSec**.
8686
```powershell
8787
Configuration JoinDomain
8888
{
89-
Import-DscResource -Module xComputerManagement, xActiveDirectory
89+
Import-DSCResource -ModuleName xComputerManagement, xActiveDirectory
9090
9191
Node myDC
9292
{

dsc/docs-conceptual/dsc-1.1/configurations/reboot-a-node.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
ms.date: 01/17/2019
2+
ms.date: 03/09/2024
33
keywords: dsc,powershell,configuration,setup
44
title: Reboot a Node
55
description: Many configuration settings can require the computer to be rebooted for the configuration change to be complete. This article explains how to manage reboots in a configuration.
@@ -98,8 +98,8 @@ Configuration Example
9898
$ExchangeAdminCredential
9999
)
100100
101-
Import-DscResource -Module xExchange
102-
Import-DscResource -Module ComputerManagementDsc
101+
Import-DSCResource -ModuleName xExchange
102+
Import-DSCResource -ModuleName ComputerManagementDsc
103103
104104
Node $AllNodes.NodeName
105105
{

dsc/docs-conceptual/dsc-1.1/configurations/separatingEnvData.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
ms.date: 06/12/2017
2+
ms.date: 03/09/2024
33
keywords: dsc,powershell,configuration,setup
44
title: Separating configuration and environment data
55
description: It can be useful to separate the data used in a DSC configuration from the configuration itself by using configuration data. By doing this, you can use a single configuration for multiple environments.
@@ -155,9 +155,9 @@ Let's define the configuration in a file named `MyWebApp.ps1`:
155155
```powershell
156156
Configuration MyWebApp
157157
{
158-
Import-DscResource -Module PSDesiredStateConfiguration
159-
Import-DscResource -Module xSqlPs
160-
Import-DscResource -Module xWebAdministration
158+
Import-DSCResource -ModuleName PSDesiredStateConfiguration
159+
Import-DSCResource -ModuleName xSqlPs
160+
Import-DSCResource -ModuleName xWebAdministration
161161
162162
Node $AllNodes.Where{$_.Role -contains "MSSQL"}.NodeName
163163
{

dsc/docs-conceptual/dsc-1.1/getting-started/lnxGettingStarted.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
ms.date: 06/04/2021
2+
ms.date: 03/09/2024
33
keywords: dsc,powershell,configuration,setup
44
title: Get started with Desired State Configuration (DSC) for Linux
55
description: This topic explains how to get started using PowerShell Desired State Configuration (DSC) for Linux.
@@ -52,10 +52,10 @@ DSC for Linux is available for download from the
5252
[PowerShell-DSC-for-Linux](https://github.com/Microsoft/PowerShell-DSC-for-Linux/releases/tag/v1.2.1-0)
5353
repository in the repository.
5454

55-
To install DSC, install the package that is appropriate for your Linux system (.rpm or .deb),
55+
To install DSC, install the package that is appropriate for your Linux system (.rpm or .deb),
5656
OpenSSL version, and architecture (x64/x86). RPM packages are appropriate for CentOS, Red Hat
5757
Enterprise Linux, SUSE Linux Enterprise Server, and Oracle Linux. DEB packages are appropriate
58-
for Debian GNU/Linux and Ubuntu Server.
58+
for Debian GNU/Linux and Ubuntu Server.
5959

6060
> [!NOTE]
6161
> Support for DSC Linux OpenSSL up to version 1.1. To determine the installed OpenSSL version,
@@ -87,7 +87,7 @@ document for a Linux computer using Windows PowerShell.
8787
```powershell
8888
Configuration ExampleConfiguration{
8989
90-
Import-DSCResource -Module nx
90+
Import-DSCResource -ModuleName nx
9191
9292
}
9393
```
@@ -97,7 +97,7 @@ document for a Linux computer using Windows PowerShell.
9797
```powershell
9898
Configuration ExampleConfiguration
9999
{
100-
Import-DscResource -Module nx
100+
Import-DSCResource -ModuleName nx
101101
102102
Node "linuxhost.contoso.com"
103103
{

dsc/docs-conceptual/dsc-1.1/overview/DscForEngineers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
ms.date: 10/13/2017
2+
ms.date: 03/09/2024
33
keywords: dsc,powershell,configuration,setup
44
title: Desired State Configuration Overview for Engineers
55
description: This document is intended for developer and operations teams to understand the benefits of PowerShell Desired State Configuration (DSC).
@@ -92,7 +92,7 @@ DSC allows you to say what you want done, and the underlying logic is abstracted
9292
# A configuration is a special kind of PowerShell function
9393
Configuration Sample_Share
9494
{
95-
Import-DscResource -Module xSmbShare
95+
Import-DSCResource -ModuleName xSmbShare
9696
# Nodes are the endpoint we wish to configure
9797
# A Configuration block can have zero or more Node blocks
9898
Node $NodeName

dsc/docs-conceptual/dsc-1.1/reference/resources/linux/lnxArchiveResource.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
ms.date: 07/17/2020
2+
ms.date: 03/09/2024
33
ms.topic: reference
44
title: DSC for Linux nxArchive Resource
55
description: DSC for Linux nxArchive Resource
@@ -45,7 +45,7 @@ The following example shows how to use the **nxArchive** resource to ensure that
4545
archive file called `website.tar` exist and are extracted at a given destination.
4646

4747
```powershell
48-
Import-DSCResource -Module nx
48+
Import-DSCResource -ModuleName nx
4949
5050
nxFile SyncArchiveFromWeb
5151
{

dsc/docs-conceptual/dsc-1.1/reference/resources/linux/lnxEnvironmentResource.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
ms.date: 07/17/2020
2+
ms.date: 03/09/2024
33
ms.topic: reference
44
title: DSC for Linux nxEnvironment Resource
55
description: DSC for Linux nxEnvironment Resource
@@ -54,7 +54,7 @@ The following example shows how to use the **nxEnvironment** resource to ensure
5454
**TestEnvironmentVariable** is not present, it will be created.
5555

5656
```powershell
57-
Import-DSCResource -Module nx
57+
Import-DSCResource -ModuleName nx
5858
5959
nxEnvironment EnvironmentExample
6060
{

dsc/docs-conceptual/dsc-1.1/reference/resources/linux/lnxFileLineResource.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
ms.date: 07/17/2020
2+
ms.date: 03/09/2024
33
ms.topic: reference
44
title: DSC for Linux nxFileLine Resource
55
description: DSC for Linux nxFileLine Resource
@@ -41,7 +41,7 @@ This example demonstrates using the **nxFileLine** resource to configure the `/e
4141
ensuring that the user: monuser is configured to not requiretty.
4242

4343
```powershell
44-
Import-DscResource -Module nx
44+
Import-DSCResource -ModuleName nx
4545
4646
nxFileLine DoNotRequireTTY
4747
{

dsc/docs-conceptual/dsc-1.1/reference/resources/linux/lnxFileResource.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
ms.date: 07/17/2020
2+
ms.date: 03/09/2024
33
ms.topic: reference
44
title: DSC for Linux nxFile Resource
55
description: DSC for Linux nxFile Resource
@@ -67,7 +67,7 @@ break characters:
6767
with the web or ftp URL to the file.
6868

6969
```powershell
70-
Import-DSCResource -Module nx
70+
Import-DSCResource -ModuleName nx
7171
7272
Node $Node
7373
{
@@ -86,7 +86,7 @@ break characters:
8686
property to use the Linux line-break character.
8787

8888
```powershell
89-
Import-DSCResource -Module nx
89+
Import-DSCResource -ModuleName nx
9090
9191
Node $Node
9292
{
@@ -112,7 +112,7 @@ break characters:
112112
Return $outputStr
113113
}
114114
115-
Import-DSCResource -Module nx
115+
Import-DSCResource -ModuleName nx
116116
117117
Node $Node
118118
{
@@ -139,7 +139,7 @@ The following example ensures that the directory `/opt/mydir` exists, and that a
139139
contents exists this directory.
140140

141141
```powershell
142-
Import-DSCResource -Module nx
142+
Import-DSCResource -ModuleName nx
143143
144144
Node $node {
145145
nxFile DirectoryExample

0 commit comments

Comments
 (0)