Skip to content

Latest commit

 

History

History
97 lines (72 loc) · 2.11 KB

New-AzIisLogsDataSourceObject.md

File metadata and controls

97 lines (72 loc) · 2.11 KB
external help file Module Name online version schema
Az.DataCollectionRule.psm1-help.xml
Az.Monitor
2.0.0

New-AzIisLogsDataSourceObject

SYNOPSIS

Create an in-memory object for IisLogsDataSource.

SYNTAX

New-AzIisLogsDataSourceObject -Stream <String[]> [-LogDirectory <String[]>] [-Name <String>]
 [<CommonParameters>]

DESCRIPTION

Create an in-memory object for IisLogsDataSource.

EXAMPLES

Example 1: Create iis logs data source object

New-AzIisLogsDataSourceObject -Stream "Microsoft-W3CIISLog" -LogDirectory "c:\\test" -Name "iisLogsDataSource"
LogDirectory Name              Stream
------------ ----              ------
{c:\\test}   iisLogsDataSource {Microsoft-W3CIISLog}

This command creates iis logs data source object.

PARAMETERS

-LogDirectory

Absolute paths file location.

Type: System.String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
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: System.String
Parameter Sets: (All)
Aliases:

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

-Stream

IIS streams.

Type: System.String[]
Parameter Sets: (All)
Aliases:

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IisLogsDataSource

NOTES

RELATED LINKS