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

Add table azure_resource Closes #792 #803

Merged
merged 3 commits into from
Jul 22, 2024
Merged

Add table azure_resource Closes #792 #803

merged 3 commits into from
Jul 22, 2024

Conversation

ParthaI
Copy link
Contributor

@ParthaI ParthaI commented Jul 16, 2024

Integration test logs

Logs
N/A

Example query results

Results
> SELECT 
    name, 
    type, 
    region, 
    identity_principal_id, 
    plan_publisher, 
    plan_name, 
    plan_product, 
    plan_promotion_code, 
    plan_version, 
    resource_group, 
    tags 
FROM 
    azure_resource 
WHERE 
    filter = 'startswith(tagName, ''cost'')'
+------------------------+-----------------------------------+-----------+--------------------------------------+----------------+-----------+--------------+---------------------+--------------+-----------------+----------------------->
| name                   | type                              | region    | identity_principal_id                | plan_publisher | plan_name | plan_product | plan_promotion_code | plan_version | resource_group  | tags                  >
+------------------------+-----------------------------------+-----------+--------------------------------------+----------------+-----------+--------------+---------------------+--------------+-----------------+----------------------->
| test732                | Microsoft.Storage/storageAccounts | westus2   | <null>                               | <null>         | <null>    | <null>       | <null>              | <null>       | demo            | {"cost_center":"012345>
| tets566                | Microsoft.Storage/storageAccounts | centralus | <null>                               | <null>         | <null>    | <null>       | <null>              | <null>       | demo            | {"cost_center":"012345>
| test883                | Microsoft.Storage/storageAccounts | westus2   | <null>                               | <null>         | <null>    | <null>       | <null>              | <null>       | demo            | {"cost_center":"012345>
| testimmutablecontainer | Microsoft.Storage/storageAccounts | eastus    | 3db15150-cfec-409a-99e5-c3c13d91fd62 | <null>         | <null>    | <null>       | <null>              | <null>       | nist-test_group | {"cost_center":"012345>
+------------------------+-----------------------------------+-----------+--------------------------------------+----------------+-----------+--------------+---------------------+--------------+-----------------+----------------------->

@ParthaI ParthaI requested a review from misraved July 16, 2024 11:00
@ParthaI ParthaI self-assigned this Jul 16, 2024
@ParthaI ParthaI linked an issue Jul 16, 2024 that may be closed by this pull request
return nil, nil
}

apiVersion := "2021-04-01"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ParthaI is this the latest available API version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, @misraved, it is the latest API version. Also, it is required parameter to use the API Get By ID.

@misraved misraved merged commit 4ddf817 into main Jul 22, 2024
1 check passed
@misraved misraved deleted the issue-792 branch July 22, 2024 07:11
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.

Add table azure_resource
3 participants