Introduction
An access token, also known as an API Access Key, generated in the Azure Portal is required to allow PyraCloud to import cost and usage information for your Microsoft Azure subscriptions under an Enterprise Agreement.
These tokens expire on a regular basis, so you will need to follow these instructions each time your token expires to generate a new one and then add it to PyraCloud.
Prerequisites
To generate an API Access Key in the Azure Portal, the user generating the key must have the Enterprise Administrator or Enrollment Admin directory role assigned to their user account. If the user does not have this level of access, the “Manage API Access Keys” section of the Azure Portal will not be visible, and the user will not be able to complete the steps below.
Generate a primary or secondary API Access Key
- Sign in to the Azure portal as an enterprise administrator.
- Select Cost Management + Billing.
- Select Billing scopes from the navigation menu and then select the billing account that you want to work with.
- In the navigation menu, select Usage + Charges.
- Select Manage API Access Keys.
- Select Generate to generate the key.

- Select the expand symbol or select Copy to get the API access key for immediate use.
