Add cosmos-db version 2026-03-15 and fix error when user specified resource ID is incorrectly identified as known segments used for scope#5486
Open
v-yhyeo0202 wants to merge 2 commits into
Conversation
…known segments used for scope
cosmos-db version 2026-03-15cosmos-db version 2026-03-15 and fix error when user specified resource ID is incorrectly identified as known segments used for scope
This was referenced Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Community Note
Description
cosmos-dbAPI version 2026-03-15 is added for hashicorp/terraform-provider-azurerm#31546. In this version, the typical SDK generation fails due to duplicated resource IDs of Cassandra, Gremlin, Mongo MI, SQL, and table role assignment as shown in the log below. The error happens because of identification ofroleAssignmentIduser specified segment and its corresponding static segment as scope segment, causing the segments to be excluded when deciding if the resource IDs are unique. As scope segment only appears at the start of resource ID and not after static segment, conditional statements are added to avoid the incorrect identification of scope segment.PR Checklist
Adding New API Version
Important
The primary purpose of API versions in this repository is to serve the Terraform Azure Providers. API versions are imported and maintained to support the providers' needs. If you would like to add an API version for use outside of the providers (e.g., another project consuming
go-azure-sdk), please include a description of what you would like to use it for so we can evaluate the request.This PR is for another downstream project and not for the Terraform Azure Providers.Changes to Tooling
Testing Command(s) Used:
Testing Evidence:
Tests in
pandora/tools/importer-rest-api-specs/internal/components/apidefinitions/parser/resourceids/parse_segments_test.goare run.Note
If this PR changes meaningfully during the course of review, please update the title and description as required.