diff --git a/CHANGELOG.md b/CHANGELOG.md index 07324073..5de60e2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ ENHANCEMENTS: - `azapi` resources/data sources: Update embedded schema to the latest version. - Support specifying the provider version used in the migration in the `terraform` block. +BUG FIXES: +- Fix a bug that resource group's api-version `2024-07-01` is disabled in the provider. ## v2.3.0 diff --git a/internal/azure/loader.go b/internal/azure/loader.go index eb23a3ec..8533f468 100644 --- a/internal/azure/loader.go +++ b/internal/azure/loader.go @@ -10,7 +10,6 @@ import ( "sync" "github.com/Azure/azapi-lsp/internal/azure/types" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" ) var schema *Schema @@ -52,17 +51,6 @@ func GetApiVersions(resourceType string) []string { } } - // TODO: remove the below codes when Resources RP 2024-07-01 is available - if strings.EqualFold(resourceType, arm.ResourceGroupResourceType.String()) { - temp := make([]string, 0) - for _, v := range res { - if v != "2024-07-01" { - temp = append(temp, v) - } - } - res = temp - } - sort.Strings(res) return res }