Skip to main content

Connecting an Azure subscription to your enterprise

You can use your Microsoft Enterprise Agreement to enable and pay for GitHub Actions, GitHub Packages, and GitHub Codespaces usage.

About Azure subscriptions and GitHub Enterprise Cloud

If you purchased GitHub Enterprise through a Microsoft Enterprise Agreement, you can connect your Azure Subscription ID to your enterprise account to enable and pay for any GitHub Codespaces usage, and for GitHub Actions or GitHub Packages usage beyond the amounts included with your account. For more information, see "About billing for GitHub Actions and "About billing for GitHub Packages."

Note: If your enterprise account is on a Microsoft Enterprise Agreement, connecting an Azure subscription is the only way to use GitHub Actions and GitHub Packages beyond the included amounts, or to use GitHub Codespaces at all.

After you connect an Azure subscription, you can also manage your spending limits.

Connecting your Azure subscription to your enterprise account

To connect your Azure subscription, you must have owner permissions to the subscription.

  1. 在 GitHub.com 的右上角,单击你的个人资料照片,然后单击“你的企业”。 GitHub Enterprise Cloud 上个人资料照片下拉菜单中的“你的企业”

  2. 在企业列表中,单击您想要查看的企业。 企业列表中的企业名称

  3. 在企业帐户侧边栏中,单击 “设置”。 企业帐户侧边栏中的“设置”选项卡

  4. 在左侧边栏中,单击“计费”。 企业帐户设置侧边栏中的“计费”选项卡

  5. 在“计费”下,单击“付款信息”。

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

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

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

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

    Note: GitHub's Subscription Permission Validation requests read-only access to display the list of available subscriptions. 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 Microsoft identity platform and OAuth 2.0 authorization code flow in Microsoft Docs.

  10. Click Connect.

Disconnecting your Azure subscription from your enterprise account

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

  1. 在 GitHub.com 的右上角,单击你的个人资料照片,然后单击“你的企业”。 GitHub Enterprise Cloud 上个人资料照片下拉菜单中的“你的企业”

  2. 在企业列表中,单击您想要查看的企业。 企业列表中的企业名称

  3. 在企业帐户侧边栏中,单击 “设置”。 企业帐户侧边栏中的“设置”选项卡

  4. 在左侧边栏中,单击“计费”。 企业帐户设置侧边栏中的“计费”选项卡

  5. 在“计费”下,单击“付款信息”。

  6. Under "Azure subscription", to the right of the subscription ID you want to disconnect, click .

  7. Review the prompt, then click Remove.