Edit

Share via


New-AzSecurityAutomationSourceObject

Creates security automation source object

Syntax

SecurityAutomationSource (Default)

New-AzSecurityAutomationSourceObject
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

SecurityAutomationActionLogicApp

New-AzSecurityAutomationSourceObject
    -EventSource <String>
    -RuleSet <PSSecurityAutomationRuleSet[]>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

Creates security automation source object

Examples

Example 1

New-AzSecurityAutomationSourceObject -EventSource 'Assessments' -RuleSet $ruleSet

Creates security automation source object

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-EventSource

The triggered Logic App Azure Resource ID. This can also reside on other subscriptions, given that you have permissions to trigger the Logic App

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

SecurityAutomationActionLogicApp
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-RuleSet

The Logic App trigger URI endpoint (it will not be included in any response)

Parameter properties

Type:

PSSecurityAutomationRuleSet[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

SecurityAutomationActionLogicApp
Position:Named
Mandatory:True
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.

Inputs

None

Outputs

PSSecurityAutomationSource