Share via


Get-SCSPFEventRegistration

Gets the event used to automate runbooks.

Syntax

Empty (Default)

Get-SCSPFEventRegistration
    [<CommonParameters>]

FromEventRegistrationResourceActionEnabledParameterSetName

Get-SCSPFEventRegistration
    [-Resource <String>]
    [-Action <EventRegistrationActionNames>]
    [<CommonParameters>]

Description

The Get-SCSPFEventRegistration cmdlet gets an event registered to automate a runbook as performed by Service Management Automation.

Examples

Example 1: Get an event registration by name

PS C:\>$EventBackup = Get-SCSPFEventRegistration -Action "Backup"

This command gets an event with the Action parameter and stores it in the $EventBackup variable.

Parameters

-Action

Specifies the name of the event. The acceptable values for this parameter are:

  • Action_Pause
  • Action_Publish
  • Action_Repair
  • Action_Restart
  • Action_Resume
  • Action_Scale
  • Action_Shutdown
  • Action_Start
  • Action_Stop
  • Action_Unpublish
  • Create
  • Delete
  • Update
  • UpdateStatus

Parameter properties

Type:Microsoft.SystemCenter.Foundation.Cmdlet.EventRegistrationActionNames
Default value:None
Accepted values:Create, Update, Delete, Action_Pause, Action_Publish, Action_Repair, Action_Restart, Action_Resume, Action_Scale, Action_Shutdown, Action_Start, Action_Stop, Action_Unpublish, UpdateStatus
Supports wildcards:False
DontShow:False

Parameter sets

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

-Resource

Specifies the path to the resource.

Parameter properties

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

Parameter sets

FromEventRegistrationResourceActionEnabledParameterSetName
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.

Inputs

None

Outputs

System.Object