Observação
Before you create or update a cost center, if you're unsure of how spending will be allocated to the cost center, see Cost center allocation for different products.
Creating a cost center
Observação
An enterprise can create up to 250 cost centers.
Create cost centers to monitor and manage expenses for specific organizations or repositories. Multiple organizations, repositories, and users can be assigned to one cost center.
When you create a cost center, you can add organizations, repositories, or users. The cost center will then track spending for the selected entities.
-
In the top-right corner of GitHub, click your profile picture.
-
Depending on your environment, click Your enterprise, or click Your enterprises then click the enterprise you want to view.
-
At the top of the page, click Billing and licensing.
-
Click Cost centers.
-
Click New cost center in the upper-right corner.
-
In the text box under "Name", enter a name for your cost center.
-
If your account is billed to Azure, you have the option to add an Azure ID. Your credentials will be verified against Azure to ensure the Azure IDs associated to your account are available.
-
Under Resources, select the organizations, repositories, and/or users that will be a part of the cost center.
Observação
A resource (organization, repository, or user) can only be assigned to one cost center at a time. If you add a resource that belongs to a different cost center, it will be moved to the new cost center and you will be notified.
-
Click Create cost center.
Adding a budget to a cost center
After you create a cost center, you can add a monthly budget and receive alerts from the cost center to monitor your spending and usage. See Setting up budgets to control spending on metered products.
Viewing cost center usage
You can view the usage of your cost centers and download the usage data for further analysis. See Gathering insights on your spending.
Viewing, editing, and deleting cost centers
You can view, edit, and delete cost centers to manage your business units effectively.
- In the top-right corner of GitHub, click your profile picture.
- Depending on your environment, click Your enterprise, or click Your enterprises then click the enterprise you want to view.
- At the top of the page, click Billing and licensing.
- Click Cost centers.
- Select to the right of a cost center, then click View details, Edit, or Delete.
- Follow the prompts.
Limitations of the cost center API
There are a few current limitations when working with cost centers and the API:
- There is a maximum of 250 cost centers per enterprise.
- You can add or remove up to 50 resources at a time from a cost center using the API.
- Azure subscriptions can only be added to or removed from cost centers through the UI.