Azure / Azure/azure-rest-api-specs

Failed to enable Zone-redundant for Public IP

Open
#9,526 13 comments 0 reactions 0 assignees View on GitHub
Network - Virtual Network Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
3d 2h
Merged PRs (30d)
424

Description

Symptom:
According by [azure doc](https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-public-ip-address#create-a-public-ip-address), seems “Public IP” supports “Zone-redundant” when “Sku” is “Standard”. After tried with rest api, seems it failed and threw below error message while passing “Zone-redundant” to service side. If it's a bug, could you help to fix it? Thanks.

PUT https://management.azure.com/subscriptions/xx-xx-xx-xx/resourceGroups/acctestRG-pip-tester2/providers/Microsoft.Network/publicIPAddresses/acctestpublicip-tester2

Request body:
{
"location": "westus2",
"properties": {
"publicIPAllocationMethod": "Static",
"publicIPAddressVersion": "IPv4",
"idleTimeoutInMinutes": 4
},
"sku": {
"name": "Standard"
},
"tags": {},
"zones": [
"Zone-redundant"
]
}

Response body:
network.PublicIPAddressesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidAvailabilityZone" Message="The zone(s) 'Zone-redundant' for resource 'Microsoft.Network/publicIPAddresses/acctestpublicip-tester2' is not supported. The supported zones for location 'westus2' are '1,2,3'"

Contributor guide

Open the contributing guide

Research direction

Start with the Microsoft.Network publicIPAddresses PUT request and compare the documented Standard SKU zone values with the service response for westus2. Determine whether the REST API specification or the service behavior is inconsistent; done means the supported zone-redundant behavior is aligned and verified against the reported request.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, openapi
Domain
api, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.