Azure permissions and security

CloudZero connects to your Azure accounts using read-only access. You control all permissions, and connections do not update themselves. This page covers how the connection works, what CloudZero accesses, and where to review the full permissions.

How the connection works (service principal)

CloudZero connects to your Azure tenant through a read-only application called a service principal. You authorize this application (named CloudZeroPlatform) in your tenant during setup. CloudZero then assumes the application's identity to read your cost and resource data. All access is read-only.

The service principal is created once per tenant. If you connect multiple billing accounts or subscriptions within the same tenant, they share the same service principal.

For setup instructions, see the guide for your agreement type: Microsoft Customer Agreement (MCA), Enterprise Agreement (EA), or Cloud Solution Provider (CSP). For a Microsoft Partner Agreement (MPA) subscription, follow the CSP guide.

What CloudZero accesses

Billing connections

The data CloudZero collects depends on your agreement type and billing scope. Each connection uses a read-only role that grants access to cost and billing data. Some roles also let CloudZero read your subscription tags (see Subscription tags). CloudZero cannot query resource configurations or modify any resources through billing connections.

Agreement typeScopeRoleData collected
MCABilling accountBilling Account ReaderUsage, billing, and invoice data across all subscriptions
MCABilling profileBilling Profile ReaderUsage, billing, and invoice data for subscriptions in the profile
MCAInvoice sectionInvoice Section ReaderUsage and billing data (no invoice data)
MCASubscriptionBilling ReaderUsage and billing data for a single subscription (no invoice data)
EABilling accountEnrollmentReaderUsage, billing, and discount data, plus invoice tax
CSPSubscriptionBilling ReaderUsage and billing data for a single subscription (no invoice data)
MPASubscriptionBilling ReaderUsage and billing data for a single subscription (no invoice data)

For MCA invoice section and subscription scopes, and for CSP and MPA subscriptions, Marketplace purchases not directly associated with the subscriptions in scope cannot be collected.

Azure reports subscriptions bought through a CSP as MPA, so a CSP subscription connected with Auto-detect appears as MPA. To connect an MPA billing account directly, contact your account manager. For what cost data CSP and MPA connections include, see Azure credits and adjustments.

Subscription tags

Billing connections also add your Azure subscription tags to your cost data. CloudZero reads the tags of every subscription where the CloudZeroPlatform application has an Azure role-based access control (RBAC) role, such as Reader or Billing Reader. The EA billing account role and the MCA billing account, billing profile, and invoice section roles grant access to billing data only, not to subscriptions. Those connections also need the Reader role to include subscription tags.

Agreement type and scopeSubscription tags included
EA billing accountAfter you assign Reader
MCA billing account, billing profile, or invoice sectionAfter you assign Reader
MCA subscriptionYes, with no extra setup
CSP or MPA subscriptionYes, with no extra setup

If you already assigned Reader for a resource metadata connection in the same tenant, CloudZero reads the tags of those subscriptions with no further setup.

To assign Reader, you need the Owner, User Access Administrator, or Role Based Access Control Administrator role at the management group or subscription you choose. Billing roles, such as EA enrollment admin or MCA billing account owner, don't grant this.

To assign Reader:

  1. In the Azure Portal, signed in to the tenant of your billing connection, search for Management groups and select the management group that contains your subscriptions. To include only specific subscriptions, search for Subscriptions and select each subscription instead.
  2. Select Access control (IAM).
  3. Select Add > Add role assignment.
  4. On the Role tab, search for and select the Reader role.
  5. Select Next.
  6. On the Members tab, select User, group, or service principal.
  7. Choose Select members.
  8. Search for and select CloudZeroPlatform.
  9. Select Next.
  10. Select Review + assign.

For more details on assigning Azure roles, see Assign Azure roles using the Azure portal in the Azure documentation.

CloudZero adds subscription tags to your cost data from the day it can read them; earlier days stay untagged. Until CloudZero can read your subscriptions, the connection details page shows a No subscriptions visible or Subscription tags not read recommendation. Your cost data is unaffected; only the subscription tags are missing.

Resource metadata connections

Resource metadata connections use the Reader role, which provides read-only access to resource properties without access to secrets, keys, or data within the resources. CloudZero collects:

  • Resource names, types, and locations
  • Resource group assignments
  • Tags applied to resources
  • Management group hierarchy

For setup instructions, see Connecting Azure resource metadata.

PowerShell scripts

CloudZero publishes a PowerShell script for automating billing role assignments. The script supports MCA (billing account scope) and EA agreement types.

Supported currencies

For Enterprise Agreement connections, CloudZero detects your billing currency and ingests cost data in that currency. You can change it in the Billing Currency field on the connection details page. The new currency applies to data CloudZero ingests after the change.

For other agreement types, CloudZero supports Azure cost data in USD. If your Azure costs are billed in a different currency, contact your account manager.

ℹ️

Have questions or feedback? Reach out to your account manager.


Did this page help you?