Azure

Security

Tutorials

Enhance your Cloud Asset Inventory Using Wiz + Azure

As we have covered before at CloudQuery, maintaining resources in a cloud environment can be complex. Whether you have built an Azure cloud asset inventory or have specific resources you have exported, you will likely want to know the vulnerability status of your assets in your Azure cloud. Using CloudQuery’s Wiz source integration, you can have quick access to vulnerabilities and misconfigurations in your Azure accounts.

Why add Wiz to your Azure asset inventory?

Wiz is a cloud security tool that gives you complete visibility and actionable context on your most critical misconfigurations in real-time, so your teams can proactively and continuously improve your cloud security posture. Connecting this tool with your cloud asset inventory can give you granularity over both your cloud resources and any vulnerability findings for further analysis and visualization.

How to setup Wiz and CloudQuery

Let’s cover a few basic set up steps in order to connect your Azure resources to Wiz security data.

  1. Export your Azure data to PostgreSQL
  2. Export your Wiz data to PostgreSQL
  3. Create an Azure Asset Inventory using CloudQuery’s available transformation addon.

How to get a comprehensive look of your Azure cloud configuration findings from Wiz

Now that you have data from both Azure and Wiz sources, and synced them into your PostgreSQL database destination, let’s explore the data. In this example, you will have two schemas in your database, azure and wiz. To get a comprehensive look at our cloud configuration findings from Wiz across your entire Azure asset inventory, you will be leveraging the wiz_cloud_configuration_findings table. You can use the below query to get insights into your CSPM to ensure security and compliance:

select
azure.subscription_id as azure_subscription_id,
azure.id as azure_resource_id,
azure.kind as resource_type,
azure.name as azure_resource_name,
azure._cq_table as azure_source_table,
wiz.rule ->> 'name' as finding_name,
wiz.rule ->> 'description' as finding_description,
wiz.first_seen_at as finding_first_seen,
wiz.severity as finding_severity,
wiz.result as finding_result,
wiz.status as finding_status,
wiz.remediation as finding_remediation
from
azure.azure_resources azure
left join
wiz.wiz_cloud_configuration_findings wiz
on
azure.id = wiz.resource -> 'subscription' ->> 'externalId'

In this query, you select some descriptive fields from your Azure asset inventory view, including the source table in which your Azure resource data resides. You can use the id field from Azure and the external_id from the Wiz resource field to link each resource to a finding.

Note, you will use PostgreSQL built-in JSON functions to parse the resource JSON field as this external_id best matches the transformed Azure resource id in the Azure asset inventory view. This combo can give you insights into your CSPM to ensure security and compliance.

How to get a comprehensive look at Azure cloud vulnerability findings from Wiz

You can also enhance your Azure asset inventory by determining resources that have known vulnerabilities using the wiz_vulnerability_findings table, which can be linked back to your Wiz portal as seen here:

select
azure.subscription_id as azure_subscription_id,
azure.id as azure_resource_id,
azure.name as azure_resource_name,
azure.kind as resource_type,
azure._cq_table as azure_source_table,
wiz.name as vuln_finding_name,
wiz.description as vuln_finding_description,
wiz.portal_url as wiz_vuln_finding_link
from
azure.azure_resources azure
left join
wiz.wiz_vulnerability_findings wiz
on
azure.id = wiz.vulnerable_asset -> 'VulnerableAssetBase' ->> 'providerUniqueId'

In this query, you again use PostgreSQL built-in JSON functions to find the providerUniqueId within the vulnerable_asset field in the wiz_vulnerability_findings table, which corresponds with an Azure id. This will allow you to navigate directly to the vulnerability finding within Wiz using the wiz_vuln_finding_link field above.

Enhance your Azure cloud asset inventory today with CloudQuery and Wiz. Try CloudQuery for free and gain immediate insights into vulnerabilities and misconfigurations in your Azure environment. If you have any questions or want to connect with our engineering team, contact us or join our Community.

Want to see CloudQuery in action? Schedule a demo with our team or check out the platform documentation to learn more.

Want help getting started? Join the CloudQuery community to connect with other users and experts, or message our team directly here if you have any questions.

Try CloudQuery yourself

Self-hosted, open source, and free to start. Or schedule a demo to see the managed version.

Related posts

AWS

Azure

GCP

Security

Tutorials

How to Find Internet-Facing Cloud Assets in AWS, Azure and GCP

Find all internet-facing cloud resources across AWS, Azure, and GCP. Identify exposed VMs, storage, databases, and load balancers to reduce attack surface.

Adam Cobb

Adam Cobb

November 5, 2025

Azure

Security

Tutorials

How to Find Azure Resources Affected by TLS 1.0/1.1 Deprecation

Identify Azure resources impacted by TLS 1.0 and 1.1 deprecation using CloudQuery. Audit your cloud assets and ensure TLS compliance using SQL queries.

Ben Bernays

Ben Bernays

January 29, 2025

AWS

Azure

GCP

Security

How Do You Run CloudQuery Without Static Credentials?

Workload identity federation for GCP and Azure, RDS IAM auth, and Lakebase OAuth let self-hosted CloudQuery syncs run without stored static credentials.

Ben Bernays

Ben Bernays

September 28, 2026

AWS

Security

Tutorials

Finding AWS Unrestricted Outbound Access in 2026: EC2, Lambda, and Beyond

Find EC2, Lambda, and ECS Fargate resources with unrestricted outbound access in AWS using SQL. Why egress controls still break attack chains in 2026.

Joe Karlsson

Joe Karlsson

May 5, 2026

AWS

Security

Tutorials

AWS IAM Identity Center with Google Workspace as an IdP: 2026 Step-by-Step Guide

Set up AWS IAM Identity Center with Google Workspace: SAML authentication, SCIM user provisioning, and group sync with CLI or ssosync. Updated for 2026.

Joe Karlsson

Joe Karlsson

May 5, 2026

GCP

Security

Tutorials

Creating Cross-Project Service Accounts in GCP (Console + gcloud CLI)

Create a GCP service account that reads across all your projects with one credential. Covers gcloud CLI, org-level vs.

Joe Karlsson

Joe Karlsson

May 5, 2026

AWS

Cloud Infrastructure

Security

Tutorials

Integrate AbuseIPDB Threat Intelligence with CloudQuery

Enrich your cloud asset inventory with AbuseIPDB threat intelligence to identify public cloud IPs with known abuse reports.

Joe Karlsson

Joe Karlsson

April 20, 2026

AWS

Security

Tutorials

AWS IAM Identity Center (Formerly AWS SSO): The Complete 2026 Guide

AWS IAM Identity Center replaced AWS SSO in 2022. Learn how to set it up, configure permission sets, use the AWS CLI, and audit access with CloudQuery.

Joe Karlsson

Joe Karlsson

April 6, 2026

AWS

Security

Tutorials

Set Up AWS CLI with SSO (IAM Identity Center) — Step by Step

Configure AWS CLI v2 with IAM Identity Center in 5 minutes. Covers sso-session setup, automatic token refresh, and switching between multi-account profiles.

Yevgeny Pats

Yevgeny Pats

February 25, 2026

Own your pipeline.
Own your data.