title: Exclude Path in Azure Cosmos DB
body: <p>What is the correct JSON to exclude certain keys from an input json to be not indexed by Azure CosmosDB. We are using the CosmosDB in mongodb mode. Was planning to change the index configuration on the Azure Portal after creating the collection. </p>
  
  <p>Sample Input Json being </p>
  
  <pre><code>{
      "name": "test",
      "age": 1,
      "location": "l1",
      "height":5.7
  }
  </code></pre>
  
  <p>If I were to include name and age in the index and remove location and height from the index, what does the includedPaths and excludedPaths look like. </p>