Get-AzLoadBalancer and Set-AzLoadBalancer with no changes even, throws error. availability zone constraint
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
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: |
|
| Milestone: | - |
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.
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 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 @tariqaliuk This issue should now be remediated in PowerShell.
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!
#please-close
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!