-
Notifications
You must be signed in to change notification settings - Fork 756
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
Allow the ability for use-recent-api-version
linter rule duration to be configurable
#8869
Comments
Additionally I would prefer to be able to configure the rule in a way to always warn me when there is a new version no matter the period and no matter that the new version is preview. We want to keep our templates up to date and currently this rule does not fully work in certain situations for us. |
@StephenWeatherford since this is no in progress curious on when this may be released. Does this mean that since the Milestone it is assigned to is due by May 01, 2023, we will be able to take advantage of this configuration sometime in May 2023? |
@ugreg Yes. Working on it now. |
@slavizh Stan...
Could you provide more details? I'm adding a new max-allowed-age-in-days property to the use-recent-api-version rule. If you set it to zero, then only the most recent apiVersion is allowed. With the exception that an older non-preview version is preferred over a newer preview version (same as currently behaves). For example, the most recent versions of Microsoft.DataMigration/services are:
If you specify services@2022-03-30-preview: param location string
resource storageaccount 'Microsoft.DataMigration/services@2022-03-30-preview' = {
name: 'name'
location: location
kind: 'StorageV2'
sku: {
name: 'Premium_LRS'
}
} it gives this warning:
This behavior was taken from the ARMTTK. Are you saying you'd like a configuration to turn off the preference of non-preview for preview, so that 2022-03-30-preview is accepted if it's the newest, even if there's an old non-preview version? Thx. |
@StephenWeatherford yes, exactly that. As every Azure team develops differently and sometimes preview is the only one available with specific feature or it is the latest, we prefer during our development to know that there is a newer version even if preview. We can decide on per RP bases if we should now update the version or not. When our end users deploy our solutions they basically have different bicepconfig file than the one we use in development so they do not see these warnings. We basically guarantee and support what we have developed works. |
|
Creating as per the discussion in #8013 (comment)
We should consider allowing the
use-recent-api-version
linter rule duration to be configurable as this may be different per consumer of the rule rather than a hardcoded value/durationThe text was updated successfully, but these errors were encountered: