-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_automation_software_update_configuration
- fix issue about monthly_occurrence
is not allowed to be set to -1
#25574
Conversation
@@ -628,7 +628,7 @@ func (m SoftwareUpdateConfigurationResource) Arguments() map[string]*pluginsdk.S | |||
"occurrence": { | |||
Type: pluginsdk.TypeInt, | |||
Required: true, | |||
ValidateFunc: validation.IntBetween(1, 5), | |||
ValidateFunc: validation.IntInSlice([]int{1, 2, 3, 4, -1}), |
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.
what currently happens if a user tries to set 5? does the API reject or acept it?
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.
API accepts 5
, but it will be displayed as empty on the Portal. If -1
is set, it will be displayed as Last
on the Portal.
While the swagger specifies the |
3da8607
to
1228dcc
Compare
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 🛋️
internal/services/automation/automation_software_update_configuration_resource.go
Outdated
Show resolved
Hide resolved
…uration_resource.go
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Community Note
Description
After testing, it was found that the possible values of
monthly_occurrence
should be1
,2
,3
,4
,-1
,corresponds to "First", "Second", "Third", "Fourth" and "Last" in the Azure Portal respectively. Details are as follows.Submit this PR to replace the non-existent value
5
with-1
to fix #25550.PR Checklist
For example: “
resource_name_here
- description of change e.g. adding propertynew_property_name_here
”Changes to existing Resource / Data Source
Testing
PASS: TestAccSoftwareUpdateConfiguration_occurrence (186.12s)
This is a (please select all that apply):
Related Issue(s)
Fixes #25550