This template creates an Azure Cosmos account for Core (SQL) API and a container with a stored procedure, trigger and user defined function.
{"apiversion": "2020-09-01", "type": "microsoft.documentdb/databaseaccounts", "name": "[parameters('databaseaccountname')]", "location": "[parameters('location')]", "tags": {"displayname": "documentdb"}, "properties": {"name": "[parameters('databaseaccountname')]", "databaseaccountoffertype": "[parameters('documentdboffertype')]", "consistencypolicy": {"defaultconsistencylevel": "[parameters('consistencylevel')]", "maxstalenessprefix": "[parameters('maxstalenessprefix')]", "maxintervalinseconds": "[parameters('maxintervalinseconds')]"}, "locations": [{"locationname": "[parameters('location')]", "failoverpriority": 0}]}} 