New-AzExtensionDataSourceObject
Create an in-memory object for ExtensionDataSource.
Syntax
Default (Default)
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.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ExtensionSetting
The extension settings. The format is specific for particular extension.
Parameter properties
Type: | Hashtable |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-InputDataSource
The list of data sources this extension needs data from.
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | 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.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | 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.
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.