Skip to content

fix(azure-rg): validate group name and location, reject location change, list $top and tag filter - #1542

Merged
NitinKumar004 merged 4 commits into
developmentfrom
fix/azure-rg-validation
Oct 11, 2026
Merged

NitinKumar004 merged 4 commits into
developmentfrom
fix/azure-rg-validation

Conversation

@NitinKumar004

Copy link
Copy Markdown
Collaborator

Resource group parity fixes (AZRM-08, AZRM-09, AZRM-10).

  • Re-PUT of an existing group with a different location now returns 409 InvalidResourceGroupLocation. The comparison ignores case and spaces; a same-location re-PUT still updates tags and keeps the stored location.
  • PUT validates the name (1-90 chars of alphanumerics, _ - . ( ), no trailing period, else 400 InvalidResourceGroupName) and the location (400 LocationNotAvailableForResourceGroup). The location check reuses the subscriptions region table, which I extended with the other public regions so real configs are not rejected.
  • List supports $top (with nextLink, via the shared azurearm paginator) and $filter=tagName eq 'k' [and tagValue eq 'v'].

Tested: new handler tests, go test ./server/azure/... ./providers/azure/..., lint 0 issues, binary azurerm_resource_group apply / plan no changes / destroy. Docker: pending Gate 2.

@NitinKumar004
NitinKumar004 marked this pull request as ready for review October 11, 2026 19:01
@NitinKumar004
NitinKumar004 merged commit 14ed398 into development Oct 11, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant