> For the complete documentation index, see [llms.txt](https://docs.parallels.com/landing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/new-rasnotification.md).

# New-RASNotification

## SYNOPSIS

Creates new notification.

## SYNTAX

```powershell
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

```powershell
New-RASNotification -Type Agent
```

Creates a new notification for agent events.

### Example 2

```powershell
New-RASNotification -Type RDSHConnectedSessionEvent -Threshold 22
```

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](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/notificationtype.md)

```yaml
Type: NotificationType
Required: True
Position: 0
Default value: Unknown
Accept pipeline input: False
Accept wildcard characters: False
```

### -SiteId

Site ID where notification event is setup.

Current site ID is used if siteId is omitted.

```yaml
Type: uint
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
```

### -GracePeriod

Grace period after the notification was done (minutes).

```yaml
Type: uint
Required: False
Position: Named
Default value: 5
Accept pipeline input: False
Accept wildcard characters: False
```

### -EnableGracePeriod

Enable/Disable grace period.

```yaml
Type: bool
Required: False
Position: Named
Default value: True
Accept pipeline input: False
Accept wildcard characters: False
```

### -Recipients

Recipients to notify of the event.

```yaml
Type: string[]
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -SendEmail

Enable/Disable email notification.

```yaml
Type: bool
Required: False
Position: Named
Default value: True
Accept pipeline input: False
Accept wildcard characters: False
```

### -ScriptId

Script to execute which has this ID.

```yaml
Type: uint
Required: False
Position: Named
Default value: 4294967295
Accept pipeline input: False
Accept wildcard characters: False
```

### -ScriptObject

Script Object.

Type reference: [NotificationScript](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/notificationscript.md)

```yaml
Type: NotificationScript
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -ExecuteScript

```yaml
Type: SwitchParameter
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```

### -Interval

Invocation interval (minutes).

```yaml
Type: uint
Required: False
Position: Named
Default value: 10
Accept pipeline input: False
Accept wildcard characters: False
```

### -EnableInterval

Enable/Disable notification intervals.

```yaml
Type: SwitchParameter
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```

### -WaitUntilRecovered

Wait until recovered.

```yaml
Type: SwitchParameter
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```

### -AllServers

All servers in site.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -TargetType

Target type.

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

Type reference: [TargetType](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/targettype.md)

```yaml
Type: TargetType
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -TargetIds

Target Ids.

```yaml
Type: List`1
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Threshold

Tolerance value which triggers notification.

```yaml
Type: uint
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Direction

Threshold direction.

Possible values: RisesAbove, LowersBelow

Type reference: [ThresholdDirection](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/thresholddirection.md)

```yaml
Type: ThresholdDirection
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### 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](https://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### None

## OUTPUTS

### [Notification](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/notification.md)

## RELATED LINKS

* [Get-RASNotification](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/get-rasnotification.md)
* [Set-RASNotification](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/set-rasnotification.md)
* [Remove-RASNotification](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/remove-rasnotification.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/new-rasnotification.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
