Microsoft Azure
What Plutus imports
Section titled “What Plutus imports”- Spend by service and resource group
- Cost by subscription
- Reservation utilization and expiration alerts
How the connection works
Section titled “How the connection works”Plutus connects to Azure without a client secret. You never create, paste or store a secret, and there is nothing to rotate or expire.
- Plutus signs a short-lived token (valid for five minutes) that identifies your Plutus account.
- Microsoft Entra checks that token against a federated credential on your app registration or managed identity. The credential only accepts the issuer, subject and audience for your Plutus account.
- Entra returns a short-lived access token for Azure Resource Manager. That identity holds the read-only roles listed below.
The issuer, subject and audience are not secret. A token still has to be signed by Plutus to be accepted.
Connecting
Section titled “Connecting”Method: Federated credential (Microsoft Entra)
- In the Microsoft Entra admin center, create an app registration or a user-assigned managed identity for Plutus. Note its client ID and your tenant ID (the Directory (tenant) ID).
- In Plutus, go to Connect > Sources, find Microsoft Azure and open the connection form. Under Federated credential setup, copy the Issuer, Subject identifier and Audience.
- In Entra, add a federated credential with those values:
- On an app registration: Certificates & secrets → Federated credentials → Add credential, then choose Other issuer.
- On a user-assigned managed identity: Federated credentials → Add credential.
- In the Azure portal, go to Subscriptions → your subscription → Access control (IAM) → Add role assignment. Assign Cost Management Reader to the app registration or managed identity.
- Optional, for savings recommendations, the resource inventory and VM utilization: create the Plutus Resource Reader custom role and assign it to the same identity on the same subscription. See Plutus Resource Reader.
- If you own Azure reservations, also assign Reservations Reader to the same identity. See Reservations.
- In the Plutus form, enter:
- Tenant ID: the Directory (tenant) ID. A verified domain such as
contoso.onmicrosoft.comalso works. - Client ID: the app registration’s Application (client) ID, or the managed identity’s client ID.
- Subscription ID: the subscription you assigned Cost Management Reader on.
- Cost Allocation Tag Key (optional): an Azure resource tag key whose values you want to use in cost-tag rules.
- Billing Account ID and Billing Profile ID (optional): for Microsoft Customer Agreements, to track your Azure credit balance and reservation utilization. Find them under Cost Management → Billing scopes → your billing account → Properties. Leave both blank on any other agreement type (pay-as-you-go, EA). Everything else still works without them.
- Tenant ID: the Directory (tenant) ID. A verified domain such as
- Save the connection.
A new federated credential can take several minutes to take effect in Entra. While a connection has never synced, Plutus retries automatically for just under three minutes before it reports an error.
Permissions
Section titled “Permissions”Everything is read-only. The role assignments are the only access Plutus has to your Azure resources. Only Cost Management Reader is required.
| Role | Scope | Why |
|---|---|---|
| Cost Management Reader | The subscription | Reads cost data. The only role cost sync needs. |
| Plutus Resource Reader (custom) | The subscription | Reads Azure Advisor cost recommendations, the resource inventory and VM metrics. Optional. |
| Reservations Reader | Billing scope | Reads reservation utilization and expiration. Needed only if you own reservations. |
Plutus Resource Reader
Section titled “Plutus Resource Reader”Plutus Resource Reader is a custom role with exactly the read actions Plutus uses beyond cost data. It replaces the built-in Reader and Monitoring Reader roles, which are each */read on every resource type in the subscription. It has no */read, no log search or query action, and nothing that can change, create or delete a resource.
| Action | What Plutus reads with it |
|---|---|
Microsoft.Advisor/recommendations/read |
Azure Advisor cost recommendations |
Microsoft.ResourceGraph/resources/read |
The resource inventory query |
Microsoft.Resources/subscriptions/read |
The subscription itself, which the query is scoped to |
Microsoft.Compute/virtualMachines/read |
Virtual machines |
Microsoft.Compute/disks/read |
Managed disks |
Microsoft.Compute/snapshots/read |
Snapshots |
Microsoft.Network/publicIPAddresses/read |
Public IP addresses |
Microsoft.Network/loadBalancers/read |
Load balancers |
Microsoft.Sql/servers/read, Microsoft.Sql/servers/databases/read |
SQL databases |
Microsoft.OperationalInsights/workspaces/read |
Log Analytics workspace settings (retention, SKU, daily cap), never log data |
Microsoft.Insights/Metrics/Read |
VM CPU, network and disk metrics |
Resource Graph returns only resources the caller is allowed to read, so the query action alone finds nothing. The per-type read actions are what make each type visible, and a type with no read action here doesn’t appear in Plutus’s inventory.
To create it with the Azure CLI, save this as plutus-resource-reader.json, replacing <subscription-id>:
{ "Name": "Plutus Resource Reader", "Description": "Plutus read-only access to Advisor recommendations, the resource inventory and VM metrics.", "Actions": [ "Microsoft.Advisor/recommendations/read", "Microsoft.ResourceGraph/resources/read", "Microsoft.Resources/subscriptions/read", "Microsoft.Compute/virtualMachines/read", "Microsoft.Compute/disks/read", "Microsoft.Compute/snapshots/read", "Microsoft.Network/publicIPAddresses/read", "Microsoft.Network/loadBalancers/read", "Microsoft.Sql/servers/read", "Microsoft.Sql/servers/databases/read", "Microsoft.OperationalInsights/workspaces/read", "Microsoft.Insights/Metrics/Read" ], "NotActions": [], "AssignableScopes": ["/subscriptions/<subscription-id>"]}Then create the role and assign it. <principal-object-id> is the identity’s object ID, not its client ID: for an app registration, the object ID of its service principal under Enterprise applications (or az ad sp show --id <client-id> --query id); for a user-assigned managed identity, its principal ID.
az role definition create --role-definition plutus-resource-reader.jsonaz role assignment create --assignee-object-id <principal-object-id> \ --assignee-principal-type ServicePrincipal \ --role "Plutus Resource Reader" --scope /subscriptions/<subscription-id>You can also create the same custom role in the portal (Access control (IAM) → Add → Add custom role) with the actions above. Role assignments take a few minutes to apply. The next sync after that picks them up.
Things to know:
- NAT gateways aren’t covered. Microsoft documents no
Microsoft.Network/natGateways/readaction, so the role doesn’t list one and NAT gateways don’t appear in the inventory. No Plutus finding depends on them. Reader plus Monitoring Reader also work and do cover NAT gateways, at the cost of*/readon everything. - Custom role names are unique per Entra tenant. For a second subscription in the same tenant, create the role again under a different name, with that subscription in
AssignableScopes. - Existing connections keep working. Every role beyond Cost Management Reader is optional for cost sync. A call Plutus is refused is recorded as not collected and the rest of the sync carries on. A connection that was given Reader and Monitoring Reader keeps working as it is. To move it to least privilege, assign Plutus Resource Reader and then remove the two broader roles.
Reservations
Section titled “Reservations”Azure Reservation utilization on the commitment utilization page needs the same Billing Account ID and Billing Profile ID as step 7, plus one more role assignment: Reservations Reader at billing scope, which is broader than the subscription-scoped Cost Management Reader in step 4. Without it, cost sync is unaffected and the reservation step is skipped. A subscription with no billing profile reports as not applicable rather than failing.
Troubleshooting
Section titled “Troubleshooting”Plutus shows these messages on the connection when a sync or test fails.
| Message (start of) | Cause | Fix |
|---|---|---|
| Azure needs the tenant ID, client ID and subscription ID | One of those fields is empty. | Fill in the missing field. |
| Azure tenant ID must be the Directory (tenant) ID | The tenant ID isn’t a GUID or a verified domain. | Copy the Directory (tenant) ID from the Entra admin center. |
| Azure client ID or subscription ID must be a GUID | The value isn’t in GUID format. | Copy the value again from the portal. |
| This app registration or managed identity has no federated credential | The identity has no federated credential at all (AADSTS70025). |
Add one with the issuer, subject and audience shown in the Plutus form. A credential added in the last few minutes can take that long to apply. |
| Microsoft Entra found no federated credential matching the Plutus identity | No credential matches the token’s issuer, subject or audience (AADSTS70021). |
Check that the issuer and subject are exactly the values in the Plutus form, and that the audience is api://AzureADTokenExchange. Wait a few minutes if the credential is new. |
| Microsoft Entra could not find the application in this tenant | The client ID or tenant ID is wrong (AADSTS700016). |
Check the client ID and the tenant ID. |
| Microsoft Entra could not find this tenant | The tenant ID is wrong (AADSTS90002). |
Check the Directory (tenant) ID. |
| Microsoft Entra could not validate the Plutus token | Entra rejected the token itself (AADSTS700027, AADSTS50027 or AADSTS50013). |
Contact support. |
| Keyless Azure access is not configured on this Plutus deployment | A Plutus-side configuration problem. | Contact support. |
- Existing connections. Plutus no longer uses client secrets. A client secret stored on an Azure connection is ignored, and sync signs in with the federated credential only. A connection that was set up with a secret needs a federated credential on the same app registration, with the values from the Plutus form, before it can sync.
- Subscription and tenant IDs. Plutus checks their format when you save the connection and again before each sign-in.
Azure savings plans (a separate product from reservations) are not covered. Reservation expiration alerts are.