Skip to content

Latest commit

 

History

History
217 lines (157 loc) · 5.24 KB

Set-KustoBatchingPolicy.md

File metadata and controls

217 lines (157 loc) · 5.24 KB
external help file Module Name online version schema
PowerShellKusto.dll-Help.xml
PowerShellKusto
2.0.0

Set-KustoBatchingPolicy

SYNOPSIS

Sets the ingestion batching policy on a Kusto Database or Table.

SYNTAX

Set-KustoBatchingPolicy
    [[-Table] <String>]
    [[-Database] <String>]
    [-MaximumBatchingTimeSpan <TimeSpan>]
    [-MaximumNumberOfItems <Int32>]
    [-MaximumRawDataSizeMB <Int32>]
    [-OutputType <OutputType>]
    [-RequestProperties <ClientRequestProperties>]
    [<CommonParameters>]

DESCRIPTION

The Set-KustoBatchingPolicy cmdlet is used to alter the batching policy of a Database or specific Table on an Azure Data Explorer Cluster.

See Ingestion batching policy for more details.

EXAMPLES

Example 1: Set new ingestion batching policy for a Table

$params = @{
    MaximumBatchingTimeSpan = '00:00:30'
    MaximumNumberOfItems    = 500
    MaximumRawDataSizeMB    = 1024
}
Set-KustoBatchingPolicy -Table myTable -Database myDb @params

This example alters the ingestion batching policy of myTable on myDb Database.

Example 2: Set new ingestion batching policy for a Database

$params = @{
    MaximumBatchingTimeSpan = '00:00:30'
    MaximumNumberOfItems    = 500
    MaximumRawDataSizeMB    = 1024
}
Set-KustoBatchingPolicy @params

Tip

  • When -Table isn't specified, the ingestion batching policy is altered at Database level.
  • In this example, the database is specified by the database used when you called Connect-Kusto.

PARAMETERS

-Database

Specifies the name of the Database for which to alter the ingestion batching policy.

Note

If not supplied, the Database used will be the one specified when you called Connect-Kusto.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-MaximumBatchingTimeSpan

The time limit after which a batch is sealed. The default value is 5 minutes.

Type: TimeSpan
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: [timespan] '00:05:00'
Accept pipeline input: False
Accept wildcard characters: False

-MaximumNumberOfItems

The number of files defined as the limit after which a batch is sealed. This setting should only be set in scenarios where you can control the data units, such as blobs or files. In message-based scenarios, such as Event Hubs, IoT Hub, and Azure Cosmos DB change feed, consider using the Time and Size settings to control batching. The default value is 500 items.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: 500
Accept pipeline input: False
Accept wildcard characters: False

-MaximumRawDataSizeMB

The size limit after which a batch is sealed. The default value is 1024 MB.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: 1024
Accept pipeline input: False
Accept wildcard characters: False

-OutputType

Determines the output type this cmdlet will produce. The default value is PSObject.

Type: OutputType
Parameter Sets: (All)
Aliases:
Accepted values: PSObject, Json, Csv, DataTable, Html

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RequestProperties

Request properties control how a query or command executes and returns results. If no ClientRequestProperties object is supplied this cmdlet will use default properties.

Note

You can create new request properties using New-KustoClientRequestProperties.

Type: ClientRequestProperties
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Table

Specifies the Table for which to alter the ingestion batching policy.

Note

This parameter is optional. If not specified, the ingestion batching policy is altered on Database level.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 0
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

System.Management.Automation.PSObject

System.String

System.Data.DataTable

NOTES

RELATED LINKS

Ingestion batching policy

.alter database policy ingestionbatching command

Create a table's ingestion batching policy with the table batching policy wizard