你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzCloudServiceLoadBalancerConfigurationObject
Create a in-memory object for LoadBalancerConfiguration
Syntax
New-AzCloudServiceLoadBalancerConfigurationObject
[-FrontendIPConfiguration <ILoadBalancerFrontendIPConfiguration[]>]
[-Name <String>]
[<CommonParameters>]
Description
Create a in-memory object for LoadBalancerConfiguration
Examples
Example 1: Create load balancer 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 configuration object which is used for creating or updating a cloud service. For more details see New-AzCloudService.
Parameters
-FrontendIPConfiguration
FrontendIPConfiguration. To construct, see NOTES section for FRONTENDIPCONFIGURATION properties and create a hash table.
Type: | ILoadBalancerFrontendIPConfiguration[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Name of LoadBalancerConfiguration.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |