New-AzExtensionDataSourceObject

Create an in-memory object for ExtensionDataSource.

Syntax

New-AzExtensionDataSourceObject
   -ExtensionName <String>
   [-ExtensionSetting <Hashtable>]
   [-InputDataSource <String[]>]
   [-Name <String>]
   [-Stream <String[]>]
   [<CommonParameters>]

Description

Create an in-memory object for ExtensionDataSource.

Examples

Example 1: Create extension data source object

New-AzExtensionDataSourceObject -ExtensionName AzureSecurityLinuxAgent -ExtensionSetting @{auditLevel='4'; maxQueueSize='1234'} -Name "myExtensionDataSource1" -Stream "Microsoft-OperationLog"

ExtensionName    : AzureSecurityLinuxAgent
ExtensionSetting : {
                     "maxQueueSize": "1234",
                     "auditLevel": "4"
                   }
InputDataSource  : 
Name             : myExtensionDataSource1
Stream           : {Microsoft-OperationLog}

This command creates a extension data source object.

Parameters

-ExtensionName

The name of the VM extension.

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

-ExtensionSetting

The extension settings. The format is specific for particular extension.

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

-InputDataSource

The list of data sources this extension needs data from.

Type:String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

A friendly name for the data source. This name should be unique across all data sources (regardless of type) within the data collection rule.

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

-Stream

List of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.

Type:String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

ExtensionDataSource