PlagueHO / CosmosDB

PowerShell Module for working with Azure Cosmos DB databases, collections, documents, attachments, offers, users, permissions, triggers, stored procedures and user defined functions.
http://dscottraynsford.com
MIT License
152 stars 46 forks source link

Added ConnectionString parameter to New-CosmosDbContext cmdlet #466

Closed ArmaanMcleod closed 1 year ago

ArmaanMcleod commented 1 year ago

Fixes #426.

Added -ConnectionString parameter to New-CosmosDbContext.

The new parameter set:

New-CosmosDbContext -ConnectionString <securestring> [-Database <string>] [-KeyType <string>] [-MasterKeyType <string>] [-BackoffPolicy <BackoffPolicy>] [-Environment <Environment>] [-WhatIf] [-Confirm] [<CommonParameters>]

Which allows the user to pass in a connection string to set the context. Let me know if I need to tweak this or fix anything else πŸ™‚.


This change is Reviewable

ArmaanMcleod commented 1 year ago

@PlagueHO Thank you so much. Very excited to start using this. Had a couple usecases where I needed to set the context via a connection string.

Really appreciate the effort you've put into this module and will be happy to help out more in the future πŸ™‚

PlagueHO commented 1 year ago

Thanks for contributing this @ArmaanMcleod - I'll release a final release this week.