Azure / Azure/azure-rest-api-specs

[BUG] [Resources] Generic resource API returns "zones", but spec does not define it

Open
#41,828 1 comment 0 reactions 0 assignees View on GitHub
ARM bug Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
3d 37m
Merged PRs (30d)
446

Description

### API Spec link

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/resources/resource-manager/Microsoft.Resources/resources/stable/2025-04-01/resources.json#L2595-L2621

### API Spec version

2025-04-01

### Describe the bug

zones is in response of /resources call

```
\"name\":\"typespec-ide\",\"type\":\"Microsoft.Compute/virtualMachines\",\"location\":\"southcentralus\",\"zones\":[\"3\"],\"identity\":{\"type
```

However, neither GenericResource nor GenericResourceExpanded has `zones` in definition.

Hence user using the SDK cannot access this field.

### Expected behavior

`zones` defined in GenericResource

### Actual behavior

`zones` not defined

### Reproduction Steps

Call Resources_List API
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/resources/resource-manager/Microsoft.Resources/resources/stable/2025-04-01/resources.json#L994

### Environment

_No response_

Contributor guide

Open the contributing guide

Research direction

Start in specification/resources/resource-manager/Microsoft.Resources/resources/stable/2025-04-01/resources.json, reviewing the GenericResource and GenericResourceExpanded definitions near lines 2595-2621 and the Resources_List response near line 994. Compare those definitions with the example response and confirm that the completed specification exposes the zones field for users of the Resources_List API.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
api, cloud
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.