Azure / Azure/bicep-types-az

API version mismatch with documentation

Open
#1,985 1 comment 0 reactions 0 assignees View on GitHub
API Management Service Attention
Dominant language
TypeScript
Stars
108
Forks
44
Avg merge
18h 53m
Merged PRs (30d)
29

Description

**Bicep version**
run `bicep --version` via the Bicep CLI, `az bicep version` via the AZ CLI or via VS code by navigating to the extensions tab and searching for Bicep

Bicep CLI version 0.21.1

**Describe the bug**
Bicep is giving following warnings for api's -
**API's** - Microsoft.Management/managementGroups/subscriptions@2021-04-01 and Microsoft.Authorization/policySetDefinitions@2021-06-01
**Warning** - Use more recent API version for 'Microsoft.Authorization/policyDefinitions'. '2021-06-01' is 912 days old, should be no more than 730 days old, or the most recent. Acceptable versions: 2023-04-01.
According to documentation, the latest available version for these api's are 2021-04-01 (https://learn.microsoft.com/en-us/azure/templates/microsoft.authorization/policydefinitions?pivots=deployment-language-bicep).

The bicep is suggesting a version which is not available online. Is there a new version available for these api's or not?

**To Reproduce**
Use this Microsoft.Authorization/policySetDefinitions@2021-06-01 api in a bicep file.

**Additional context**
Add any other context about the problem here.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the warning with Microsoft.Authorization/policySetDefinitions@2021-06-01 and compare the reported acceptable version with the Microsoft.Authorization API documentation linked in the issue. Check whether the type definitions and documentation disagree about an available API version; done means the mismatch is confirmed and the issue has a clear correction or explanation.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.