| title | Connecting an Azure subscription | |||||||
|---|---|---|---|---|---|---|---|---|
| intro | You can enable and pay for usage-based billing on {% data variables.product.github %} by connecting an Azure subscription. | |||||||
| redirect_from |
|
|||||||
| versions |
|
|||||||
| shortTitle | Connect Azure sub | |||||||
| permissions | Enterprise owners and organization owners | |||||||
| contentType | how-tos | |||||||
| category |
|
You can pay for metered usage of {% data variables.product.github %} features through Azure by connecting an Azure Subscription ID to your organization or enterprise account on {% data variables.product.github %}. See AUTOTITLE.
{% data reusables.billing.usage-based-billing %}
-
You must be an owner of the {% data variables.product.github %} organization or enterprise account you want to connect to Azure.
-
You must know your Azure subscription ID. See Get subscription and tenant IDs in the Azure portal in the Microsoft Docs.
-
You must be logged into Azure as a user who is able to provide tenant-wide admin consent or arrange to work with a Microsoft Entra Global Administrator to configure an admin consent workflow. See AUTOTITLE.
{% data reusables.billing.nav-to-org-or-ent %} {% data reusables.billing.access-org-or-ent-page %} {% data reusables.billing.click-payment-info %}
-
Scroll to the bottom of the page, to the right of "Metered billing via Azure", click Add Azure Subscription.
-
Sign in to your Microsoft account. {% data reusables.billing.azure-accept-permissions %}
{% data reusables.enterprise-accounts.azure-admin-approval-required-message %}
{% data reusables.billing.azure-select-subscription %} {% data reusables.enterprise-accounts.connect-azure %}
{% data reusables.enterprise-accounts.tenant-app-permissions %}
If you disconnect your Azure subscription from your account, your usage can no longer exceed the amounts included with your plan.
-
On the "Payment information" page, to the right of the subscription ID you want change.
- Edit the subscription: Click {% octicon "pencil" aria-label="Edit Azure Subscription" %} to edit your subscription.
- Disconnect the subscription Click {% octicon "trash" aria-label="Delete Azure Subscription" %} to remove the connection.
To connect an Azure subscription, you'll need appropriate access permissions on both {% data variables.product.github %} and the Azure billing portal. This may require coordination between two different people.
To see a demo of the process from beginning to end, see Billing GitHub consumption through an Azure subscription on {% data variables.product.company_short %}'s YouTube channel. This video demonstrates the process for an enterprise account.