Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.53k stars 2.76k forks source link

[azure-mgmt-compute] get_instance_view method of virtual_machine_scale_set_vms paramter error. #35789

Open ImMin5 opened 3 months ago

ImMin5 commented 3 months ago

Describe the bug A clear and concise description of what the bug is.

This issue occurs when calling the get_instance_view method of virtual_machine_scale_set_vms from the Azure SDK. The instance_id parameter passed to this method is a string, but the method expects an integer.

https://learn.microsoft.com/en-us/rest/api/compute/virtual-machine-scale-set-vms/get-instance-view?view=rest-compute-2024-03-01&tabs=HTTP#code-try-0

To Reproduce Steps to reproduce the behavior:

  1. use virtual_machine_scale_set_vms.get_instance_view method

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

스크린샷 2024-05-28 오후 9 28 55 Additional context Add any other context about the problem here.

github-actions[bot] commented 3 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @amjads1 @avirishuv @Drewm3 @vaibhav-agar.

Kanik09 commented 3 months ago

@ImMin5 It would be great if you could share the python script that you used to call method virtual_machine_scale_set_vms.get_instance_view so that I can look into it from my side?

ImMin5 commented 3 months ago

Hi @Kanik09 Here is python script that i used. and i got same result at here.

credential = DefaultAzureCredential()

compute_client = ComputeManagementClient(credential=credential, subscription_id={subscription_id})

compute_client.virtual_machine_scale_set_vms.get_instance_view({resource_group}, {vm_scale_set_name}, {instance_id})