Step 3: Connect your Azure subscription
- Who
- Enterprise ownerAzure subscription ownerEntra admin
- Hands-on
- ≈ 15 min
- Then wait
- Admin consent, if someone else approves
- Needs
- 2Setup user
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
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.
Connect the subscription
Section titled “Connect the subscription”-
Scroll to the bottom of Payment information. Next to Metered billing via Azure, click Add Azure Subscription.
-
Sign in with the Microsoft account that has the Owner role on the subscription.
-
Review Permissions requested and click Accept. This is the admin consent for GitHub’s app in your Entra tenant.
-
Under Select a subscription, pick your subscription ID.
-
Tick the box confirming that you want to be billed for metered services through this subscription.
-
Click Connect.
Good to know about the bill
Section titled “Good to know about the bill”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.
Troubleshooting
Section titled “Troubleshooting”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.
Done when…
Section titled “Done when…”- Admin consent for GitHub’s app is granted in Microsoft Entra ID.
- Your subscription ID shows under Payment information › Metered billing via Azure.