title: Does Azure Synapse Link to Cosmos DB work with Managed Identity?
body: <p>Does Azure Synapse Link to Cosmos DB work with Managed Identity?</p>
  <p>I created an identity using the code below</p>
  <pre><code>CREATE CREDENTIAL [xavcosmosdb]
  WITH IDENTITY = 'Managed Identity'
  GO
  </code></pre>
  <p>When I use it as</p>
  <pre><code>SELECT TOP 100 *
  FROM OPENROWSET(​PROVIDER = 'CosmosDB',
                  CONNECTION = 'Account=xavcosmosdb;Database=myDb',
                  OBJECT = 'cases',
                  SERVER_CREDENTIAL = 'xavcosmosdb'
  ) AS [cases]
  </code></pre>
  <p>I get the following error.</p>
  <pre><code>Resolving CosmosDB path has failed with error 'Secret is null or empty.'.
  </code></pre>
  <p>What are the steps to use managed identity from Azure Synapse to CosmosDb?</p>