Editar

Compartir a través de


New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject

Create a in-memory object for LoadBalancerFrontendIPConfiguration

Syntax

New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject
   [-Name <String>]
   [-PublicIPAddressId <String>]
   [<CommonParameters>]
New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject
   [-Name <String>]
   [-PrivateIPAddress <String>]
   [-SubnetId <String>]
   [<CommonParameters>]

Description

Create a in-memory object for LoadBalancerFrontendIPConfiguration

Examples

Example 1: Create load balancer frontend IP configuration object

$publicIP = Get-AzPublicIpAddress -ResourceGroupName 'ContosoOrg' -Name 'ContosoPublicIP'
$feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIp.Id
$loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig

This command creates load balancer frontend IP configuration object which is used for creating or updating a cloud service. For more details see New-AzCloudService.

Example 2: Create load balancer frontend IP configuration object with Private ID address

# Create role profile object
$subnet = New-AzVirtualNetworkSubnetConfig -Name "WebTier" -AddressPrefix "10.0.0.0/24" -WarningAction SilentlyContinue 
$feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -privateIPAddress '10.0.0.6' -subnetId $Subnet.Id
$loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig

This command creates load balancer frontend IP configuration object with a Private IP address

Parameters

-Name

Name of FrontendIpConfigration.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PrivateIPAddress

Private IP Address

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PublicIPAddressId

Resource Id.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SubnetId

Subnet ID

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

LoadBalancerFrontendIPConfiguration