I have an Azure loadbalancer v2 created and wish to remove a rule from it. So, I will get a load balancer object:
$loadBalancer = Get-AzureLoadBalancer -Name myLoadbalancer -ResourceGroupName myResourceGroup
Then, I will try to remove a rule:
Remove-AzureLoadBalancerInboundNatRuleConfig -LoadBalancer $loadBalancer -Name RuleName
But, the rule stays there... Maybe I am missing something obvious? There is no examples which i can base on :(