Skip to content

[CosmosDb] Handling null Cosmos DB key#5405

Merged
fhibf merged 2 commits intomainfrom
user/fernfe/handleCosmosDbNullKey_02202026
Feb 23, 2026
Merged

[CosmosDb] Handling null Cosmos DB key#5405
fhibf merged 2 commits intomainfrom
user/fernfe/handleCosmosDbNullKey_02202026

Conversation

@fhibf
Copy link
Contributor

@fhibf fhibf commented Feb 20, 2026

Description

Changes to better handle null Cosmos DB key.
That's a valid scenario when using Managed Identity, and a null (instead of empty) key is provided as part of the Cosmos DB configuration.

Related issues

Addresses AB#184099.

Testing

Tested using unit tests. Simulating a scenario found in one of our internal test accounts.

FHIR Team Checklist

  • Update the title of the PR to be succinct and less than 65 characters
  • Add a milestone to the PR for the sprint that it is merged (i.e. add S47)
  • Tag the PR with the type of update: Bug, Build, Dependencies, Enhancement, New-Feature or Documentation
  • Tag the PR with Open source, Azure API for FHIR (CosmosDB or common code) or Azure Healthcare APIs (SQL or common code) to specify where this change is intended to be released.
  • Tag the PR with Schema Version backward compatible or Schema Version backward incompatible or Schema Version unchanged if this adds or updates Sql script which is/is not backward compatible with the code.
  • When changing or adding behavior, if your code modifies the system design or changes design assumptions, please create and include an ADR.
  • CI is green before merge Build Status
  • Review squash-merge requirements

Semver Change (docs)

Patch|Skip|Feature|Breaking (reason)

@fhibf fhibf requested a review from a team as a code owner February 20, 2026 22:00
@fhibf fhibf added Bug Bug bug bug. Enhancement Enhancement on existing functionality. Azure API for FHIR Label denotes that the issue or PR is relevant to the Azure API for FHIR No-ADR ADR not needed labels Feb 20, 2026
@fhibf fhibf modified the milestones: CY25Q3/2Wk14, CY25Q3/2Wk17 Feb 20, 2026
@fhibf fhibf added Area-CosmosDB Area related to CosmosDB storage No-PaaS-breaking-change labels Feb 20, 2026
@fhibf fhibf merged commit a4176c3 into main Feb 23, 2026
61 checks passed
@fhibf fhibf deleted the user/fernfe/handleCosmosDbNullKey_02202026 branch February 23, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-CosmosDB Area related to CosmosDB storage Azure API for FHIR Label denotes that the issue or PR is relevant to the Azure API for FHIR Bug Bug bug bug. Enhancement Enhancement on existing functionality. No-ADR ADR not needed No-PaaS-breaking-change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants