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

New-RASNotification

NAME

New-RASNotification

SYNOPSIS

Creates new notification.

SYNTAX

New-RASNotification [-Type] {Unknown | CPUEvent | MemoryEvent | RDSHConnectedSessionEvent | RDSHDisconnectedSessionEvent | RDSHConnectedSessionEventPerc | RDSHDisconnectedSessionEventPerc | AVDActiveSessionsUtilization | AVDDisconnectedSessionsUtilization | TunneledSess | 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.

PARAMETERS

Notification type.

Possible values: Unknown, CPUEvent, MemoryEvent, RDSHConnectedSessionEvent, RDSHDisconnectedSessionEvent, RDSHConnectedSessionEventPerc, RDSHDisconnectedSessionEventPerc, AVDActiveSessionsUtilization, AVDDisconnectedSessionsUtilization, TunneledSess, FailedTunneledSess, FailedTunneledSessTenantBroker, Agent, License, Authentication, PubItem, Template, VDI, Tenant

SiteId (uint)

Site ID where notification event is setup.

Current site ID is used if siteId is omitted.

GracePeriod (uint)

Grace period after the notification was done (minutes).

EnableGracePeriod (bool)

Enable/Disable grace period.

Recipients (string[])

Recipients to notify of the event.

SendEmail (bool)

Enable/Disable email notification.

ScriptId (uint)

Script to execute which has this ID.

ScriptObject (NotificationScript)

Script Object.

ExecuteScript (SwitchParameter)

Interval (uint)

Invocation interval (minutes).

EnableInterval (SwitchParameter)

Enable/Disable notification intervals.

WaitUntilRecovered (SwitchParameter)

Wait until recovered.

AllServers (bool)

All servers in site.

TargetType (TargetType)

Target type.

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

TargetIds (List`1)

Target Ids.

Threshold (uint)

Tolerance value which triggers notification.

Direction (ThresholdDirection)

Threshold direction.

Possible values: RisesAbove, LowersBelow

(CommonParameters)

INPUTS

-none-

OUTPUTS

Notification

---------- EXAMPLE 1 ----------

New-RASNotification -Type Agent

Creates a new notification for agent events. ---------- EXAMPLE 2 ----------

New-RASNotification -Type RDSHConnectedSessionEvent -Threshold 22

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

Last updated