Get-AzRecoveryServicesAsrEvent
Gets details of Azure Site Recovery events in the vault.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
Get-AzRecoveryServicesAsrEvent
[-AffectedObjectFriendlyName <String>]
[-Fabric <ASRFabric>]
[-Severity <String>]
[-StartTime <DateTime>]
[-EndTime <DateTime>]
[-EventType <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzRecoveryServicesAsrEvent
-ResourceId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzRecoveryServicesAsrEvent
-FabricId <String>
[-AffectedObjectFriendlyName <String>]
[-Severity <String>]
[-StartTime <DateTime>]
[-EndTime <DateTime>]
[-EventType <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzRecoveryServicesAsrEvent
-Name <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzRecoveryServicesAsrEvent gets the list of events in the vault based on the specified selection filters.
Examples
Example 1
Get-AzRecoveryServicesAsrEvent
List of all events.
Example 2
Get-AzRecoveryServicesAsrEvent -EventName "VmMonitoringEvent;9091897569816476200_84576304-bafc-4714-8ba6-197a5d09d84f"
AffectedObjectFriendlyName : V2A-W2K12-400
Description : Virtual machine health is in Critical state.
EventCode : SRSVMHealthChanged
EventSpecificDetails :
EventType : AgentHealth
FabricId : /Subscriptions/xxxxxxxxxxxxxxxxx/resourceGroups/xxxxxxxxxxxx/providers/Microsoft.RecoveryServices/vaults/xxxxxxxxxxxxxxxx/replicationFabrics/xxxxxxxxxxxx
HealthErrors : {}
Name : VmMonitoringEvent;9091897569816476200_84576304-bafc-4714-8ba6-197a5d09d84f
ProviderSpecificEventDetails : Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRInMageAzureV2EventDetails
Severity : Critical
TimeOfOccurence : 8/17/2017 12:31:43 PM
Get event by name.
Example 3
Get-AzRecoveryServicesAsrEvent -AffectedObjectName xxxxxxxxxxxxx
List of event for affected Object.
Example 4
Get-AzRecoveryServicesAsrEvent -AffectedObjectName xxxxxxxxxxxx -StartTime "8/17/2017 12:31:40 PM" -EndTime "8/17/2017 12:31:44 PM" -Severity Critical -EventType VmHealth
List of event between time start time and end time , severity critical and health type VmHealth.
Parameters
Specifies AffectedObject FriendlyName for the search.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The credentials, account, tenant, and subscription used for communication with azure.
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Specifies the end time of the search window. Use this parameter to get only those events that have occurred before the specified time.
| Type: | DateTime |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Filter events by the event type.
| Type: | String |
| Accepted values: | VmHealth, ServerHealth, AgentHealth |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Filter events by the specified fabric.
| Type: | ASRFabric |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Specifies the fabricId to filter.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Specifies name of the event for search.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Specifies the event ResourceId of event.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Event severity to filter on.
| Type: | String |
| Accepted values: | Critical, Warning, OK, Unknown |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Specifies the start time of the search window. Use this parameter to get only those events that have occurred after the specified time.
| Type: | DateTime |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |