Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

New-RASNotification

SYNOPSIS

Creates new notification.

SYNTAX

New-RASNotification
 [-Type] {Unknown | CPUEvent | MemoryEvent | RDSHConnectedSessionEvent | RDSHDisconnectedSessionEvent | RDSHConnectedSessionEventPerc | RDSHDisconnectedSessionEventPerc | AVDActiveSessionsUtilization | AVDDisconnectedSessionsUtilization | TunneledSess | SecureGatewayConnectionLimits | SecureGatewayClientLimitsRejected | SecureGatewayClientLimitsBlocked | SecureGatewayClientLimitsUnblocked | ConnectionBrokerConnectionLimits | ConnectionBrokerClientLimitsRejected | ConnectionBrokerClientLimitsBlocked | ConnectionBrokerClientLimitsUnblocked | FailedTunneledSess | FailedTunneledSessTenantBroker | Agent | License | Authentication | PubItem | Template | VDI | Tenant}
 [-AllServers <bool>] [-Direction {RisesAbove | LowersBelow}] [-EnableGracePeriod <bool>]
 [-EnableInterval <SwitchParameter>] [-ExecuteScript <SwitchParameter>] [-GracePeriod <uint>]
 [-Interval <uint>] [-Recipients <string[]>] [-ScriptId <uint>] [-ScriptObject <NotificationScript>]
 [-SendEmail <bool>] [-SiteId <uint>] [-TargetIds <List`1>]
 [-TargetType {AllServers | RDSHostPools | VDIHostPools | AVDHostPools | RemotePCs | SecureGateways | Brokers | EnrollmentServers | ForceAllAgents}]
 [-Threshold <uint>] [-WaitUntilRecovered <SwitchParameter>] [<CommonParameters>]

DESCRIPTION

Creates notifications such as license activation, agent disconect/connect etc.

EXAMPLES

Example 1

Creates a new notification for agent events.

Example 2

Creates new notification which notifies if the number of session exceeds 22.

PARAMETERS

-Type

Notification type.

Possible values: Unknown, CPUEvent, MemoryEvent, RDSHConnectedSessionEvent, RDSHDisconnectedSessionEvent, RDSHConnectedSessionEventPerc, RDSHDisconnectedSessionEventPerc, AVDActiveSessionsUtilization, AVDDisconnectedSessionsUtilization, TunneledSess, SecureGatewayConnectionLimits, SecureGatewayClientLimitsRejected, SecureGatewayClientLimitsBlocked, SecureGatewayClientLimitsUnblocked, ConnectionBrokerConnectionLimits, ConnectionBrokerClientLimitsRejected, ConnectionBrokerClientLimitsBlocked, ConnectionBrokerClientLimitsUnblocked, FailedTunneledSess, FailedTunneledSessTenantBroker, Agent, License, Authentication, PubItem, Template, VDI, Tenant

Type reference: NotificationType

-SiteId

Site ID where notification event is setup.

Current site ID is used if siteId is omitted.

-GracePeriod

Grace period after the notification was done (minutes).

-EnableGracePeriod

Enable/Disable grace period.

-Recipients

Recipients to notify of the event.

-SendEmail

Enable/Disable email notification.

-ScriptId

Script to execute which has this ID.

-ScriptObject

Script Object.

Type reference: NotificationScript

-ExecuteScript

-Interval

Invocation interval (minutes).

-EnableInterval

Enable/Disable notification intervals.

-WaitUntilRecovered

Wait until recovered.

-AllServers

All servers in site.

-TargetType

Target type.

Possible values: AllServers, RDSHostPools, VDIHostPools, AVDHostPools, RemotePCs, SecureGateways, Brokers, EnrollmentServers, ForceAllAgents

Type reference: TargetType

-TargetIds

Target Ids.

-Threshold

Tolerance value which triggers notification.

-Direction

Threshold direction.

Possible values: RisesAbove, LowersBelow

Type reference: ThresholdDirection

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

None

OUTPUTS

Notification

Last updated