Hello !
Thank you for posting on Microsoft Learn.
The JSON template should be used completely in the Specify dynamic contents in JSON format textbox under the Advanced section of the Linked Service creation UI in ADF. This is the correct way to configure system-assigned managed identity for Cosmos DB (NoSQL), especially when the standard UI does not expose all necessary fields like subscription ID, tenant ID, or resource group.
ADF default UI for Cosmos DB (NoSQL) Linked Service does not fully support system-assigned managed identity out of the box.
The JSON format lets you provide advanced properties such as subscriptionId, tenantId, and resourceGroup, which are required for authentication using a system-assigned managed identity.
As mentioned in the documentation, system-assigned managed identity is only supported via advanced JSON properties.
You need to select:
- Authentication method: System-assigned managed identity
- Account selection method (doesn’t matter you’ll override it in JSON)
Then tick Specify dynamic contents in JSON format, paste and customize this full JSON snippet:
{
"name": "CosmosDbSQLAPI1LinkedService",
"properties": {
"type": "CosmosDb",
"typeProperties": {
"accountEndpoint": "https://<account name>.documents.azure.com:443/",
"database": "<database name>",
"subscriptionId": "<subscription id>",
"tenantId": "<tenant id>",
"resourceGroup": "<resource group>"
},
"connectVia": {
"referenceName": "<your IR name>",
"type": "IntegrationRuntimeReference"
}
}
}