external help file | Module Name | online version | schema |
---|---|---|---|
PowerShellKusto.dll-Help.xml |
PowerShellKusto |
2.0.0 |
Creates a new IngestionMapping
object.
New-KustoIngestionMapping
[[-Kind] <IngestionMappingKind>]
[-Reference <String>]
[[-Columns] <ColumnMapping[]>]
[<CommonParameters>]
The New-KustoIngestionMapping
cmdlet is used to create a new object of type IngestionMapping
that can be later on passed as argument to the Invoke-KustoIngestFromStorage
, Invoke-KustoIngestFromStream
and Set-KustoIngestionMapping
commands.
$columns = @(
New-KustoColumnMapping ....
New-KustoColumnMapping ....
New-KustoColumnMapping ....)
$mapping = New-KustoIngestionMapping -Columns $columns -Kind Json
Specifies an array of ColumnMapping
objects to be used with the ingestion mapping. See New-KustoColumnMapping
for details on how to create new column mappings.
Type: ColumnMapping[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the type of mapping. Default value is Csv
.
Type: IngestionMappingKind
Parameter Sets: (All)
Aliases:
Accepted values: Unknown, Csv, Json, Avro, Parquet, SStream, Orc, ApacheAvro, W3CLogFile
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
A value that indicates how to map data from the source file to the actual columns in the table using a named mapping policy object.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters. For more information, see about_CommonParameters.