azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

Get-AzLoadBalancer and Set-AzLoadBalancer with no changes even, throws error. availability zone constraint

Open tariqaliuk opened this issue 5 years ago • 8 comments

hi All

i am trying to update an existing Azure Standard loadbalancer using Az PowerSehll but am getting error: FrontEnd has an existing availability zone constraint and the request has availability zone constraint 1, 2, 3, which do not match. Zones cannot be added/updated/removed once the resource is created. The resource cannot be updated from regional to zonal or vice-versa. i am sure the availability zones matches with existing one but still error.

Even if just try get-azloadbalancer and set-azloadbalancer with no changes. it still error the same.

$existinglb= Get-AzLoadBalancer -Name $lbName -ResourceGroupName $resourcegroup $existinglb | Set-AzLoadBalancer

StatusCode: 400 ReasonPhrase: Bad Request ErrorCode: ResourceAvailabilityZonesCannotBeModified ErrorMessage: Resource /subscriptions/********/resourceGroups/rg/providers/Microsoft.Network/loadBala ncers/lb1/frontendIPConfigurations/Frontend1 has an existing availability zone constraint and the request has availability zone constraint 1, 2, 3, which do not match. Zones cannot be added/updated/removed once the resource is created. The resource cannot be updated from regional to zonal or vice-versa.

i am using latest az moudes. i.e. 5.5.0

Regards TA

tariqaliuk avatar Feb 24 '21 17:02 tariqaliuk

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @slbsupportgithub.

Issue Details

hi All

i am trying to update an existing Azure Standard loadbalancer using Az PowerSehll but am getting error: FrontEnd has an existing availability zone constraint and the request has availability zone constraint 1, 2, 3, which do not match. Zones cannot be added/updated/removed once the resource is created. The resource cannot be updated from regional to zonal or vice-versa. i am sure the availability zones matches with existing one but still error.

Even if just try get-azloadbalancer and set-azloadbalancer with no changes. it still error the same.

$existinglb= Get-AzLoadBalancer -Name $lbName -ResourceGroupName $resourcegroup $existinglb | Set-AzLoadBalancer

StatusCode: 400 ReasonPhrase: Bad Request ErrorCode: ResourceAvailabilityZonesCannotBeModified ErrorMessage: Resource /subscriptions/********/resourceGroups/rg/providers/Microsoft.Network/loadBala ncers/lb1/frontendIPConfigurations/Frontend1 has an existing availability zone constraint and the request has availability zone constraint 1, 2, 3, which do not match. Zones cannot be added/updated/removed once the resource is created. The resource cannot be updated from regional to zonal or vice-versa.

i am using latest az moudes. i.e. 5.5.0

Regards TA

Author: tariqaliuk
Assignees: -
Labels:

Network - Load Balancer, Service Attention, customer-reported, question

Milestone: -

ghost avatar Feb 25 '21 00:02 ghost

Hello all,

This is a known issue in the current implementation of Set-AzLoadBalancer for regions with Availability Zones. New code is currently being deployed to fix this issue. In the meantime, the equivalent commands in CLI (or Portal) should be used.

brianlehr avatar Feb 25 '21 01:02 brianlehr

thanks Brian for confirming this. we can use portal but needed this for PowerShell automation of LB. will have to wait for the new release then.

Regards TA

tariqaliuk avatar Feb 25 '21 09:02 tariqaliuk

@tariqaliuk Following up to see if you still have this issue? Please confirm if you still blocked because of this or if this issue can be closed? Thank you

KranthiPakala-MSFT avatar Nov 01 '21 22:11 KranthiPakala-MSFT

@KranthiPakala-MSFT @tariqaliuk This issue should now be remediated in PowerShell.

brianlehr avatar Nov 01 '21 22:11 brianlehr

Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

ghost avatar Nov 09 '21 02:11 ghost

#please-close

brianlehr avatar Nov 09 '21 03:11 brianlehr

Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

ghost avatar Nov 16 '21 08:11 ghost