Skip to main content

Подключение подписки Azure

Вы можете включить и заплатить за выставление счетов на основе использования на ваш экземпляр GitHub Enterprise Server путем подключения подписки Azure.

You can pay for metered usage of GitHub features through Azure by connecting an Azure Subscription ID to your organization or enterprise account on GitHub. See Azure subscription payments.

Prerequisites

  • You must be an owner of the 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 an Azure AD global administrator to configure an admin consent workflow. See Azure subscription payments.

Connecting your Azure subscription to your organization account

  1. In the upper-right corner of GitHub, click your profile picture, then click Your organizations.

  2. Next to the organization, click Settings.

  3. In the "Access" section of the sidebar, click Billing and plans.

  4. Under "Billing Management", to the right of "Metered billing via Azure", click Add Azure Subscription.

  5. Sign in to your Microsoft account.

  6. Review the "Permissions requested" prompt. If you agree with the terms, click Accept.

    If you don't see a "Permissions requested" prompt, and instead see a message indicating that you need admin approval, see Troubleshooting Azure subscription connection problems.

  7. Under "Select a subscription", select the Azure Subscription ID that you want to connect to your organization.

    1. Select By clicking "Connect", you are confirming that you want to be billed for metered services via the selected Azure subscription.
    2. Click Connect.

    To select an Azure subscription, you must have owner permissions to the subscription. If the default tenant does not have the right permissions, you may need to specify a different tenant ID. For more information, see Azure subscription payments and Microsoft identity platform and OAuth 2.0 authorization code flow in Microsoft Docs.

Connecting your Azure subscription to your enterprise account

  1. In the top-right corner of GitHub Enterprise Server, click your profile picture, then click Enterprise settings.

    Screenshot of the dropdown menu shown when you click your profile picture on GitHub Enterprise Server. The "Enterprise settings" option is outlined.

  2. On the left side of the page, in the enterprise account sidebar, click Billing and licensing.

  3. Under "Billing & Licensing", click Payment information.

  4. Under "Payment Information", click Add Azure Subscription.

  5. To sign in to your Microsoft account, follow the prompts.

  6. Review the "Permissions requested" prompt. If you agree with the terms, click Accept.

    If you don't see a "Permissions requested" prompt, and instead see a message indicating that you need admin approval, see Troubleshooting Azure subscription connection problems.

  7. Under "Select a subscription", select the Azure subscription ID that you want to connect to your enterprise.

    1. Select By clicking "Connect", you are confirming that you want to be billed for metered services via the selected Azure subscription.
    2. Click Connect.

    To select an Azure subscription, you must have owner permissions to the subscription. If the default tenant does not have the right permissions, you may need to specify a different tenant ID. For more information, see Azure subscription payments and Microsoft identity platform and OAuth 2.0 authorization code flow in Microsoft Docs.

Editing or disconnecting your Azure subscription from an account

If you disconnect your Azure subscription from your account, your usage can no longer exceed the amounts included with your plan.

  1. Under "Billing Management", then under "Metered billing via Azure", to the right of the subscription ID you want change.

    • Edit the subscription: Click to edit your subscription.
    • Disconnect the subscription Click to remove the connection.

Video demonstration of connecting a subscription

To connect an Azure subscription, you'll need appropriate access permissions on both 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 GitHub's YouTube channel. This video demonstrates the process for an enterprise account. If you're connecting a subscription to an organization account, see Connecting your Azure subscription to your organization account.

Further reading