Skip to content

[FEATURE REQ] Support renaming named values #837

Description

@kwin

Please describe the feature.

If a named value with the same displayName but a different name does already exist in APIM while publishing the following error is emitted

##[error]System.Net.Http.HttpRequestException: HTTP request to URI https://management.azure.com/subscriptions/***/resourceGroups/***/providers/Microsoft.ApiManagement/service/***/namedValues/MyNamedValue?api-version=2023-09-01-preview&asyncId=69c299e5f0b6541b0829f74c&asyncCode=201 failed with status code 400. Content is '{"error":{"code":"ValidationError","message":"One or more fields contain incorrect values:","details":[{"code":"ValidationError","target":"name","message":"Property with the same name already exist."}]}}'.

Currently this requires manual deletion of the existing named value before publishing succeeds. Would be nice to automatically such cases within the publisher client.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions