This is an archive version of the document. To get the most up-to-date information, see the current version.

New-VBRFailoverPlanPublicIPRule

In this article

    Short Description

    Creates a VBRFailoverPlanPublicIPRule object.

    Applies to

    Platform: VMware, Hyper-V

    Product Edition: Standard, Enterprise, Enterprise Plus

    Syntax

    New-VBRFailoverPlanPublicIPRule -SourceIp <string> -SourcePort <int> -TargetIp <string> -TargetPort <int> [-Description <string>]  [<CommonParameters>]

    Related Commands

    None

    Return Type

    VBRFailoverPlanPublicIPRule

    Detailed Description

    This cmdlet creates a VBRFailoverPlanPublicIPRule object. This object contains a rule for mapping public IP and ports to the internal IP and ports of the cloud replica VM. Public IP address is selected from the public IP address pool. Server provider assigns the public IP address pool in tenant's hardware plan.

    The object is used then in the New-VBRCloudFailoverPlanObject cmdlet.

    Parameters

    Parameter

    Description

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    SourceIp

    Specifies the public IP address you want to set for the replica VM. Select the public IP address from the IP address pool assigned by service provider in the hardware plan.

    True

    Named

    False

    False

    SourcePort

    Specifies the port you want to set for the replica VM.

    True

    Named

    False

    False

    TargetIp

    The original internal IP address of the replica VM.

    True

    Named

    False

    False

    TargetPort

    The internal port of the replica VM.

    The 22 port is reserved and cannot be used.

    True

    Named

    False

    False

    Description

    The description of the rule.

    False

    Named

    False

    False

    <CommonParameters>

    This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

    Example

    This example shows how to create a public IP rule.

    PS C:\PS> New-VBRFailoverPlanPublicIPRule -SourceIp "45.0.0.2" -SourcePort 8888 -TargetIp "172.16.2.232" -TargetPort 3389 -Description "Public IP for srv03"