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

feat: add power state to VMSS virtual machines #800

Merged
merged 3 commits into from
Jul 12, 2024

Conversation

pdecat
Copy link
Contributor

@pdecat pdecat commented Jul 11, 2024

This PR adds power state to the azure_compute_virtual_machine_scale_set_vm table.

Largely inspired from the code of the azure_compute_virtual_machine table.

@misraved
Copy link
Contributor

@pdecat thank you so much for the PR 👍 !!

Could you please add a simple example query showing the value of power_state column?

@pdecat pdecat force-pushed the feat/azvmssvm_power_state branch from d749ea2 to 475c410 Compare July 12, 2024 07:29
@pdecat
Copy link
Contributor Author

pdecat commented Jul 12, 2024

Added a sample query, here's the result when all instances are in running state:

> select
  vm.name,
  vm.power_state
from
  azure_compute_virtual_machine_scale_set_vm as vm;
+------------------------------+-------------+
| name                         | power_state |
+------------------------------+-------------+
| aks-frontend-53375067-vmss_0 | running     |
| aks-tooling-45209782-vmss_0  | running     |
| aks-frontend-53375067-vmss_2 | running     |
| aks-default-31213497-vmss_0  | running     |
| aks-service-39716677-vmss_2  | running     |
| aks-service-39716677-vmss_1  | running     |
| aks-frontend-53375067-vmss_1 | running     |
| aks-service-39716677-vmss_3  | running     |
| aks-frontend-53375067-vmss_3 | running     |
| aks-service-39716677-vmss_0  | running     |
+------------------------------+-------------+

@misraved misraved merged commit a7274c6 into turbot:main Jul 12, 2024
1 check passed
@pdecat pdecat deleted the feat/azvmssvm_power_state branch July 12, 2024 10:41
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.

3 participants