Azure / Azure/azure-rest-api-specs
[BUG] Microsoft.Security pricings 2024-01-01 has incorrect scope in documentation
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description
### API Spec link
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/security/resource-manager/Microsoft.Security/stable/2024-01-01/pricings.json
### API Spec version
2024-01-01
### Describe the bug
The API documentation for Microsoft.Security pricings has the incorrect required scope. https://learn.microsoft.com/en-us/azure/templates/microsoft.security/2024-01-01/pricings?pivots=deployment-language-bicep
The documentation states the scope should be a ResourceGroup but the actual API expects a SubscriptionId or a ResourceId. This breaks the bicep linter which seems to look at the API documentation.
### Expected behavior
The documentation should reflect the appropriate target scope for a pricing resource
### Actual behavior
Attempting to deploy a pricing with target scope = resourceGroup fails with the error that only Subscription or Resource are allowed
### Reproduction Steps
Attempting to deploy a pricing with target scope = resourceGroup
### Environment
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.