Get-AzLoadBalancerBackendAddressInboundNatRulePortMapping

Get-AzLoadBalancerBackendAddressInboundNatRulePortMapping は、1 つのバックエンド アドレスの受信 NAT 規則ポート マッピング リストを取得します。

構文

Get-AzLoadBalancerBackendAddressInboundNatRulePortMapping
   -ResourceGroupName <String>
   -LoadBalancerName <String>
   [-Name <String>]
   [-IpAddress <String>]
   [-NetworkInterfaceIpConfigurationId <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzLoadBalancerBackendAddressInboundNatRulePortMapping
   [-Name <String>]
   -LoadBalancer <PSLoadBalancer>
   [-IpAddress <String>]
   [-NetworkInterfaceIpConfigurationId <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzLoadBalancerBackendAddressInboundNatRulePortMapping
   -ResourceId <String>
   [-IpAddress <String>]
   [-NetworkInterfaceIpConfigurationId <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

説明

Get-AzLoadBalancerBackendAddressPool は、1 つのバックエンド アドレスの受信 NAT 規則ポート マッピング リストを取得します。

例 1

## Get inbound nat rule port mapping by NIC id
Get-AzLoadBalancerBackendAddressInboundNatRulePortMapping -ResourceGroupName $rgname -LoadBalancerName $lbName -NetworkInterfaceIpConfigurationId $ipconfig.Id -Name pool1

例 2

## Get inbound nat rule port mapping by ip address
$testIpAddress1 = "10.0.0.5"
Get-AzLoadBalancerBackendAddressInboundNatRulePortMapping -ResourceGroupName $rgname -LoadBalancerName $lbName -Name $backendAddressPoolName -IpAddress $testIpAddress1

例 3

## Get inbound nat rule port mapping by ip address and load balancer object
$slb = Get-AzLoadBalancer -Name "MyLoadBalancer" -ResourceGroupName "MyResourceGroup"
Get-AzLoadBalancerBackendAddressInboundNatRulePortMapping -LoadBalancer $slb -Name $backendAddressPoolName -IpAddress $testIpAddress1

例 4

## Get inbound nat rule port mapping by ip address and backend pool id
Get-AzLoadBalancerBackendAddressInboundNatRulePortMapping -ResourceId $backendPool1.Id -IpAddress $testIpAddress1

パラメーター

-DefaultProfile

Azure との通信のために使用される資格情報、アカウント、テナント、サブスクリプションです。

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-IpAddress

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

-LoadBalancer

バックエンド アドレス プールを持つロード バランサーを指定します。

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

-LoadBalancerName

ロード バランサ―の名前。

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

-Name

バックエンド アドレス プールの名前。

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

-NetworkInterfaceIpConfigurationId

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

-ResourceGroupName

ロード バランサーのリソース グループ名。

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

-ResourceId

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

入力

PSLoadBalancer

String

出力

PSInboundNatRulePortMapping