Microsoft.CostManagement settings do not work as expected
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 108
- Forks
- 44
- Avg merge
- 18h 53m
- Merged PRs (30d)
- 29
Description
Bicep version
Bicep CLI version 0.36.177 (09988bb4ae)
Describe the bug
Executing code to set costs tags inheritance performed a work (set inheritance) but deployment bring back errors as posted below.
Error message:
InternalServerError
{
"code": "ResourceDeploymentFailure",
"target": "/subscriptions//providers/Microsoft.CostManagement/settings/taginheritance",
"message": "The response for resource had empty or invalid content."
}
CorrelationID: 50c1811d-d4c1-43be-ad63-ee184127d631
To Reproduce
Steps to reproduce the behavior:
Additional context
Bicep module code:
targetScope = 'subscription'
resource tagInheritanceSetting 'Microsoft.CostManagement/settings@2025-03-01' = {
name: 'taginheritance'
kind: 'taginheritance'
properties: {
// If true, higher-level tags (e.g., subscription) take precedence
// over lower-level tags (e.g., resource group) in cost data
preferContainerTags: true
}
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the subscription-scope module with Bicep CLI 0.36.177 and the Microsoft.CostManagement/settings@2025-03-01 resource shown in the issue. Compare the deployment response with the reported ResourceDeploymentFailure; the issue is done when this configuration deploys without the empty or invalid content error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100