-
Notifications
You must be signed in to change notification settings - Fork 849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get instance view for VMSS flex VMs #19707
Comments
Hi @erikasboren. Thank you for your feedback and we will look into it soon. Meanwhile, feel free to share your experience using the Azure SDK in this survey. |
According to this issue replied with service team, you may use instanceIDs as parameter. |
Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you! |
Flex instances don't have instanceIDs and that issue says to use the instance name instead, which is what I tried and posted above. |
Thank you for your feedback. This has been routed to the support team for assistance. |
@erika-boren Thanks for reaching out to us and reporting this issue. We are looking into this issue and we will provide an update. |
@erika-boren Could you please check if the below sample helps ? sample code here.
InstanceView - Retrieves information about the run-time state of a virtual machine. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-03-01 More info here. |
I'm not able to get the instance view for flex instances within a VMSS using the VirtualMachinesClient. It says the resource is not found.
|
@erika-boren Thanks for getting back and clarifying the ask. I was able to get the sample working with just VMSS Uniform orchestration mode. However with the Flexible orchestration Mode, I faced the same below error:
Flexible orchestration Mode: {scale-set-name}{8-char-guid} Though our article mentions this, For Virtual Machine Scale Sets in Flexible Orchestration mode, the instance ID is simply the name of the virtual machine. I tried with both {8-char-guid} and {scale-set-name}_{8-char-guid}. But both failed. I am checking this with the Product Owners further and I will update this thread. |
@erika-boren Apologies for the late reply. VMSS Flex does not support instance view, as there is not currently a way to get full instance view of Azure VMs. VMSS Uniforms had some internal simplifications that made it possible, but it was not possible to port that to VMSS Flex. The long term plan is to support getting instance view information at scale via Azure Resource Graph. We are hoping that lands in Q2CY2023. In the meantime, options are: 2. Use Get VM Instance View API on each individual VM instance. Watch retry headers so that you don't run into throttling. Hope this helps. |
Hi @erika-boren. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “ |
How do we get the IP of a Flex VM using the SDK? |
@erika-boren The above option 1 mentioned above you will get the |
@erika-boren If you need any further assistance on this issue in future, please feel free to reopen this thread. We would be happy to help. |
Bug Report
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v4
v4.0.0
go1.19.1 darwin/amd64
Unable to get the instance view for VMSS flex VMs. The GetInstanceView requires the VM id, which doesn't exist for a flex VM. However, I see in the doc below it says to use the vm name in place of the ID. I tried using the name but get a 400 invalid parameter.
https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-instance-ids
The text was updated successfully, but these errors were encountered: