Expose Cosmos Direct Mode Connection Config #4816
Merged
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.
Description
Exposes CosmosSDK direct connection configuration values for CosmosDB backed FHIR Servers.
Note - a value of null is what we are passing to the configuration via the builder for all of these configuration values today (except for
enableTcpConnectionEndpointRediscovery
which we explicitly set to true).https://github.com/Azure/azure-cosmos-dotnet-v3/blob/master/Microsoft.Azure.Cosmos/src/Fluent/CosmosClientBuilder.cs#L445
Related issues
AB#140094
Testing
Run code to confirm configuration flows from env variables to client creation.
default
![CleanShot 2025-02-10 at 10 40 03](https://private-user-images.githubusercontent.com/753437/411695147-79b21582-50de-432b-a27e-f6c12536e1b3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1MTcwNzgsIm5iZiI6MTczOTUxNjc3OCwicGF0aCI6Ii83NTM0MzcvNDExNjk1MTQ3LTc5YjIxNTgyLTUwZGUtNDMyYi1hMjdlLWY2YzEyNTM2ZTFiMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQwNzA2MThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yYmM5MThjNWExNDM4NTcxMzcyNmI0YmYxNTgzYWI3NmIzOTAxOWEwODVlZDZiN2MyOTJlYzgxNzBiMWZiN2FjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.tAAjgyOAopzECy3vK-GE1Tp6U5ecYWfo0ZH7jvhFw20)
w/ overrides
![CleanShot 2025-02-10 at 10 38 54](https://private-user-images.githubusercontent.com/753437/411694748-32f246ca-f85c-4335-9ae7-557d7bcee73f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1MTcwNzgsIm5iZiI6MTczOTUxNjc3OCwicGF0aCI6Ii83NTM0MzcvNDExNjk0NzQ4LTMyZjI0NmNhLWY4NWMtNDMzNS05YWU3LTU1N2Q3YmNlZTczZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQwNzA2MThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kZDc4YzE5ZTc4NDE5N2U2YmRjNGE3ZGY1ZjE1OWQ1NDkwYTFiZmMxOTk5ZDFkN2E5N2FhMTczOGNkNjk1MjcxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.lKhkH__5VhSwZZ_PmVuf7T7OIXYJGncRIBSXUkU08pQ)
FHIR Team Checklist
Semver Change (docs)
Patch|Skip|Feature|Breaking (reason)