With the Azure EA integration, you allow the service principal to have access at the billing scope level.
Click to view example image
Click to view example image
Click to view example image
Click to view example image
Click to view example image
Click to view example image
Click to view example image
billingAccountName
: Add the billing account ID you obtained in step 3.billingRoleAssignmentName
: Generate a unique GUID using the a GUID generator, as suggested by Microsoft.api-version
: Use 2019-10-01-preview
.principalId
: The Object ID you copied at the beginning of this section.principalTenantId
: Your Directory (tenant) ID that you copied in step 1.roleDefinitionId
: Replace <YOUR_BILLING_ACCOUNT_ID>
with the Billing account id you copied in step 3.
24f8edb6-1668-4659-b5e2-40bb5f3a7d7e
is the billing role definition ID for an EnrollmentReader.Click to view example image
200 OK
response, indicating that the request was successful.