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_storage_account > virtual_network_rules does not work #49

Closed
rajlearner17 opened this issue Mar 10, 2021 · 4 comments
Closed

azure_storage_account > virtual_network_rules does not work #49

rajlearner17 opened this issue Mar 10, 2021 · 4 comments
Assignees
Labels
priority:high This issue requires immediate attention

Comments

@rajlearner17
Copy link
Contributor

rajlearner17 commented Mar 10, 2021

Even if we have data available as mentioned in the screen the query below does not show any data.

select virtual_network_rules from azure_storage_account where name = 'anothertesting'

We can extend azure_storage_account to add additional data in virtual_network_rules field to include the data for Firewalls and virtual networks
image

image

@rajlearner17
Copy link
Contributor Author

FYI
This works

select name from azure_storage_account
+----------------+
| name |
+----------------+
| anothertesting |
+----------------+

@rajlearner17 rajlearner17 added the priority:high This issue requires immediate attention label Mar 23, 2021
@Subhajit97
Copy link
Contributor

Subhajit97 commented Mar 31, 2021

@rajmohanty17 I am not able to reproduce the above issue. The above mentioned query is working for me.
I am using the following configuration

> steampipe --version
steampipe version 0.3.3

> steampipe plugin list
+-----------------------------------------------------+---------+-----------------+
| NAME                                                | VERSION | CONNECTIONS     |
+-----------------------------------------------------+---------+-----------------+
| hub.steampipe.io/plugins/turbot/azure@latest        | 0.3.1   | azure           |
+-----------------------------------------------------+---------+-----------------+

I have created the resource with following configuration

image

> select jsonb_pretty(virtual_network_rules) from azure_storage_account
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| jsonb_pretty                                                                                                                                                       |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| [                                                                                                                                                                  |
|     {                                                                                                                                                              |
|         "id": "/subscriptions/********-****-****-****-************/resourcegroups/turbot_rg/providers/Microsoft.Network/virtualnetworks/test-net/subnets/default", |
|         "state": "Succeeded",                                                                                                                                      |
|         "action": "Allow"                                                                                                                                          |
|     }                                                                                                                                                              |
| ]                                                                                                                                                                  |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
>
>
> select jsonb_pretty(network_ip_rules) from azure_storage_account
+------------------------------------+
| jsonb_pretty                       |
+------------------------------------+
| [                                  |
|     {                              |
|         "value": "182.71.32.0/20", |
|         "action": "Allow"          |
|     }                              |
| ]                                  |
+------------------------------------+
>

Can you please try with the latest plugin?

@cbruno10
Copy link
Contributor

@debabrat-git can you please take a look at @Subhajit97 's comment above?

@rajlearner17
Copy link
Contributor Author

closing this based on the workable comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:high This issue requires immediate attention
Projects
None yet
Development

No branches or pull requests

3 participants