Edit

Share via


New-AzSqlVirtualMachineMultiSubnetIPConfigurationObject

Create an in-memory object for MultiSubnetIPConfiguration.

Syntax

Default (Default)

New-AzSqlVirtualMachineMultiSubnetIPConfigurationObject
    -SqlVirtualMachineInstance <String>
    [-PrivateIPAddressIpaddress <String>]
    [-PrivateIPAddressSubnetResourceId <String>]
    [<CommonParameters>]

Description

Create an in-memory object for MultiSubnetIPConfiguration.

Examples

Example 1: Create an in-memory object for multi subnet ip configuration

$multiSubnetIpConfig = New-AzSqlVirtualMachineMultiSubnetIPConfigurationObject -PrivateIPAddressSubnetResourceId $SubnetId -PrivateIPAddressIpaddress $IPAddress -SqlVirtualMachineInstance $SqlVMResourceId
$multiSubnetIpConfig | Format-List
PrivateIPAddressIpaddress        : 192.168.16.7
PrivateIPAddressSubnetResourceId :
SqlVirtualMachineInstance        :

New-AzSqlVirtualMachineMultiSubnetIPConfigurationObject creates an in-memory object of type MultiSubnetIPConfiguration. This object represents a multi subnet ip configuration for an availability group listener. It will be used for parameter MultiSubnetIPConfiguration in cmdlet New-AzAvailabilityGroupListener.

Parameters

-PrivateIPAddressIpaddress

Private IP address bound to the availability group listener.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PrivateIPAddressSubnetResourceId

Subnet used to include private IP.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SqlVirtualMachineInstance

SQL virtual machine instance resource id that are enrolled into the availability group listener.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

MultiSubnetIPConfiguration