Thanks to visit codestin.com
Credit goes to github.com

Skip to content

StackQL for querying Azure VM's which are in stopped/running state #522

@prabha11-sys

Description

@prabha11-sys

Hi,
Requesting help with SQL to fetch all Azure VM's in running or stopped status,

Tried the below from Azure cloudshell but didnt work,

stackql >>SELECT vm_id, name, FROM azure.compute.virtualmachines WHERE power_state = 'stopped';
Service.GetResource() failure
stackql >>SELECT vm_id, name, FROM azure.compute.virtualmachines WHERE power_state = 'running';
Service.GetResource() failure

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions