Skip to content

Commit

Permalink
[hot-fix] azurerm_log_analytics_linked_storage_account - add StateU…
Browse files Browse the repository at this point in the history
…pgraders in schema (#18556)
  • Loading branch information
teowa authored Sep 29, 2022
1 parent d37ed72 commit 08ad979
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/helpers/tf"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
"github.com/hashicorp/terraform-provider-azurerm/internal/features"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/loganalytics/migration"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/suppress"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation"
Expand All @@ -37,6 +38,11 @@ func resourceLogAnalyticsLinkedStorageAccount() *pluginsdk.Resource {
return err
}),

SchemaVersion: 1,
StateUpgraders: pluginsdk.StateUpgrades(map[int]pluginsdk.StateUpgrade{
0: migration.LinkedStorageAccountV0ToV1{},
}),

Schema: map[string]*pluginsdk.Schema{
"data_source_type": {
Type: pluginsdk.TypeString,
Expand Down

0 comments on commit 08ad979

Please sign in to comment.