Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.69k stars 5.12k forks source link

sync NETWORK_CLIENT.network_interfaces.begin_create_or_update() API is very slow and takes about more than one minute. #21045

Open zshu11 opened 2 years ago

zshu11 commented 2 years ago

Hi, Guys: we try to move secondary ipconfig with associated public IP from one interface to another interface, and use sync python NETWORK_CLIENT.network_interfaces.begin_create_or_update() API. The python code is executed inside the Virtual Machine, we find the API is very slow and takes about more than a minute.

ifconfig is not a resource in Azure portal object design. Is there have another python to detach one ipconfig from one interface and attach the ipconfig to another interface? (The ipconfig has public IP).

Thanks.

ghost commented 2 years ago

Thank you for your feedback. This has been routed to the support team for assistance.

ghost commented 2 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @vnetsuppgithub.

Issue Details
Hi, Guys: we try to move secondary ipconfig with associated public IP from one interface to another interface, and use sync python NETWORK_CLIENT.network_interfaces.begin_create_or_update() API. The python code is executed inside the Virtual Machine, we find the API is very slow and takes about more than a minute. ifconfig is not a resource in Azure portal object design. Is there have another python to detach one ipconfig from one interface and attach the ipconfig to another interface? (The ipconfig has public IP). Thanks.
Author: zshu11
Assignees: msyyc
Labels: `question`, `Service Attention`, `Network - Virtual Network`, `Mgmt`, `customer-reported`, `needs-team-attention`
Milestone: -
msyyc commented 2 years ago

Hi @zshu11 python SDK is just tools to send/receive http request/response from service. So SDK can't speed if server takes long time to execute your cmd. I will transfer this issue to service repo which is more appropriate.