New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject
Create an in-memory object for LoadBalancerFrontendIPConfiguration.
Syntax
DefaultParameterSet (Default)
New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject
-Name <String>
[-PublicIPAddressId <String>]
[<CommonParameters>]
PrivateIP
New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject
-Name <String>
[-PrivateIPAddress <String>]
[-SubnetId <String>]
[<CommonParameters>]
Description
Create an 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
The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource.
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 |
-PrivateIPAddress
The virtual network private IP address of the IP configuration.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
PrivateIP
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-PublicIPAddressId
Resource Id.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
DefaultParameterSet
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-SubnetId
Resource Id.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
PrivateIP
| Position: | Named |
| Mandatory: | False |
| 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.