-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated bicep api versions #651
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Oliver,
The changes look good, although I'm still seeing a bunch of these API warnings when I try to deploy a cluster from your branch:
/workspaces/AKS-Construction/bicep/acragentpool.bicep(5,54) : Warning use-recent-api-versions: Use more recent API version for 'Microsoft.ContainerRegistry/registries'. '2023-01-01-preview' is a preview version and there is a more recent non-preview version available. Acceptable versions: 2023-08-01-preview, 2023-07-01, 2022-12-01 [https://aka.ms/bicep/linter/use-recent-api-versions]
/workspaces/AKS-Construction/bicep/keyvault.bicep(58,57) : Warning use-recent-api-versions: Use more recent API version for 'Microsoft.Insights/diagnosticSettings'. '2021-05-01-preview' is 871 days old, should be no more than 730 days old, or the most recent. Acceptable versions: 2016-09-01 [https://aka.ms/bicep/linter/use-recent-api-versions]
/workspaces/AKS-Construction/bicep/aksagentpool.bicep(54,58) : Warning use-recent-api-versions: Use more recent API version for 'Microsoft.ContainerService/managedClusters'. '2023-05-02-preview' is a preview version and there is a more recent non-preview version available. Acceptable versions: 2023-07-02-preview, 2023-07-01, 2023-06-01, 2023-05-01, 2023-04-01, 2023-03-01, 2023-02-01, 2023-01-01, 2022-11-01, 2022-09-01, 2022-07-01, 2022-06-01, 2022-04-01, 2022-03-01, 2022-02-01, 2022-01-01, 2021-10-01 [https://aka.ms/bicep/linter/use-recent-api-versions]
/workspaces/AKS-Construction/bicep/firewall.bicep(54,57) : Warning use-recent-api-versions: Use more recent API version for 'Microsoft.Insights/diagnosticSettings'. '2021-05-01-preview' is 871 days old, should be no more than 730 days old, or the most recent. Acceptable versions: 2016-09-01 [https://aka.ms/bicep/linter/use-recent-api-versions]
/workspaces/AKS-Construction/bicep/network.bicep(282,90) : Warning use-recent-api-versions: Use more recent API version for 'Microsoft.Network/privateEndpoints/privateDnsZoneGroups'. '2021-08-01' is 779 days old, should be no more than 730 days old, or the most recent. Acceptable versions: 2023-05-01, 2023-04-01, 2023-02-01, 2022-11-01, 2022-09-01, 2022-07-01, 2022-05-01, 2022-01-01 [https://aka.ms/bicep/linter/use-recent-api-versions]
/workspaces/AKS-Construction/bicep/network.bicep(340,90) : Warning use-recent-api-versions: Use more recent API version for 'Microsoft.Network/privateEndpoints/privateDnsZoneGroups'. '2021-08-01' is 779 days old, should be no more than 730 days old, or the most recent. Acceptable versions: 2023-05-01, 2023-04-01, 2023-02-01, 2022-11-01, 2022-09-01, 2022-07-01, 2022-05-01, 2022-01-01 [https://aka.ms/bicep/linter/use-recent-api-versions]
/workspaces/AKS-Construction/bicep/network.bicep(409,9) : Warning BCP334: The provided value can have a length as small as 0 and may be too short to assign to a target with a configured minimum length of 3.
/workspaces/AKS-Construction/bicep/nsg.bicep(246,58) : Warning use-recent-api-versions: Use more recent API version for 'Microsoft.Insights/diagnosticSettings'. '2021-05-01-preview' is 871 days old, should be no more than 730 days old, or the most recent. Acceptable versions: 2016-09-01 [https://aka.ms/bicep/linter/use-recent-api-versions]
/workspaces/AKS-Construction/bicep/main.bicep(413,54) : Warning use-recent-api-versions: Use more recent API version for 'Microsoft.ContainerRegistry/registries'. '2023-01-01-preview' is a preview version and there is a more recent non-preview version available. Acceptable versions: 2023-08-01-preview, 2023-07-01, 2022-12-01 [https://aka.ms/bicep/linter/use-recent-api-versions]
/workspaces/AKS-Construction/bicep/main.bicep(452,58) : Warning use-recent-api-versions: Use more recent API version for 'Microsoft.Insights/diagnosticSettings'. '2021-05-01-preview' is 871 days old, should be no more than 730 days old, or the most recent. Acceptable versions: 2016-09-01 [https://aka.ms/bicep/linter/use-recent-api-versions]
/workspaces/AKS-Construction/bicep/main.bicep(815,60) : Warning use-recent-api-versions: Use more recent API version for 'Microsoft.Insights/diagnosticSettings'. '2021-05-01-preview' is 871 days old, should be no more than 730 days old, or the most recent. Acceptable versions: 2016-09-01 [https://aka.ms/bicep/linter/use-recent-api-versions]
/workspaces/AKS-Construction/bicep/main.bicep(1339,58) : Warning use-recent-api-versions: Use more recent API version for 'Microsoft.ContainerService/managedClusters'. '2023-05-02-preview' is a preview version and there is a more recent non-preview version available. Acceptable versions: 2023-07-02-preview, 2023-07-01, 2023-06-01, 2023-05-01, 2023-04-01, 2023-03-01, 2023-02-01, 2023-01-01, 2022-11-01, 2022-09-01, 2022-07-01, 2022-06-01, 2022-04-01, 2022-03-01, 2022-02-01, 2022-01-01, 2021-10-01 [https://aka.ms/bicep/linter/use-recent-api-versions]
/workspaces/AKS-Construction/bicep/main.bicep(1535,58) : Warning use-recent-api-versions: Use more recent API version for 'Microsoft.Insights/diagnosticSettings'. '2021-05-01-preview' is 871 days old, should be no more than 730 days old, or the most recent. Acceptable versions: 2016-09-01 [https://aka.ms/bicep/linter/use-recent-api-versions]
/workspaces/AKS-Construction/bicep/main.bicep(1553,57) : Warning use-recent-api-versions: Use more recent API version for 'Microsoft.Insights/dataCollectionRules'. '2021-09-01-preview' is 748 days old, should be no more than 730 days old, or the most recent. Acceptable versions: 2022-06-01 [https://aka.ms/bicep/linter/use-recent-api-versions]
/workspaces/AKS-Construction/bicep/main.bicep(1636,73) : Warning use-recent-api-versions: Use more recent API version for 'Microsoft.Insights/dataCollectionRuleAssociations'. '2021-09-01-preview' is 748 days old, should be no more than 730 days old, or the most recent. Acceptable versions: 2022-06-01 [https://aka.ms/bicep/linter/use-recent-api-versions]
/workspaces/AKS-Construction/bicep/main.bicep(1756,64) : Warning use-recent-api-versions: Use more recent API version for 'Microsoft.Insights/diagnosticSettings'. '2021-05-01-preview' is 871 days old, should be no more than 730 days old, or the most recent. Acceptable versions: 2016-09-01 [https://aka.ms/bicep/linter/use-recent-api-versions]
Are there updated API versions for these APIs too?
@oliverlabs Any chance to look at this again? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR Summary
Updated bicep API versions using the bruh tool.
Here's a list of changes:
PR Checklist