Skip to content
This repository was archived by the owner on Aug 11, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
12 changes: 0 additions & 12 deletions internal/azure/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
Expand Down
Loading