PowerShell Module for working with Azure Cosmos DB databases, collections, documents, attachments, offers, users, permissions, triggers, stored procedures and user defined functions.
There may be some situations where setting the index policy for a collection needs to be set via passing the JSON directly in.
Add a parameter -IndexingPolicyJson to New-CosmosDbCollection and Set-CosmosDbCollection that will use the JSON directly in the indexingPolicy of the collection.
It should have a parameter set that prevents both the IndexingPolicy and IndexingPolicyJson from being passed.
There may be some situations where setting the index policy for a collection needs to be set via passing the JSON directly in.
Add a parameter
-IndexingPolicyJson
toNew-CosmosDbCollection
andSet-CosmosDbCollection
that will use the JSON directly in theindexingPolicy
of the collection.It should have a parameter set that prevents both the
IndexingPolicy
andIndexingPolicyJson
from being passed.