Data/ARMTemplates/cosmosdb-sql.json

{
    "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
        "cosmosName": {
            "type": "String",
            "metadata": {
                "description": "Cosmos Name."
            }
        },
        "sqlname": {
            "type": "String",
            "metadata": {
                "description": "SQL Name."
            }
        },
        "options": {
            "type": "object",
            "defaultValue": {},
            "metadata": {
                "description": "Options."
            }
        }
    },
    "variables": {},
    "resources": [
        {
            "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases",
            "apiVersion": "2020-04-01",
            "name": "[concat(parameters('cosmosName'), '/', parameters('sqlname'))]",
            "properties": {
                "resource": {
                    "id": "[parameters('sqlname')]"
                },
                "options": "[parameters('options')]"
            }
        }
    ]
}