Skip to content
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

Azure SD: Update predicate check if VM is active #13581

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

darshanime
Copy link
Contributor

As per Azure/azure-sdk-for-go#2838, we can use the InstanceViewStatus to view the power status. This was attempted in #4908, but was later reverted due to nil deference.

Also updated the current logic to check MacAddress == nil as discussed in #4340

related to #5569
closes #4340

Signed-off-by: darshanime <deathbullet@gmail.com>
@darshanime darshanime changed the title Update predicate for checking if VM active Update predicate check for active azure VM Feb 14, 2024
@darshanime darshanime changed the title Update predicate check for active azure VM Azure SD: Update predicate check if VM is active Feb 14, 2024
@beorn7
Copy link
Member

beorn7 commented Mar 5, 2024

@roidelapluie do you remember who can do PR reviews for Azure SD? Sorry @darshanime that it is so hard to find a reviewer for this.

@roidelapluie
Copy link
Member

It is wrong to not include powered off VMS. If a VM is powered off , you want to know that up == 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Azure Discovery incorrectly discovering de-allocated VM NICs
3 participants