< Back

Add-FileConfigurationSource

Sun Jan 19, 2020 6:27 pm

NAME 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.





PARAMETERS

-Path <String[]>

Specifies the path to the configuration file.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-Format <String>

Specifies the format the configuration file is written in.



Required? false

Position? 2

Default value StringData

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS





RELATED LINKS