After integrating new Azure SDK we are seeing the APIs are slower. Can you please help us understand what might be causing this?

Parag Rahangdale 5 Reputation points
2025-05-27T03:54:04.2866667+00:00

Instance view is talking in older API [ took 0.49 sec] /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView

const APIVersion = "2020-06-01" queryParameters := map[string]interface{}{

"api-version": APIVersion,

}

Instance view is talking in newer API [took 1.24 sec] /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView

reqQP.Set("api-version", "2022-03-01")

At both points the inventory was same.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,053 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Vamsi Ram Annepu 915 Reputation points Microsoft External Staff Moderator
    2025-05-27T07:41:18.1666667+00:00

    Hi Parag Rahangdale,
    It looks like you are facing issue with the speed of APIs after integrating new Azure SDK.
    This can be caused due to various factors which you can check by doing the following: -

    Start with diagnostic settings logs which has different properties that help in identifying where the slowness occurs. You can use the below query as example (for Azure Monitor):
    ApiManagementGatewayLogs

    | where TimeGenerated > ago(1d)

    | extend ApimTime = TotalTime - (BackendTime + ClientTime)

    | project TimeGenerated, TotalTime, BackendTime, ClientTime, ApimTime, CacheTime, BackendMethod, BackendUrl, BackendResponseCode, Url, ResponseCode,

    LastErrorMessage, LastErrorReason, LastErrorSource, LastErrorSection, ApiId, ProductId, OperationId

    There can be a Network Latency Issues which you can check by ping and look into the below link for more information of network latency
    https://learn.microsoft.com/en-us/azure/expressroute/expressroute-troubleshooting-network-performance#tools

    In few cases the new API versions may introduce additional checks or features that could affect performance which may cause latency. Microsoft always tries to improve issues in the subsequent minor releases for smooth running of the Latest version based on the previous releases.
    https://azure.microsoft.com/en-us/updates/?product=virtual-machines))

    Feel free to reach out if you have any further queries.

    If you found the information useful, please click "Upvote" on the post to let us know.

    Thank You.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.