Skip to content

Latest commit

 

History

History
136 lines (98 loc) · 3.66 KB

Remove-AzLoadBalancerInboundNatRuleConfig.md

File metadata and controls

136 lines (98 loc) · 3.66 KB
external help file Module Name ms.assetid online version schema
Microsoft.Azure.PowerShell.Cmdlets.Network.dll-Help.xml
Az.Network
D818C404-60E4-42DB-AADF-063305D9541B
2.0.0

Remove-AzLoadBalancerInboundNatRuleConfig

SYNOPSIS

Removes an inbound NAT rule configuration from a load balancer.

SYNTAX

Remove-AzLoadBalancerInboundNatRuleConfig -LoadBalancer <PSLoadBalancer> [-Name <String>]
 [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

The Remove-AzLoadBalancerInboundNatRuleConfig cmdlet removes an inbound network address translation (NAT) rule configuration from an Azure load balancer.

EXAMPLES

1: Delete an inbound NAT rule from an Azure load balancer

$loadbalancer = Get-AzLoadBalancer -Name mylb -ResourceGroupName myrg

Remove-AzLoadBalancerInboundNatRuleConfig -Name "myinboundnatrule" -LoadBalancer $loadbalancer

The first command loads an already existing load balancer called "mylb" and stores it in the variable $load balancer. The second command removes the inbound NAT rule associated with this load balancer.

PARAMETERS

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure.

Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
Parameter Sets: (All)
Aliases: AzContext, AzureRmContext, AzureCredential

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

-LoadBalancer

Specifies the LoadBalancer object that contains the inbound NAT rule configuration that this cmdlet removes.

Type: Microsoft.Azure.Commands.Network.Models.PSLoadBalancer
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-Name

Specifies the name of the inbound NAT rule configuration that this cmdlet removes.

Type: System.String
Parameter Sets: (All)
Aliases:

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: wi

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

CommonParameters

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

INPUTS

Microsoft.Azure.Commands.Network.Models.PSLoadBalancer

OUTPUTS

Microsoft.Azure.Commands.Network.Models.PSLoadBalancer

NOTES

RELATED LINKS

Add-AzLoadBalancerInboundNatRuleConfig

Get-AzLoadBalancerInboundNatRuleConfig

New-AzLoadBalancerInboundNatRuleConfig

Set-AzLoadBalancerInboundNatRuleConfig