Skip to content

Step 3: Connect your Azure subscription

Who
Enterprise ownerAzure subscription ownerEntra admin
Hands-on
≈ 15 min
Then wait
Admin consent, if someone else approves

Have ready

  • An enterprise owner signed in to SUBDOMAIN.ghe.com; right now that’s the setup user
  • The Azure subscription ID (how to find it)
  • A Microsoft account with the Owner role on that subscription
  • An Entra Global Administrator on standby, unless that account may grant tenant-wide consent itself
Your setup, sketchedSketch: Microsoft Entra ID signs people in to your GHE.com enterprise (single sign-on) and syncs users and groups (SCIM). Your Azure subscription pays for usage. Developers sign in from their IDE or CLI and use Copilot.Entra IDGHE.comCopilotAzureIDESSOSCIMbillinglogin

The part of your setup this step touches

GitHub bills your enterprise’s usage through Azure: licenses, Copilot, Actions minutes and storage. You connect once; after that, it runs on its own.

How GitHub ends up on your Azure invoiceSketch: once, in step 3, an Entra admin consents to GitHub’s app and the subscription Owner picks the Azure subscription. From then on, usage of your GHE.com enterprise (licenses, Copilot, Actions, storage) is billed through that subscription and appears on your Azure invoice on the 1st of each month.Once, in step 3:an Entra admin consents to GitHub’s app,the subscription Owner picks the subscriptionGHE.comlicenses · CopilotActions · storageAzure subscriptionmeteredbillingAzure invoicemonthly,on the 1stusagebilled
  1. Scroll to the bottom of Payment information. Next to Metered billing via Azure, click Add Azure Subscription.

  2. Sign in with the Microsoft account that has the Owner role on the subscription.

  3. Review Permissions requested and click Accept. This is the admin consent for GitHub’s app in your Entra tenant.

  4. Under Select a subscription, pick your subscription ID.

  5. Tick the box confirming that you want to be billed for metered services through this subscription.

  6. Click Connect.

Billed on the 1st

Usage from the day you connect shows up on your Azure invoice on the 1st of each month.

No prepaid usage

Prepaid usage isn’t available when you pay through Azure.

Several subscriptions?

Cost centers let you bill each department, for example, to its own subscription.

Your subscription isn’t in the list

Your account doesn’t have the Owner role on it, or the subscription lives in another tenant. Switch to the right tenant during the Microsoft sign-in, or ask for the Owner role.

The Microsoft sign-in window fails behind your proxy

Allow https://github.com/enterprises/oauth_callback, including all query parameters, while you connect. You can remove it afterwards, but you need it again to change the subscription later.

  • Admin consent for GitHub’s app is granted in Microsoft Entra ID.
  • Your subscription ID shows under Payment information › Metered billing via Azure.
All checkpoints on one printable page →
Connecting an Azure subscription so GitHub usage shows up on your Azure bill.Microsoft video series, recorded in October 2025, in English. Screens may have changed since, and the video may show GitHub.com instead of GHE.com. Loads from YouTube (youtube-nocookie.com) only after you press play. Open on YouTube ↗
GitHub’s own walkthrough of paying for GitHub usage through Azure.Official GitHub video, in English. Screens may have changed since recording. Loads from YouTube (youtube-nocookie.com) only after you press play. Open on YouTube ↗