Skip to content

@customAzureResource doesn't work as expected #3430

@pshao25

Description

@pshao25

Take trafficmanager as example, this resource extends Resource which has non-readonly id, name, type.

We had several trials.
Option 1: Extends ProxyResource from library.

  1. It's breaking change.
  2. This changes non-readonly id, name, type to readonly. Therefore it fails Model Validation https://github.com/Azure/azure-rest-api-specs/actions/runs/18671861311

Option 2: Defined customized ProxyResource without name (playground)

The route doesn't have name parameter, isn't expected.

Option 3: Defined customized ProxyResource with name (playground)

The get operation is expected, but create operation doesn't have expected route.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions