external help file | Module Name | online version | schema |
---|---|---|---|
DevOpsKitDsc-help.xml |
DevOpsKitDsc |
2.0.0 |
Create a collection.
New-DOKDscCollection [-WorkspacePath <String>] [-Name] <String> [[-Path] <String>]
[-Options <CollectionOption>] [-Nodes <String[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
New-DOKDscCollection -Workspace <WorkspaceSetting> [-Name] <String> [[-Path] <String>]
[-Options <CollectionOption>] [-Nodes <String[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
Create a specific collection in the workspace.
PS C:\> New-DOKDscCollection -Name 'Test';
Create collection called Test using the default configuration script template.
PS C:\> New-DOKDscCollection -Name 'Test' -Path '.\src\Configuration\SharePoint.ps1';
Create a collection using an existing configuration script.
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The name of the collection to create.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Set one or more node paths to check for node data when building a collection.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Optionally supply additional options to set on the collection. Options can be set or modified later using the Set-DOKDscCollectionOption
cmdlet.
Type: CollectionOption
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
A path to an existing configuration script file.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
A workspace settings to use instead of reading from disk.
Type: WorkspaceSetting
Parameter Sets: Workspace
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The path to an existing workspace. If no value is specified the current working path is used.
Type: String
Parameter Sets: Path
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).