New-SCOMResourcePool

New-SCOMResourcePool

Creates a resource pool in Operations Manager.

Syntax

Parameter Set: Empty
New-SCOMResourcePool [-DisplayName] <String> [-Member] <ComputerHealthService[]> [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-Description <String> ] [-Observer <ComputerHealthService[]> ] [-SCSession <Connection[]> ] [ <CommonParameters>]

Detailed Description

The New-SCOMResourcePool cmdlet creates a resource pool in System Center 2012 – Operations Manager. A resource pool enables a collection of management servers to distribute the workload.

Parameters

-ComputerName<String[]>

Specifies an array of names of computers. The cmdlet establishes temporary connections with management groups for these computers. You can use NetBIOS names, IP addresses, or fully qualified domain names (FQDNs). To specify the local computer, type the computer name, localhost, or a dot (.).

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Credential<PSCredential>

Specifies a PSCredential object for the management group connection. To obtain a PSCredential object, use the Get-Credential cmdlet. For more information, type "Get-Help Get-Credential".If you specify a computer in the ComputerName parameter, use an account that has access to that computer. The default is the current user.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Description<String>

Specifies a description for the resource pool. The parameter accepts a maximum character length of 4,000 characters.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-DisplayName<String>

Specifies a display name of an object. Values of the DisplayName parameter may vary depending on which localized management packs a user imports into the management group and the locale of the user who is running Windows PowerShell

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Member<ComputerHealthService[]>

Specifies an array of objects to include in the resource pool.

Valid objects that can be members of a resource pool include management servers or gateway servers. For information about how to get a gateway server object, type "Get-Help Get-SCOMGatewayManagementServer".

Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Observer<ComputerHealthService[]>

Specifies an array of management servers or gateway management servers not currently in a resource pool.

To make a resource pool highly available, you must add a minimum of three members to the pool, or two members and one observer.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-SCSession<Connection[]>

Specifies an array of Connection objects. To obtain a Connection object, use the Get-SCManagementGroupConnection cmdlet.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Create a resource pool

This example creates a resource pool named Pool01 that contains all management servers.

The command in parentheses, which is executed first, uses the Get-SCOMmanagementServer cmdlet to get all management servers. The cmdlet then passes the results of the command in parentheses to the New-SCOMResourcePool cmdlet, which creates the resource pool and adds the management servers.

Note: Because the management servers are added to this resource pool manually, this resource pool will not have automatic membership enabled, and you must add all future members manually.

PS C:\> New-SCOMResourcePool -DisplayName "Pool01" -Member (Get-SCOMManagementServer) –PassThru

New-SCOMResourcePool

Remove-SCOMResourcePool

Set-SCOMResourcePool