select display_name, user_principal_name, mail, user_type, usage_locationfrom azure_ad_userwhere user_type = 'Guest';
select display_name, user_principal_name, additional_properties -> 'passwordProfile' -> 'enforceChangePasswordPolicy' as enforce_change_password_policy, additional_properties -> 'passwordProfile' -> 'forceChangePasswordNextLogin' as change_password_next_loginfrom azure_ad_user;
select name, split_part(disk -> 'managedDisk' ->> 'id', '/', 9) as disk_name, disk ->> 'storageAccountType' as storage_account_type, disk ->> 'diskSizeGB' as disk_size_gb, disk ->> 'caching' as cachingfrom azure_compute_image cross join jsonb_array_elements(storage_profile_data_disks) as diskwhere disk ->> 'storageAccountType' = 'Premium_LRS';
Parameter | Description |
---|---|
SQL statement | The SQL statement we wish to use to query the resource. |
Output format | Representation of the output result. The possible options are “Table”, “CSV” or “JSON”. |
Was this page helpful?