Microsoft.Security/pricings@2024-01-01 | api
- Dominant language
- TypeScript
- Stars
- 108
- Forks
- 44
- Avg merge
- 18h 53m
- Merged PRs (30d)
- 29
Description
### Resource Type
Microsoft.Security/pricings
### Api Version
2024-01-01
### Issue Type
Confusing error message on deployment
### Other Notes
we get the below error when trying to deploy this bicep api template for Microsoft.Security/pricings@2024-01-01,
the property 'enforce' should have the value of 'true' or 'false' - error states 'null | string'
the property 'isenabled'' should have the value of 'true' or 'false' - error states 'null | string'
**WARNING: /agent/_work/1/s/modules/securitycenter.bicep(22,14) : Warning BCP036: The property "enforce" expected a value of type "null | string" but the provided value is of type "true". If this is an inaccuracy in the documentation, please report it to the Bicep Team. [https://aka.ms/bicep-type-issues]
/agent/_work/1/s/modules/securitycenter.bicep(25,20) : Warning BCP036: The property "isEnabled" expected a value of type "string" but the provided value is of type "true". If this is an inaccuracy in the documentation, please report it to the Bicep Team. [https://aka.ms/bicep-type-issues]**
### Bicep Repro
resource securityCenterPricing 'Microsoft.Security/pricings@2024-01-01' = [for name in enableSecurityCenterFor: {
name: name
properties: {
enforce: true
extensions: [
{
isEnabled: true
name: 'string'
}
]
pricingTier: 'standard'
subPlan: 'string'
}
}]
### Confirm
- [X] I have read the troubleshooting guide and looked for duplicates.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Microsoft.Security/pricings@2024-01-01 resource and reproduce the diagnostics from modules/securitycenter.bicep, focusing on the enforce and isEnabled properties. Compare the generated resource definition with the Bicep repro; done means valid boolean values no longer produce incorrect string-type warnings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, typescript
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100