Skip to content

[BUG] [API Management] polling response didn't respect the format in new api version #35010

Open
@ChenxiJiang333

Description

@ChenxiJiang333
Member

API Spec link

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2024-05-01/apimnamedvalues.json#L209

API Spec version

2024-05-01

Describe the bug

original issue: Azure/azure-sdk-for-python#40909

Calling the api to get operation result for a long operation in api version 2024-05-01, the response doesn't respect the right format, which causes the exception while polling for the results though SDK. The api works fine in older api versions.

Expected behavior

It should return {"status": "Succeeded"}

Actual behavior

It returns {"value":[]}

Reproduction Steps

First call API: https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}?api-version=2024-05-01

Then get the operation status by calling: https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/operationResults/5c730e343244df1b9cb56e85?api-version=2024-05-01

Receive {"value":[]}

Environment

No response

Activity

added
bugThis issue requires a change to an existing behavior in the product in order to be resolved.
Service AttentionWorkflow: This issue is responsible by Azure service team.
MgmtThis issue is related to a management-plane library.
customer-reportedIssues that are reported by GitHub users external to the Azure organization.
on May 30, 2025
jlasdev

jlasdev commented on Jun 12, 2025

@jlasdev

Having the same issue

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

    API ManagementMgmtThis issue is related to a management-plane library.Service AttentionWorkflow: This issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ChenxiJiang333@jlasdev

        Issue actions

          [BUG] [API Management] polling response didn't respect the format in new api version · Issue #35010 · Azure/azure-rest-api-specs