Migrate to Innovate Summit:
Learn how migrating and modernizing to Azure can boost your business's performance, resilience, and security, enabling you to fully embrace AI.Register now
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This article describes common Cost Management errors and provides information about solutions. When you use Cost Management in the Azure portal and encounter an error that you don't understand or can't resolve, find the error code below. Then try to use the mitigation information or the more information link to resolve the problem.
Here's a list of common error codes with mitigation information.
If you're using the BillingPeriods API, confirm that you're using a classic pay-as-you-go or EA subscription. The BillingPeriods API doesn't support Microsoft Customer Agreement subscriptions.
Confirm that you're using a supported scope for the specific feature or subscription offer type.
There are many feature-specific errors that use the 400 error code. Refer to the error message and API documentation for specific details. For general information, see Cost Management APIs.
More information
For more information about billing periods when transitioning to a Microsoft Customer Agreement, see Billing period.
401
Error message 401.
Mitigation
For an Enterprise Agreement, confirm that the view charges options (Account Owner or Department Administrator) have been enabled.
For a Microsoft Customer Agreement, confirm that the billing account owner has assigned you to a role that can view charges.
This message is an internal error. Wait an hour and try again.
When creating or updating exports, you might view the error when the Microsoft.CostManagementExports resource provider is being registered for your subscription. Resource provider registration is quick, but you may need to wait up to five minutes. If you still see the error for more than 10 minutes, create a support request.
The message indicates that the Enterprise Agreement administrator hasn't enabled Cost Management (view charges) for account owners and subscription users. Contact your administrator.
The message indicates that the Enterprise Agreement administrator hasn't enabled Cost Management (DA view charges) for department admins. Contact your EA administrator.
The message indicates that the subscription doesn't have any charges. The type of subscription that you're using isn't allowed to incur charges. Because the subscription can't have any billed charges, it isn't supported by Cost Management.
FailedDependency
Error message FailedDependency.
Mitigation
When you're using the Forecast API, the error indicates that there's either not enough data to generate an accurate forecast. Or, there are multiple currencies that can't be merged.
If you have multiple currencies, filter down to charges that only have one currency or request an aggregation of CostUSD instead of Cost to get a forecast normalized to USD.
If there's not enough historical data, wait one week since you first had charges on the scope to see a forecast.
The message is an internal error. Wait an hour and try again.
When querying for cost data using the Query, Forecast, or Publish APIs, consider simplifying your query with less group by columns or using a lower-level scope. Avoid using large management groups with more than 50 subscriptions.
IndirectCostDisabled
Error message IndirectCostDisabled.
Mitigation
The message indicates that your partner hasn't published pricing for the Enterprise Agreement enrollment, which is required to use Cost Management. Contact your partner.
The message indicates that the scheduled action/email for an alert that you're creating or updating doesn't have any email recipients. When using the Azure portal, press ENTER after specifying an email address to ensure it's saved in the form.
InvalidView
Error message InvalidView.
Mitigation
The message indicates that the view specified when creating or updating an alert with the ScheduledActions API isn't valid.
When configuring anomaly alerts, make sure you use a kind value of InsightAlert.
MissingSubscription
Error message MissingSubscription.
Mitigation
The message indicates that the HTTP request didn't include a valid scope.
If using the Azure portal, create a support request. The error is likely caused by an internal problem.
If using Cost Management in the Azure portal, try refreshing the page. The error may be caused by an old reference to a deleted object within the system, like a budget or connector.
For any other cases, validate the scope or resource ID.
Indicates that the current user/account does not have adequate Role-Based Access Control (RBAC) permission to perform the action.
Mitigation
If creating a budget that references an action group (contactGroups in the request body), make sure the user/account executing the PUT request has both Cost Management Contributor (or Microsoft.Consumption/budgets/write) access as well as Monitoring Reader (or Microsoft.Insights/actionGroups/read) access.
If using a management group, verify that all subscriptions have a supported offer type. Cost Management doesn't support management groups with Microsoft Customer Agreement subscriptions.
If using the ExternalBillingAccounts or ExternalSubscriptions APIs, verify that the Microsoft.CostManagement resource providerRP was registered for your Microsoft Entra instance. Resource Provider registration is required to use Cost Management for AWS.
Note
The Connector for AWS in the Cost Management service retires on March 31, 2025. Users should consider alternative solutions for AWS cost management reporting. On March 31, 2024, Azure will disable the ability to add new Connectors for AWS for all customers. For more information, see Retire your Amazon Web Services (AWS) connector.
If you get an Empty GUID user id error, update the bearer token associated with the request. You might temporarily see the error in the Azure portal, but it should resolve itself. If you continue to see the error in the Azure portal, refresh your browser.