Skip to content

feat: add resource_group_id to parse_resource_id function#1065

Open
sorenhuus wants to merge 1 commit intoAzure:mainfrom
sorenhuus:add-resource-group-id-to-parse-resource-id
Open

feat: add resource_group_id to parse_resource_id function#1065
sorenhuus wants to merge 1 commit intoAzure:mainfrom
sorenhuus:add-resource-group-id-to-parse-resource-id

Conversation

@sorenhuus
Copy link

@sorenhuus sorenhuus commented Mar 7, 2026

Summary

  • Adds resource_group_id to the object returned by the parse_resource_id provider function
  • Returns the full ARM resource group ID (/subscriptions/{id}/resourceGroups/{name}) when the resource has a resource group, and "" otherwise (consistent with existing resource_group_name behavior)
  • Updated all example output comments in docs, templates, and examples to include the new field
  • All existing unit tests updated and passing

Test plan

  • Unit tests pass: go test ./internal/services/functions/... -run TestParseResourceIdFunction
  • Verified locally with terraform plan using dev override — resource_group_id appears correctly for resource group-scoped resources and is empty for subscription/tenant-scoped resources

🤖 Generated with Claude Code

Adds resource_group_id to the output of the parse_resource_id provider
function, returning the full ARM resource group ID
(/subscriptions/{id}/resourceGroups/{name}) when a resource group is
present, and an empty string otherwise.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sorenhuus
Copy link
Author

@microsoft-github-policy-service agree company="default"

@microsoft-github-policy-service
Copy link
Contributor

@sorenhuus the command you issued was incorrect. Please try again.

Examples are:

@microsoft-github-policy-service agree

and

@microsoft-github-policy-service agree company="your company"

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