Skip to main content

Azure

Azure is Microsoft's comprehensive cloud computing platform that provides infrastructure as a service (IaaS), platform as a service (PaaS), and software as a service (SaaS) solutions. This data integration platform enables querying and monitoring of Azure cloud resources, services, and configurations for security analysis, compliance auditing, cost management, inventory tracking, and operational monitoring.

CategoryCloud
DirectionQuery source
Sign-inClient Secret, Resource Owner Password Authentication
Query languagesSQLite
Tables175
Query templates653
Websitehttp://azure.com

Before you start​

Huntbase can sign in to Azure with any of these methods: Client Secret, Resource Owner Password Authentication. Pick one, create the credential in Azure, then keep it to hand for the Connect step.

Client Secret​

Client secret authentication using Azure AD application credentials (client ID and client secret).

  1. In the Microsoft Entra admin center, go to Entra ID › App registrations and select New registration. Under Supported account types, select Accounts in this organizational directory only, then select Register.
  2. On the app's overview page, copy the Directory (tenant) ID and Application (client) ID.
  3. Select Certificates & secrets › Client secrets › New client secret, add a description and duration, and select Add. Copy the secret value now: it is only displayed once.
  4. In the Azure portal, open Subscriptions, select the subscription, then go to Access control (IAM) › Add › Add role assignment.
  5. Assign the Reader role to the app (on the Members tab, choose User, group, or service principal and search for the app by name), then select Review + assign.

Permissions:

  • Reader on the subscription
  • Reader and Data Access on the subscription, only if you want to list storage account keys
Watch out for
  • The role assignment must be on the subscription you enter in Azure Subscription ID. Registering the app alone grants no access to resources.

For the vendor's own instructions, see Microsoft guide to registering an app and creating a service principal.

tip

Use a dedicated, read-only credential for Huntbase where the product allows it. Huntbase only needs to read.

Connect Azure​

  1. Go to Connections and click New connection, or click New connection on the Azure product page.
  2. On Product, pick Azure and choose the Owner.
  3. On Details, give the connection a Name and, optionally, a Description.
  4. On Connect, fill in the settings and credentials described below.
  5. On Verify, review the summary and click Create & check.

For everything else on the setup page — saving a draft, I'll do this later, and what each check result means — see Connections.

Settings​

Where your Azure lives:

FieldRequiredNotes
Azure EnvironmentNoLeave empty for the public cloud. Other valid values are AZURECHINACLOUD and AZUREUSGOVERNMENTCLOUD (the default is AZUREPUBLICCLOUD). One of AZUREPUBLICCLOUD, AZURECHINACLOUD, AZUREUSGOVERNMENTCLOUD, AZUREGERMANCLOUD. Defaults to AZUREPUBLICCLOUD.
Azure Tenant IDYesThe Directory (tenant) ID from the app registration overview page.
Azure Subscription IDYesThe subscription to query. Each connection covers a single subscription.

Credentials​

Choose a Method, enter a Credential label (for example Production), then fill in the fields for that method.

Client Secret​

FieldRequiredNotes
Azure Client IDYesThe Application (client) ID from the app registration overview page. Secret — not shown again after you save it.
Azure Client SecretYesThe secret Value, not the secret ID. Secret — not shown again after you save it.

Resource Owner Password Authentication​

FieldRequiredNotes
Azure Client IDYesThe Application (client) ID from the app registration overview page. Secret — not shown again after you save it.
UsernameYesSecret — not shown again after you save it.
PasswordYesSecret — not shown again after you save it.

Query it​

Once connected, Azure can serve these languages in a query tab, and Scout can use it when you ask in Auto:

LanguageUse it for
SQLiteSQL over the 175 tables listed below, alongside every other connected source.

Example: SQLite​

Display name of each Azure location — Explore which Azure locations are available by displaying their names.

select
name,
display_name
from
azure_location;

Azure ships with 653 query templates. Find them in Library › Queries — see Query templates.

What syncs automatically​

Azure comes with a content pack. These queries run on a schedule on each new connection so the entities they find appear in the Activity Feed without you asking. You can turn syncing off from the connection's Synchronisation Settings card.

QueryFinds
Sync role assignmentsauthorization, user
Sync virtual machinesdevice, os, product
Sync subscriptionsaccount, organization
Sync storage accountsaccount, location
Sync publicly accessible storage containersaccount, databucket

Tables​

Azure adds 175 tables. Browse their columns from Schema in the query bar's ⋯ menu.

All 175 tables
TableContains
azure_alert_managementAzure Alert Management Service
azure_api_managementAzure API Management Service
azure_api_management_backendAzure API Management Backend
azure_app_configurationAzure App Configuration
azure_app_service_environmentAzure App Service Environment
azure_app_service_function_appAzure App Service Function App
azure_app_service_planAzure App Service Plan
azure_app_service_web_appAzure App Service Web App
azure_app_service_web_app_slotAzure App Service Web App Slot
azure_application_gatewayAzure Application Gateway
azure_application_insightAzure Application Insight
azure_application_security_groupAzure Application Security Group
azure_automation_accountAzure Automation Account
azure_automation_variableAzure Automation Variable
azure_backup_policyAzure Backup Policy
azure_bastion_hostAzure Bastion Host
azure_batch_accountAzure Batch Account
azure_cdn_frontdoor_custom_domainAzure CDN Front Door Custom Domain
azure_cdn_frontdoor_profileAzure CDN Front Door Profile
azure_cognitive_accountAzure Cognitive Account
azure_compute_availability_setAzure Compute Availability Set
azure_compute_diskAzure Compute Disk
azure_compute_disk_accessAzure Compute Disk Access
azure_compute_disk_encryption_setAzure Compute Disk Encryption Set
azure_compute_disk_metric_read_opsAzure Compute Disk Metrics - Read Ops
azure_compute_disk_metric_read_ops_dailyAzure Compute Disk Metrics - Read Ops (Daily)
azure_compute_disk_metric_read_ops_hourlyAzure Compute Disk Metrics - Read Ops (Hourly)
azure_compute_disk_metric_write_opsAzure Compute Disk Metrics - Write Ops
azure_compute_disk_metric_write_ops_dailyAzure Compute Disk Metrics - Write Ops (Daily)
azure_compute_disk_metric_write_ops_hourlyAzure Compute Disk Metrics - Write Ops (Hourly)
azure_compute_imageAzure Compute Image
azure_compute_resource_skuAzure Compute Resource SKU
azure_compute_snapshotAzure Compute Snapshot
azure_compute_ssh_keyAzure Compute SSH Key
azure_compute_virtual_machineAzure Compute Virtual Machine
azure_compute_virtual_machine_metric_available_memoryAzure Compute Virtual Machine Metrics - Memory Available Utilization
azure_compute_virtual_machine_metric_available_memory_dailyAzure Compute Virtual Machine Metrics - Memory Available Utilization (Daily)
azure_compute_virtual_machine_metric_available_memory_hourlyAzure Compute Virtual Machine Metrics - Memory Available Utilization (Hourly)
azure_compute_virtual_machine_metric_cpu_utilizationAzure Compute Virtual Machine Metrics - CPU Utilization
azure_compute_virtual_machine_metric_cpu_utilization_dailyAzure Compute Virtual Machine Metrics - CPU Utilization (Daily)
azure_compute_virtual_machine_metric_cpu_utilization_hourlyAzure Compute Virtual Machine Metrics - CPU Utilization (Hourly)
azure_compute_virtual_machine_scale_setAzure Compute Virtual Machine Scale Set
azure_compute_virtual_machine_scale_set_network_interfaceAzure Compute Virtual Machine Scale Set Network Interface
azure_compute_virtual_machine_scale_set_vmAzure Compute Virtual Machine Scale Set VM
azure_compute_virtual_machine_sizeAzure Compute Virtual Machine Size
azure_consumption_usageAzure Consumption Usage
azure_container_groupAzure Container Group
azure_container_registryAzure Container Registry
azure_cosmosdb_accountAzure Cosmos DB Account
azure_cosmosdb_mongo_collectionAzure Cosmos DB Mongo Collection
azure_cosmosdb_mongo_databaseAzure Cosmos DB Mongo Database
azure_cosmosdb_restorable_database_accountAzure Cosmos DB Restorable Database Account
azure_cosmosdb_sql_databaseAzure Cosmos DB SQL Database
azure_cost_by_resource_group_dailyAzure Cost Management - Daily cost by resource group
azure_cost_by_resource_group_monthlyAzure Cost Management - Cost by Resource Group (Monthly)
azure_cost_by_service_dailyAzure Cost Management - Daily cost by service
azure_cost_by_service_monthlyAzure Cost Management - Cost by Service (Monthly)
azure_cost_forecast_dailyAzure Cost Management - Daily cost forecast
azure_cost_forecast_monthlyAzure Cost Management - Monthly cost forecast
azure_cost_usageAzure Cost Management - Cost and Usage with flexible dimensions
azure_data_factoryAzure Data Factory
azure_data_factory_datasetAzure Data Factory Dataset
azure_data_factory_pipelineAzure Data Factory Pipeline
azure_data_lake_analytics_accountAzure Data Lake Analytics Account
azure_data_lake_storeAzure Data Lake Store
azure_data_protection_backup_jobAzure Data Protection Backup Job
azure_data_protection_backup_vaultAzure Data Protection Backup Vault
azure_databox_edge_deviceAzure Data Box Edge Device
azure_databricks_workspaceAzure Databricks Workspace
azure_diagnostic_settingAzure Diagnostic Setting
azure_dns_zoneAzure DNS Zone
azure_eventgrid_domainAzure Event Grid Domain
azure_eventgrid_topicAzure Event Grid Topic
azure_eventhub_namespaceAzure Event Hub Namespace
azure_express_route_circuitAzure Express Route Circuit
azure_firewallAzure Firewall
azure_firewall_policyAzure Firewall Policy
azure_frontdoorAzure Front Door
azure_hdinsight_clusterAzure HDInsight Cluster
azure_healthcare_serviceAzure Healthcare Service
azure_hpc_cacheAzure HPC Cache
azure_hybrid_compute_machineAzure Hybrid Compute Machine
azure_hybrid_kubernetes_connected_clusterAzure Hybrid Kubernetes Connected Cluster
azure_iothubAzure Iot Hub
azure_iothub_dpsAzure IoT Hub Device Provisioning Service
azure_key_vaultAzure Key Vault
azure_key_vault_certificateAzure Key Vault Certificate
azure_key_vault_deleted_vaultAzure Key Vault Deleted Vault
azure_key_vault_keyAzure Key Vault Key
azure_key_vault_key_versionAzure Key Vault Key Version
azure_key_vault_managed_hardware_security_moduleAzure Key Vault Managed Hardware Security Module
azure_key_vault_secretAzure Key Vault Secret
azure_kubernetes_clusterAzure Kubernetes Cluster
azure_kubernetes_service_versionAzure Kubernetes Service Version
azure_kusto_clusterAzure Kusto Cluster
azure_lbAzure Load Balancer
azure_lb_backend_address_poolAzure Load Balancer Backend Address Pool
azure_lb_nat_ruleAzure Load Balancer Nat Rule
azure_lb_outbound_ruleAzure Load Balancer Outbound Rule
azure_lb_probeAzure Load Balancer Probe
azure_lb_ruleAzure Load Balancer Rule
azure_lighthouse_assignmentAzure Lighthouse Assignment
azure_lighthouse_definitionAzure Lighthouse Definition
azure_locationAzure Location
azure_log_alertAzure Log Alert
azure_log_analytics_workspaceAzure Log Analytics Workspace
azure_log_profileAzure Log Profile
azure_logic_app_workflowAzure Logic App Workflow
azure_machine_learning_workspaceAzure Machine Learning Workspace
azure_maintenance_configurationAzure Maintenance Configuration
azure_management_groupAzure Management Group.
azure_management_lockAzure Management Lock
azure_mariadb_serverAzure MariaDB Server
azure_monitor_activity_log_eventAzure Monitor Activity Log Event
azure_monitor_log_profileAzure Monitor Log Profile
azure_mssql_elasticpoolAzure Microsoft SQL Elastic Pool
azure_mssql_managed_instanceAzure Microsoft SQL Managed Instance
azure_mssql_virtual_machineAzure MS SQL Virtual Machine
azure_mysql_flexible_serverAzure MySQL Flexible Server
azure_mysql_serverAzure MySQL Server
azure_nat_gatewayAzure NAT Gateway
azure_network_interfaceAzure Network Interface
azure_network_profileAzure Network Profile
azure_network_security_groupAzure Network Security Group
azure_network_watcherAzure Network Watcher
azure_network_watcher_flow_logAzure Network Watcher Flow Log
azure_policy_assignmentAzure Policy Assignment
azure_policy_definitionAzure Policy Definition
azure_postgresql_flexible_serverAzure PostgreSQL Flexible Server
azure_postgresql_serverAzure PostgreSQL Server
azure_private_dns_zoneAzure Private DNS Zone
azure_private_endpointAzure Private Endpoint
azure_providerAzure Provider
azure_public_ipAzure Public IP
azure_recovery_services_backup_jobAzure Recovery Services Backup Job
azure_recovery_services_vaultAzure Recovery Services Vault
azure_redis_cacheAzure Redis Cache
azure_resourceAzure Resource
azure_resource_graphExecute an Azure Resource Graph query and return the results as rows.
azure_resource_groupAzure Resource Group
azure_resource_linkAzure Resource Link
azure_role_assignmentAzure Role Assignment
azure_role_definitionAzure Role Definition
azure_route_tableAzure Route Table
azure_search_serviceAzure Search Service
azure_security_center_auto_provisioningAzure Security Center Auto Provisioning
azure_security_center_automationAzure Security Center Automation
azure_security_center_contactAzure Security Center Contact
azure_security_center_jit_network_access_policyAzure Security Center JIT Network Access Policy
azure_security_center_settingAzure Security Center Setting
azure_security_center_sub_assessmentAzure Security Center Sub Assessment
azure_security_center_subscription_pricingAzure Security Center Subscription Pricing
azure_service_fabric_clusterAzure Service Fabric Cluster
azure_servicebus_namespaceAzure ServiceBus Namespace
azure_signalr_serviceAzure SignalR Service
azure_spring_cloud_serviceAzure Spring Cloud Service
azure_sql_databaseAzure SQL Database
azure_sql_serverAzure SQL Server
azure_storage_accountAzure Storage Account
azure_storage_blobAzure Storage Blob
azure_storage_blob_serviceAzure Storage Blob Service
azure_storage_containerAzure Storage Container
azure_storage_queueAzure Storage Queue
azure_storage_share_fileAzure Storage Share File
azure_storage_syncAzure Storage Sync
azure_storage_tableAzure Storage Table
azure_storage_table_serviceAzure Storage Table Service
azure_stream_analytics_jobAzure Stream Analytics Job
azure_subnetAzure Subnet
azure_subscriptionAzure Subscription
azure_synapse_workspaceAzure Synapse Workspace
azure_tenantAzure Tenant
azure_virtual_networkAzure Virtual Network
azure_virtual_network_gatewayAzure Virtual Network Gateway
azure_web_application_firewall_policyAzure Web Application Firewall Policy

Next steps​