diff --git a/internal/services/automation/automation_software_update_configuration_resource.go b/internal/services/automation/automation_software_update_configuration_resource.go index 9d98a526ce3e..fb71786ebcae 100644 --- a/internal/services/automation/automation_software_update_configuration_resource.go +++ b/internal/services/automation/automation_software_update_configuration_resource.go @@ -38,6 +38,7 @@ func (a *AzureQuery) LoadSDKTags(tags map[string][]string) { if tags == nil { return } + a.Tags = nil for k, vs := range tags { t := Tag{} t.Tag = k @@ -181,12 +182,14 @@ func (s *Schedule) LoadSDKModel(info *softwareupdateconfiguration.SUCSchedulePro if setting := info.AdvancedSchedule; setting != nil { s.AdvancedWeekDays = pointer.ToSliceOfStrings(setting.WeekDays) if setting.MonthDays != nil { + s.AdvancedMonthDays = nil for _, v := range *(setting.MonthDays) { s.AdvancedMonthDays = append(s.AdvancedMonthDays, int(v)) } } if setting.MonthlyOccurrences != nil { + s.MonthlyOccurrence = nil for _, occ := range *setting.MonthlyOccurrences { day := ""