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

Instance view status on LinuxVirtualMachine #664

Open
vfarcic opened this issue Mar 1, 2024 · 2 comments
Open

Instance view status on LinuxVirtualMachine #664

vfarcic opened this issue Mar 1, 2024 · 2 comments
Labels
enhancement New feature or request needs:triage

Comments

@vfarcic
Copy link

vfarcic commented Mar 1, 2024

What problem are you facing?

LinuxVirtualMachine does not use VM status to deduce whether the machine is running or not so it does not react in case of a VM being stopped (does not start it).

How could Official Azure Provider help solve your problem?

Integrate with https://learn.microsoft.com/en-us/rest/api/compute/virtual-machines/instance-view?view=rest-compute-2023-10-02&tabs=HTTP#instanceviewstatus to monitor VM status and react if it differs from the status defined in MRs.

@vfarcic vfarcic added enhancement New feature or request needs:triage labels Mar 1, 2024
@ManuInNZ
Copy link

ManuInNZ commented Mar 3, 2024

The response will include a statuses array that contains the current status of the VM. Look for a status with "code": "PowerState/running" to confirm that the VM is running
(c) Coplilot but obvious in the link above

@loomkoom
Copy link
Contributor

loomkoom commented Apr 8, 2024

I also ran into this while testing the provider capabilities before adoption.
It would be great to see this implemented.

@turkenf turkenf removed the community label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs:triage
Projects
None yet
Development

No branches or pull requests

4 participants