< Back

New-AzureRmOperationalInsightsWindowsEventDataSource

Thu Apr 04, 2019 5:40 am

NAME New-AzureRmOperationalInsightsWindowsEventDataSource



SYNOPSIS

Collects event logs from computers that run the Windows operating system.





SYNTAX

New-AzureRmOperationalInsightsWindowsEventDataSource [-ResourceGroupName] <String> [-WorkspaceName] <String> [-Name] <String> [-EventLogName]

<String> [-CollectErrors] [-CollectInformation] [-CollectWarnings] [-DefaultProfile <IAzureContextContainer>] [-Force] [-Confirm] [-WhatIf]

[<CommonParameters>]



New-AzureRmOperationalInsightsWindowsEventDataSource [-Workspace] <PSWorkspace> [-Name] <String> [-EventLogName] <String> [-CollectErrors]

[-CollectInformation] [-CollectWarnings] [-DefaultProfile <IAzureContextContainer>] [-Force] [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The New-AzureRmOperationalInsightsWindowsEventDataSource cmdlet adds a data source that collects Windows event logs from connected computers that

run the Windows operating system in Azure Operational Insights.





PARAMETERS

-CollectErrors [<SwitchParameter>]

Indicates that Operational Insights collects error messages.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-CollectInformation [<SwitchParameter>]

Indicates that Operational Insights collects information messages.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-CollectWarnings [<SwitchParameter>]

Indicates that Operational Insights collects warning messages.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-EventLogName <String>

Specifies the name of the event log.



Required? true

Position? 4

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Force [<SwitchParameter>]

Forces the command to run without asking for user confirmation.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Specifies a name for the data source.



Required? true

Position? 3

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

Specifies the name of a resource group that contains computers.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Workspace <PSWorkspace>

Specifies a workspace in which this cmdlet operates.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-WorkspaceName <String>

Specifies the name of a workspace in which this cmdlet operates.



Required? true

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

PSWorkspace

Parameter 'Workspace' accepts value of type 'PSWorkspace' from the pipeline





OUTPUTS

Microsoft.Azure.Commands.OperationalInsights.Models.PSDataSource







NOTES









1:















RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... datasource