-
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
VMSS Flex VM instances cannot be deleted #19588
Comments
Hi @vishwa-krishnan. 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. |
If I understand correctly, you used the |
The resources are created beforehand through Terraform, there is no golang code creating these. On deletion, initially i tried to use the VMSS API as stated above: The resourceID for the VM Flex instance through the metadata endpoint is:
Hence, it made sense to try out the VMs API |
Thanks for clarifying. Can you please enable logging and share the trace? |
I dont see anything being printed do i need to use azure solution for tracing and monitoring in the portal ?
The logging prints nothing, I just set the env var. Im not sure whether tracing is done right. Can you please tell me whether this is done right ? |
You can't set the env var programmatically as it's read during an Also, there's no need to create a tracer as the logging writes to |
If you must set it programmatically, use the |
This is the logging:
|
I can see some character appended, let me try to fix it and check |
Ok it looks like that character was getting appended in the go code. It seems to be working now.
|
Was it a copy/paste thing? |
Yep looks like it. The logging helped a lot, thank you ! |
That I don't know, I'll defer to @lirenhe team to answer. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Hi @vishwa-krishnan - No need to unlink it from the VMSS before you delete it. You should be able to use either the VM delete or the VMSS Delete Instances (passing in the instanceIDs parameter). No preference from the platform side. |
|
Ok i see it happening, in this case the name is the instance IDs. Thank you, you may close this issue. |
Hi @vishwa-krishnan. 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 “ |
Hi @vishwa-krishnan, since you haven’t asked that we “ |
Bug Report
Imports:
Package in question:
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute v1.0.0
Go version: 1.19.1
What happened?
I am trying to delete a VMSS Flex VM instance, but the SDK APIs dont seem functional.
What did you expect or want to happen?
VM instance deletion process should start and API should succeed.
How can we reproduce it?
Create VMSS Flex, create instances and try deleting using SDK.
Environment
I am using the vm client instead of the vmss client api since VMSS API dont seem to support deletion of Flex instances. The VMSS API requires instance IDs that are integers in the backend and those dont exist for the VM Flex instances:
Response from 1:
The text was updated successfully, but these errors were encountered: