Add-FileConfigurationSource
SYNOPSIS
Adds a configuration source from the specified file.
SYNTAX
Add-FileConfigurationSource [-Path] <String[]> [[-Format] <String>] [<CommonParameters>]
DESCRIPTION
Adds a configuration source from the specified file. Files can be formatted in three different ways: StringData - The file will be imported and passed to ConvertFrom-StringData Json - The file can be parsed using ConvertFrom-Json. Csv - The file can be parsed using Import-Csv. Only the first row will be read.
EXAMPLES
Example 1
PS C:\> {{ Add example code here }}
{{ Add example description here }}
PARAMETERS
-Path
Specifies the path to the configuration file.
Type: System.String[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-Format
Specifies the format the configuration file is written in.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: StringData
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.