Skip to content

Latest commit

 

History

History
111 lines (77 loc) · 2.67 KB

New-KustoIngestionMapping.md

File metadata and controls

111 lines (77 loc) · 2.67 KB
external help file Module Name online version schema
PowerShellKusto.dll-Help.xml
PowerShellKusto
2.0.0

New-KustoIngestionMapping

SYNOPSIS

Creates a new IngestionMapping object.

SYNTAX

New-KustoIngestionMapping
    [[-Kind] <IngestionMappingKind>]
    [-Reference <String>]
    [[-Columns] <ColumnMapping[]>]
    [<CommonParameters>]

DESCRIPTION

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.

EXAMPLES

Example 1: Create a new Ingestion Mapping object

$columns = @(
    New-KustoColumnMapping ....
    New-KustoColumnMapping ....
    New-KustoColumnMapping ....)

$mapping = New-KustoIngestionMapping -Columns $columns -Kind Json

PARAMETERS

-Columns

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

-Kind

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

-Reference

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

CommonParameters

This cmdlet supports the common parameters. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

Kusto.Ingest.IngestionMapping

NOTES

RELATED LINKS

.create ingestion mapping command

Ingestion properties