Microsoft.Authorization/policyAssignments@2025-03-01 not available
- Dominant language
- Bicep
- Stars
- 3.6k
- Forks
- 830
- Avg merge
- 1d 21m
- Merged PRs (30d)
- 79
Description
**Bicep version**
Bicep CLI version 0.35.1 (462f71eb22)
**Describe the bug**
Version is not available.
```
Message: The resource type 'policyAssignments' could not be found in the namespace 'Microsoft.Authorization' for api version '2025-03-01'. The supported api-versions are '2015-10-01-preview,2016-04-01,2016-12-01,2017-06-01-preview,2018-03-01,2018-05-01,2019-01-01,2019-06-01,2019-09-01,2020-03-01,2020-08-01,2020-09-01,2021-06-01,2022-06-01,2023-04-01,2024-04-01,2024-05-01,2025-01-01'. (Code:InvalidResourceType)
```
This is most likely true for other policy resource types as well.
**To Reproduce**
not needed.
**Additional context**
Add any other context about the problem here.
Contributor guide
Research direction
No file or test is named. Start by tracing how Bicep CLI 0.35.1 obtains and validates Azure resource-provider API versions, then compare the supported Microsoft.Authorization policyAssignments versions with Azure's current API. Done means the 2025-03-01 version is recognized instead of producing InvalidResourceType, with related policy resource types considered as noted in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100