Table of ContentsLibraryView in Frames

Set-MetroClusterResource

This cmdlet enables you to set the controller properties for a site recovery plug-in MetroCluster cluster resource.

Syntax

Set-MetroClusterResource <ResourceName> [-PrimaryHostname <hostname | IP>] [-PrimaryCredential <username>] [-PrimaryRequireSSL] [-SecondaryHostname <hostname | IP>] [-SecondaryCredential <username>] [-SecondaryRequireSSL] [<CommonParameters>]

Description

This cmdlet sets the properties specified by the input parameters for the named site recovery plug-in MetroCluster cluster resource.

Parameters

ResourceName
Specifies the MetroCluster cluster resource that you want to modify.
-PrimaryHostname hostname | IP
Specifies the hostname (or IP address) of the primary controller.
-PrimaryCredential username
Specifies the username to use when logging in to the primary controller.
-PrimaryRequireSSL
Specifies to require HTTPS for connecting to the primary controller.
-SecondaryHostname hostname | IP
Specifies the hostname (or IP address) of the secondary controller.
-SecondaryCredential username
Specifies the username to use when logging in to the secondary controller.
-SecondaryRequireSSL
Specifies to require HTTPS for connecting to the secondary controller.

Example

The following example sets the primary controller hostname and username for a MetroCluster cluster resource named MCResSQL.

Set-MetroClusterResource MCResSQL -PrimaryHostname 10.61.132.11 -PrimaryCredential root