Zabbix Microsoft Azure monitoring with the Azure by HTTP template

Zabbix monitors Azure through the official Azure by HTTP template, authenticated by a reader service principal scoped to one subscription. This page covers the prerequisites, credential macros, discovery scope and checks a team should plan before connecting.

On this page

How Zabbix monitors Azure with the Azure by HTTP template

A team that runs Azure workloads and wants them visible in the Zabbix estate it already controls can do so with the official Azure by HTTP template. The template covers virtual machines, VM scale sets, SQL Managed Instance, MySQL and PostgreSQL flexible and single servers, Azure SQL databases, Cost Management, Cosmos DB for MongoDB and Backup jobs. Its method is an HTTP-based template that authenticates to Azure with a service principal, and it uses script items without external scripts. Zabbix does not add a separate connector or agent on the Azure side beyond that method, so the data path is Zabbix server or proxy calling Azure APIs directly over HTTPS from your monitoring network.

The template bundle is a set of templates rather than one template, so the scope decision comes first. Each sub-template only produces data for the resource types that exist in the subscription, and the discovery of those resources is scoped to the subscription ID you supply. Before importing anything, list the resource types in the subscription that matter for operations and cost, then confirm each one is covered by the bundle. Anything outside that list, such as custom application telemetry, will need a separate method rather than an extension of this template. For the current requirements, confirm the Zabbix version your server runs against the Zabbix 7.4 requirement and the matching template version for 7.2 or 7.0 on the Zabbix Azure integration page.

Because the template reads everything through the Azure APIs, the main operational risk is API consumption and credential scope, not agent drift. The service principal is created with the reader role scoped to the subscription, and the four macros (client ID, client secret, tenant ID and subscription ID) are the only inputs the template needs. Plan who holds the client secret, how it is rotated and where it is stored in Zabbix, since a leaked secret grants read access to everything in that subscription. Also plan the polling interval and the number of resources discovered, because each subscription-wide discovery multiplies the number of Azure API calls your Zabbix instance makes on every cycle.

What you need before connecting Zabbix to Azure

The Azure by HTTP template depends on four things lining up: a Zabbix version that supports the current template, an Azure subscription where someone can create a reader identity, a network path from Zabbix to Azure, and the identifiers that tie them together. Settle each one before you import anything, because a missing permission or blocked endpoint usually shows up as empty items rather than a clear error.

Zabbix version match

The current Azure template requires Zabbix 7.4. Template versions also exist for 7.2 and 7.0, so import the one that matches your server version rather than the newest file by default. If you run Zabbix 6.0 LTS, plan an upgrade first, since its limited support ends on 28 February 2027. Check the template's version notes on the official integration page before you schedule the import.

Azure integration page

Azure subscription and directory rights

Someone needs permission to register an application and create a role assignment in the Microsoft Entra tenant and the target subscription. In many organizations that sits with a separate cloud or identity team, so confirm who approves this early. Identify every subscription you want monitored, because the template's discovery is scoped to one subscription at a time.

Outbound HTTPS from Zabbix

The Zabbix server or the proxy that polls Azure must reach Azure management and login endpoints over HTTPS. Proxies are a common choice when the monitoring host sits in a restricted segment, since only the proxy needs outbound access. Confirm the current endpoint list and any firewall or egress proxy rules on the official integration page, and test them from the actual polling host, not from your workstation.

Tenant, subscription and client identifiers

Collect the tenant ID, the subscription ID and the client ID of the service principal before configuring macros. The client secret is the fourth value and is shown only once when it is generated, so store it in your approved secrets location at creation time. Mixing identifiers from different tenants or subscriptions is a frequent cause of authentication failures that look like permission errors.

Client secret lifecycle

The client secret is a credential that will expire, and the template stops returning data when it does. Record the expiry date, assign an owner, and set a reminder well before it lapses. Decide now who rotates it and where the new value is stored, so rotation does not depend on whoever built the integration.

Configuring the reader service principal and Zabbix macros

This sequence creates a read-only Azure identity scoped to one subscription, stores its secret safely, and connects it to Zabbix through the Azure by HTTP template so discovery can see the resources you intend to monitor.

  1. Confirm the Zabbix version and template line

    Before touching Azure, confirm your Zabbix server version. The current Azure template requires Zabbix 7.4, and template versions exist for 7.2 and 7.0, so pick the template release that matches your server. Your Azure administrator or the Zabbix team lead can confirm this on the Zabbix server with the web interface version shown under the help menu. The step is done when the target version is written in the change record and matches the template you will import.

  2. Create the reader service principal

    An Azure administrator with permission to create app registrations runs az ad sp create-for-rbac with the Reader role scoped to the target subscription, not the tenant or a management group. Keep the scope as narrow as your monitoring needs allow, and record the appId, password and tenant values the command returns. The output confirms creation, but it is not yet proof of scope, so the check comes in the next step.

  3. Store the client secret outside the command history

    The client secret is shown once and gives read access to the subscription, so store it in your approved secrets manager or vault with restricted access, and avoid pasting it into tickets, chat or shell history. Note the secret's expiry date from the Azure portal so rotation is scheduled before Zabbix stops collecting data. The step is done when the secret is stored, the record names its owner, and the expiry is on the team's renewal calendar.

  4. Verify the role assignment scope

    In the Azure portal, open the subscription's access control settings and confirm the service principal holds only the Reader role at subscription scope. Check that no broader role, such as Contributor or Owner, was attached to it. Also confirm that the assignment does not reach other subscriptions you do not intend to monitor. The check passes when the role list shows exactly one Reader assignment at the intended scope.

  5. Import the Azure by HTTP template

    In the Zabbix web interface, import the Azure by HTTP template version that matches your server line from the official Zabbix Azure integration page. The import brings in the template groups for virtual machines, scale sets, SQL, PostgreSQL and MySQL flexible servers, Cosmos DB, Cost Management and Backup jobs. The step is done when the template appears in the template list with the expected version and its linked discovery rules are visible.

  6. Set the four credential macros on the host

    Create a host for the Azure subscription and set four user macros on it: the client ID, client secret, tenant ID and subscription ID. Store the client secret macro as a secret text value so it is masked in the interface. Use the values from the service principal output and the subscription overview page. The step is done when all four macros exist, the secret is masked, and the subscription ID matches the subscription you scoped the role to.

  7. Assign the template and confirm discovery

    Link the Azure by HTTP template to the host and wait for the first discovery cycle. Check the latest data and the discovery rules' results in Zabbix, and confirm that the virtual machines, databases and other resources you expect appear as discovered items. If the discovery list is empty or authentication fails, check the macro values and the role assignment before changing polling settings. The sequence is complete when discovery returns the expected resources from the subscription and no authentication errors appear in the host's problems.

Which Azure resources map to which Zabbix templates

The compute family covers virtual machines and VM scale sets. The official Azure by HTTP template bundles a template for each, and both use script items that call the Azure APIs from the Zabbix server or proxy without external scripts. Discovery creates host-level objects for each VM or scale set it finds in the subscription the service principal can read, so the number of hosts you get depends on how far the subscription scope reaches.

  • Virtual machines: Discovery creates one Zabbix host per discovered VM, with items for its state and metrics returned by the Azure monitoring API.
  • VM scale sets: Scale sets are discovered as their own objects, so instance counts and set-level metrics appear separately from individual instances.
  • Scope boundary: VMs in other subscriptions are not visible unless you add a separate host and credential set for each subscription.
  • Naming: Confirm how discovered host names are built, since Azure resource names may repeat across resource groups.
  • Permissions: The reader role must cover every resource group you expect to see, or resources in them will be missing without an obvious error.

Before go-live, compare the discovered VM count against the Azure portal for the same subscription and record which subscriptions are intentionally excluded.

Mapping Azure credentials and identifiers to Zabbix macros

This table maps each identifier the Azure by HTTP template needs to its source in Azure and the Zabbix macro or setting that stores it. Read each row from left to right to see where the value is created, and check the last row to pick the template version that matches your Zabbix release line. Keep the client secret in a macro you can rotate, since the template cannot run without it.

ItemWhere it comes from in AzureZabbix macro or setting
Tenant IDDirectory ID of the Microsoft Entra tenant that holds the subscriptionTenant ID macro
Subscription IDThe subscription that contains the resources you want to monitorSubscription ID macro, which also sets the discovery scope
Client IDApplication (client) ID of the service principal created with the Azure CLIClient ID macro
Client secretPassword value generated for the service principal, shown when it is createdClient secret macro. Confirm how your Zabbix version masks it in the interface
Reader role scopeReader role assigned at subscription scope by az ad sp create-for-rbacNo macro. Reader permits read access only, so confirm no write role is attached
Template versionThe Zabbix Azure integration page lists one template version per release lineCurrent template for Zabbix 7.4, with separate versions for 7.2 and 7.0

Securing the Azure reader identity and Zabbix macros

The Azure template is only as safe as the service principal and macros behind it. The cards below cover how to scope the reader identity, rotate its secret, limit who can see that secret in Zabbix, keep it out of exports and review access on a schedule.

Scope the reader role to the subscription

The template authenticates with a service principal that holds the reader role scoped to one subscription, which is the least privilege the monitoring needs. Check that the assignment is not inherited from a management group or granted at a wider scope than the subscription you monitor. If you monitor several subscriptions, create one principal per subscription or confirm that a wider grant is a deliberate decision. Confirm the assignment scope before the first discovery run.

Azure template docs

Plan secret rotation and expiry

The client secret created for the service principal has an expiry, and when it lapses every Azure item stops returning data at once. Record the expiry date in your change calendar and set a rotation step that creates the new secret, updates the macro in Zabbix and then removes the old secret. Ask your Azure administrators whether they can see expiry warnings for service principal secrets, and confirm the rotation owner is named.

Restrict who can view secret macros

The client secret is stored as a Zabbix user macro, and users with broad template or host permissions may be able to read it in the interface. Keep the template and its host in a host group that only the monitoring team can edit, and check the user and user group permissions that apply to that group. Confirm in your Zabbix version how secret macro values are displayed and masked for each role before you grant access.

Keep the secret out of exported templates

Exporting a template or host to YAML can carry macro values with it if the secret is stored in plain text at the level being exported. Before sharing an export with a colleague, a vendor or a repository, check that the client secret is not included and that the export contains only macro names. Store exports in version control only after this check, and treat any export that did include the secret as exposed and rotate it.

Review role assignments on a schedule

Role assignments drift as people and projects change, so a reader grant made for one project can outlive it. Set a recurring review of the service principal's role assignments and its secret age, and compare both with the list of subscriptions the Zabbix host is meant to cover. Record who approved each review so that auditors can see the control operating over time.

Vault integration and role design

Storing the four credential macros in a secrets vault and designing Zabbix roles beyond these basics are covered on the Zabbix security page. Use this card as a checklist for the Azure identity itself, then follow that page for the storage and role design that surrounds it. Confirm with your security team which vault and role model they require before you finalize the macro layout.

How the Azure template requests data from Azure

The flow starts on the Zabbix server or a proxy, where script items built into the Azure by HTTP template run without external scripts. The collector authenticates to Entra ID with the reader service principal, then calls Azure Resource Manager and service APIs scoped to one subscription. Responses become item values and discovered objects stored in Zabbix. The trust boundary sits between your network and Azure, so check that outbound HTTPS is allowed from the collecting host and that the client secret stays in macros.

Data path from the Zabbix collector to Azure, with the trust boundary marked.

Common Azure template failures and how to fix them

This table lists the failures teams most often hit with the Azure by HTTP template, with the likely cause and the fix for each. Work through the rows in order, since authentication and discovery problems often hide the symptoms described further down.

SymptomLikely causeFix
Authentication fails on every Azure itemThe tenant ID, client ID or client secret macro holds a value from a different app registration, or the secret has expiredRecreate the service principal with az ad sp create-for-rbac, copy the tenant, client ID and secret again, and update the four credential macros on the host
Discovery returns no virtual machines, scale sets or databasesThe subscription ID macro points at the wrong subscription, or the reader role was assigned to a resource group instead of the subscriptionConfirm the subscription ID, then assign the reader role at subscription scope and rerun discovery after the role propagates
Template items are unsupported after importZabbix server or frontend is older than 7.4, so the current Azure template does not match the running versionUpgrade to Zabbix 7.4 to use the current template, or import the template version built for 7.2 or 7.0 that matches your release
No data from any Azure item, with timeouts in the server logOutbound HTTPS to Azure login and management endpoints is blocked at the firewall, proxy or egress rules of the Zabbix host or proxyAllow outbound HTTPS from the polling host to the Azure endpoints, or route it through an approved egress path, then test from that host with curl before changing Zabbix
Some resource types never appearThe resource type is not covered by the bundled templates, or it sits in a subscription or region the reader identity cannot seeCheck the list of bundled template groups, confirm the resource exists in the subscription scope the principal reads, and treat unlisted types as a gap to confirm with the vendor
Cost items show no data or stale valuesCost Management access is missing from the reader scope, or cost data for the period has not been published yetVerify the principal can read cost data for the subscription, allow time for the provider to publish, and compare the Zabbix value with the portal before escalating
Backup job items stay emptyNo Recovery Services vault or backup job exists in scope, or the vault sits outside the subscription the template readsConfirm the vault and protected items are in the subscription used for discovery, then check that the job ran within the period Zabbix queries

Questions teams ask before connecting Zabbix to Azure

Can our team set up Zabbix monitoring for Azure without outside help?

Yes, if you have someone comfortable with Azure role assignments and Zabbix templates. The setup is a reader service principal, four credential macros and host discovery per subscription, so the work is mostly access and configuration rather than new code. The harder part is sizing it: deciding which subscriptions, resource families and polling intervals belong in scope, and checking that the Zabbix server or proxy can reach Azure endpoints from its network. Teams with an Azure administrator and a Zabbix administrator usually handle a single-subscription pilot in-house, then decide whether the wider rollout justifies a partner.

What makes the Azure monitoring effort larger or smaller?

Four factors drive effort most. The first is the number of subscriptions, since discovery is scoped per subscription and each one needs its own service principal or role assignment. The second is the resource families in use, such as virtual machines, scale sets, Azure SQL, MySQL and PostgreSQL flexible servers, Cosmos DB, backup jobs and cost data. The third is your Zabbix version, because the current Azure template requires Zabbix 7.4 and older lines use separate template versions. The fourth is network paths from the Zabbix server or proxies to Azure, including any outbound proxy or private connectivity rules. Confirm each of these with your environment before asking for a quote.

What do we need from our Azure and Zabbix administrators?

Your Azure administrator needs to create the reader service principal with the reader role scoped to each subscription in scope, and to hand over the client ID, client secret, tenant ID and subscription IDs through a controlled channel. Your Zabbix administrator needs to import the correct template version, set the four credential macros, confirm the host or proxy that will poll Azure, and decide where the secret is stored. Both should agree on secret rotation ownership before go-live, because an expired client secret silently stops data collection.

Does the Azure by HTTP template have a license fee?

Zabbix is open source and states it has no license fee, no device limits and no feature gates, so the template itself does not add a licensing cost. Your costs are the infrastructure to run Zabbix, the Azure resources you query (Azure APIs may carry their own charges, which you should confirm for your subscriptions), and any services you buy for implementation or support. Check the current Zabbix license terms before deployment, since the project moved to the GNU Affero General Public License version 3 from Zabbix 7.0 onward.

How do Zabbix support tiers relate to an Azure integration?

Zabbix technical support is a separate, paid subscription that sits on top of the open source product. Tiers run from Silver, with 8x5 support and a 1 day response, through Gold with a 4 hour response, to Platinum, Enterprise and Global with 24x7 coverage and response times from 2 hours down to 1 hour. A subscription helps when your monitoring is production-critical and you need vendor response on defects. It does not cover building the Azure configuration or your custom templates. Compare the tier response times against your own service expectations and confirm current terms on the Zabbix support page.

What would a consultant scope for an Azure monitoring engagement?

A consultant would normally scope the subscriptions and resource families in use, the Zabbix version and deployment model, the network path to Azure, the service principal and role design, the template selection and macro setup, discovery filters, alerting and ownership after handover. Deliverables typically include a working configuration, documentation of the credentials and rotation process, and a runbook for the Zabbix team. Most engagements are fixed-scope, so scope, deliverables and timelines are agreed in writing before work starts. Ask for the written scope before comparing quotes, and confirm the expected timeline against your change calendar, since no fixed duration applies to every environment.

What should we confirm before scheduling an Azure monitoring rollout?

Confirm that your Zabbix server is on version 7.4 or that you can upgrade to it, since the current Azure template requires that version. Confirm which Azure subscriptions and resource types you want monitored, who owns the service principal and its client secret, and how the secret will be rotated. Confirm that the polling host can reach Azure endpoints through your firewall or proxy. Finally, confirm alert recipients and maintenance windows, because discovered resources will generate problems as soon as triggers are active. Timelines depend on those answers, so agree them before setting a date.

How DeployOpen scopes an Azure monitoring engagement

Scope, deliverables and timelines for an Azure monitoring engagement are agreed in writing before any work starts. DeployOpen deploys Zabbix inside your own infrastructure, so the written scope has to settle where the Zabbix server, database and any proxies run, which network paths they use to reach the Azure management endpoints, and who owns the resulting configuration. Nothing in the Azure side is provisioned on your behalf without a named owner on your team approving it.

For this integration, the written scope would normally list the Zabbix version the Azure template targets (the current template requires Zabbix 7.4, with separate template versions for 7.2 and 7.0), the Azure resource types in scope from the bundled template set, and the subscriptions to be discovered. It would also name the reader service principal created with az ad sp create-for-rbac and the reader role, the four credential macros (client ID, client secret, tenant ID and subscription ID), who stores the secret, and how it is rotated. Cost Management and Backup jobs should appear as explicit inclusions or exclusions, since each adds polling and review effort.

Ask for a quote that separates one-time work (installation, template import, macro setup, discovery filters, dashboards and handover) from recurring work such as template upgrades, secret rotation and ongoing support. Confirm with your Azure administrators which subscriptions, tenants and Azure API limits apply to your estate, because the number of resources discovered is the main driver of polling load and effort. Changes to scope after signature should go through a written change request that restates the impact on the agreed timeline.

How DeployOpen works on this

DeployOpen plans and deploys Zabbix inside your own infrastructure and configures the Azure by HTTP template against your subscriptions, so your team can see how the reader service principal, credential macros and discovery behave before go-live. Engagements are fixed-scope, with the written scope setting what is built and handed over.

How we scope

  • Inventory the subscriptions, resource types and regions that the Azure by HTTP template should discover, and which ones stay out of scope.
  • Confirm the Zabbix version is 7.4 or a version with a matching template release, since the current Azure template requires 7.4.
  • Agree in writing who creates the service principal, who holds the client secret and where the four credential macros are stored.

How we build

  • Create the reader service principal with the reader role scoped to the subscription, then test it against each discovered resource type before enabling polling.
  • Configure the four macros for client ID, client secret, tenant ID and subscription ID, and set discovery filters for virtual machines, databases, Cosmos DB and backup jobs.
  • Review the cost management and API polling settings with your team so request volume and check intervals match the agreed scope.

How we hand over

  • Deliver a configuration record covering the service principal, macro names, discovery scope, template version and the Zabbix host groups used.
  • Walk through alert triggers for each resource type with your operations team, including which problems notify and which only appear on dashboards.
  • Document the steps to rotate the client secret and to update the template when a newer Azure template version is released for your Zabbix version.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, covering template updates after Zabbix or Azure template changes.
  • Retesting of the service principal permissions and discovery results after subscription, role or resource changes in your Azure estate.
  • Support is scoped in writing, so response expectations and included activities are confirmed before the retainer starts.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.