A plug marked with an identity shield, its prongs lined up with a service socket that holds a database, a list and an add symbol.
Original concept illustration.

Most apps don’t stop at their own code. They read from a database, write to storage, call a model or send messages to a queue. Getting those connections right is where a lot of quiet risk lives: a connection string pasted into a setting, a broad role assigned “for now” or a dependency nobody can see.

Connections is App Service Builder’s managed way to link your app to Azure services you already own. You pick the service, choose how the app authenticates and review the settings your code will read. Builder records that as a named connection, shows it in your app’s architecture and steers you toward the most secure option it supports, starting with managed identity.

This post covers which services you can connect today, why Connections is a better default than wiring things up yourself with variables and what we’re building next.

Add a connection

In the Builder portal, open your app, select Architecture, then Add connection and choose a service.

Builder portal Architecture page with the Add connection menu open, listing Application Insights, Azure SQL, Connector Namespace connection, Azure Cosmos DB for NoSQL, Azure Event Hubs, Microsoft Foundry model, Azure Key Vault, Azure Managed Redis, Azure Database for PostgreSQL, Azure Service Bus and Storage account. The app name and URL are redacted.

The Add connection dialog then walks you through four steps:

  1. Select a resource. Name the connection, pick a subscription and choose an existing resource. It doesn’t need to live in your app’s resource group.
  2. Authentication. Select a managed identity that’s already assigned to your app, or a protected credential where that service needs one.
  3. Environment variables. Builder suggests runtime variable names and fills known endpoints from the resource. Keep the names your code already reads and add the database, container or deployment it needs.
  4. Review connection. Check the settings and save. Saving records the configuration; it doesn’t deploy. Deploy right away or later.

You can also manage connections with the Builder CLI or the ARM API. The Connect Builder to Azure services guide covers all three paths, each service’s settings and the access each one needs.

Supported services

The Add connection menu currently lists 11 services:

CategoryService
StorageStorage account (Blob Storage)
DatabasesAzure Database for PostgreSQL, Azure SQL, Azure Cosmos DB for NoSQL, Azure Managed Redis
AIMicrosoft Foundry model
MessagingAzure Service Bus, Azure Event Hubs
SecurityAzure Key Vault
ObservabilityApplication Insights
IntegrationConnector Namespace connection

Each one has its own prerequisites, so check the Connections guide before you start. The feature status page tracks current availability.

More services are coming

This list will grow. If the service your app needs isn’t in the menu, submit a feature request and tell us what you’re connecting and why, and we’ll work to get it added. You can also browse and vote on existing requests.

Why use Connections instead of variables

You can still point an app at a service yourself: add its endpoint and a credential as application variables, then write the rest. That works, but it leaves every security decision to you. Connections builds the better defaults in.

ConnectionsDIY with variables
AuthenticationManaged identity first; protected credentials only where neededWhatever you paste in, often a key or connection string
SecretsCredential values are write-only and maskedYou manage and protect the value yourself
SettingsSuggested names; endpoints filled from the resourceTyped by hand
AccessOffers narrow, scoped grants when you deployYou decide what to grant and where
VisibilityShown in the Architecture diagram with a statusNot shown in the diagram or in Connections
HistorySaved with each app versionOnly what you track yourself

Managed identity is the better way to connect

A managed identity is an identity Microsoft Entra ID issues to your app. Your code asks for a short-lived token at runtime instead of storing a password or key. You don’t need to store a long-lived credential in a repository or rotate it by hand.

That’s why Connections leads with it. When a service supports Microsoft Entra authentication, select one of your app’s system-assigned or user-assigned identities.

An Active PostgreSQL connection named database, open on its Authentication tab. Managed identity is selected instead of Password, and the connection uses the app's system-assigned managed identity.

Where a service still needs a credential, Connections stores it as a write-only value delivered to your server-side code at runtime. We moved this blog’s own PostgreSQL connection to a named connection with managed identity, as described in How this blog runs on App Service Builder.

You can see what your app depends on

The portal’s Architecture diagram only shows services you add through the Connections experience. If you wire up a service yourself with variables, your app can still reach it, but that service won’t appear in the diagram or in Connections, and Builder can’t show its status. Adding it as a connection means anyone looking at your app can see its dependencies and whether each one needs setup, is waiting to deploy or is active.

Builder portal Architecture diagram: the app URL node routes to a ready web component, which has a dashed connection to an Azure Database for PostgreSQL connection named database with an Active badge. The app name and URL are redacted.

What Connections doesn’t do yet

Connections records configuration. It doesn’t create the destination service, open its network or test that your app can reach it. Before you rely on a connection:

  • Make sure the service is reachable. Today, the destination needs to be reachable from Builder over its network rules. A destination that’s only reachable through a private endpoint can’t be reached yet.
  • Grant data access. Your app’s identity needs the right data role on the service. Azure management roles aren’t data access.
  • Test a real operation. An Active badge means the configuration is deployed, not that a request succeeded. Try a bounded read before you enable writes.

What’s next

Private connections by default

Today, connections travel over each service’s public endpoint, protected by identity and TLS. As Builder adds private networking, we plan to extend Connections so your app reaches its services privately instead of over the public internet. Our intent is for that to become the default way Connections works, because the most secure option should be the easiest one to choose.

The platform pieces are on the public roadmap: VNet integration is in progress for private networking. Separately, private endpoint support for inbound access to Builder apps is in the backlog. Neither is available yet, and we haven’t announced dates.

Connection validation

We’re also working toward connection validation. Instead of only adding a connection for you, Builder would check that your app can actually talk to the service you connected. It’s on our roadmap but isn’t available yet, so stay tuned.

Try it

Open an app in the Builder portal, choose Architecture, then Add connection. Follow the Connections guide or one of the tutorials for Blob Storage, PostgreSQL, Key Vault or Application Insights.

You can also choose a service-specific template in the Create experience. The template creates the base app, not the service; follow its README to create or add the required resource, then connect the app to it. We’ll keep growing the template library with samples for other services.

If a service is missing, let us know on GitHub.

Thanks for reading. Keep building.

Find another perspective

Join the discussion.

Anyone can read the comments. Sign in with GitHub to comment or react. Replies are public; please keep secrets and personal information out of them.