The Simplest Way to Make Azure Functions and Opslevel Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use azure functions and opslevel together to automate service checks and update catalogs. An Azure Function runs small jobs that send live cloud data into OpsLevel. This workflow keeps your service list accurate without manual updates from engineers. When a new app goes live, the function tells the catalog right away. Teams can also trigger cloud tasks from the catalog during an alert. How azure functions and opslevel share data and permissions Data flows both ways between your serverl

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Teams use azure functions and opslevel together to automate service checks and update catalogs. An Azure Function runs small jobs that send live cloud data into OpsLevel.

This workflow keeps your service list accurate without manual updates from engineers. When a new app goes live, the function tells the catalog right away. Teams can also trigger cloud tasks from the catalog during an alert.

How azure functions and opslevel share data and permissions

Data flows both ways between your serverless jobs and your service catalog. First, an Azure Function can push deployment facts or health checks to OpsLevel. The function reads cloud state and sends an HTTP payload to the catalog endpoint. It uses a stored API token to log in and write that data.

Second, OpsLevel can trigger an Azure Function using an outgoing webhook action. A user clicks an action button in the catalog to start a cloud task. The catalog sends a web request to the function URL with a secret key. The function checks the key, runs the job, and logs the result.

Cloud identity ties the rest of the workflow together on the Azure side. The function uses a managed identity to read tags or resource groups in Azure. It then maps those facts to the right team and service in the catalog.

Common failure modes and how to scope roles

Many teams start by sharing one broad API token across every function they build. If that single token leaks, an attacker can overwrite your whole service catalog. Shared service accounts also make it impossible to see which function broke a record.

Broad cloud roles create a second big risk for your production apps. If a webhook function has full admin rights, a bad request can delete resources. Unlogged queries and payloads also leave security teams blind during a routine audit. Worse, raw logs might hold emails, phone numbers, card numbers, or national IDs. Good data masking rewrites matched fields in results so sensitive strings stay safe.

Azure RBAC + Cloud Functions IAM: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You can fix these gaps by scoping every role to one clear task. Give your catalog check function read-only rights on the exact resource groups it scans. Give your repair function write rights only on the single app it restarts. Store all tokens in a cloud key vault instead of plain app settings.

Rotate your catalog tokens and function host keys on a regular schedule. Lock down network paths so webhook functions only accept traffic from known catalog addresses. Log every request with a clear timestamp, caller ID, and outcome for your team.

Keeping service checks fast and reliable

Serverless jobs can hit rate limits if they send too many requests at once. When you scan hundreds of cloud apps, batch your updates into smaller groups. Queue based triggers help smooth out bursts of events from your cloud account.

A queue holds the events while the function sends them at a steady pace. If the catalog endpoint is busy, the queue retries the message later. This simple pattern prevents dropped updates and keeps your service records clean.

You should also test your webhook payloads in a staging setup before going live. Check that the function rejects bad inputs and returns clear status codes. Clear status codes help engineers see right inside the catalog if an action worked.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

How should an Azure Function store its OpsLevel API token?

Store the token in Azure Key Vault and let the function read it. Use a managed identity so you never put secrets in code or settings.

What permissions does a discovery function need in Azure?

Give the function a read role on the specific subscriptions it needs to scan. Never grant write or admin roles to a job that only reads metadata.

How can we secure an Azure Function triggered by OpsLevel?

Require a function key or signed header on every incoming web request. Also restrict the function network rules to only allow known outbound catalog addresses.

The query runs. The emails stay hidden.