title: Migrating from Microsoft.Azure.DocumentDb to Microsoft.Azure.Cosmos for data access. Not all options available
body: <p>I am in the process of migrating our codebase which accesses CosmosDB via Microsoft.Azure.DocumentDB v2.7.0 into an approach using Microsoft.Azure.Cosmos v3.2.0. During this process the NuGet package "Microsoft.Azure.DocumentDB v2.7.0" has been replaced with "Microsoft.Azure.Cosmos v3.2.0".</p>
  
  <p>Almost all the code has been migrated to use the components provided in the new NuGet as below.</p>
  
  <ul>
  <li>SqlQuerySpec             : QueryDefinition</li>
  <li>DocumentClient           : CosmosClient</li>
  <li>DocumentClientException      : CosmosException</li>
  <li>query.ExecuteNextAsync()      : query.ReadNextAsync()</li>
  </ul>
  
  <p>The issue comes when we try to configure connection properties which we used to do with the old NuGet package's <code>ConnectionPolicy</code> class like below.</p>
  
  <pre><code>var policy = new ConnectionPolicy()
  {
  EnableEndpointDiscovery = true,
  EnableReadRequestsFallback = true,
  ConnectionMode = connectionMode,
  ConnectionProtocol = Protocol.Http,
  UseMultipleWriteLocations = useMultipleWriteLocations
  };
  </code></pre>
  
  <p>Could anyone help me find how to set similar properties like <code>EnableEndpointDiscovery</code>, <code>EnableReadRequestsFallback</code>, <code>ConnectionProtocol</code> in <code>Microsoft.Azure.Cosmos</code> namespace? I was only able to set the region with the <code>CosmosClientOptions.ApplicationRegion</code> property. Is the package <code>Microsoft.Azure.Cosmos</code> not offering all customizations which the <code>Microsoft.Azure.DocumentDb</code> used to provide? Please guide. </p>