CmdID / az / az cosmosdb / az cosmosdb sql
az cosmosdb sql user-defined-function
Manage Azure Cosmos DB SQL user defined functions. Azure CLI reference
5 commands 5 options Its page in the Azure CLI reference
Commands
createCreate an SQL user defined function under an Azure Cosmos DB SQL container.deleteDelete the SQL user defined function under an Azure Cosmos DB SQL container.listList the SQL user defined functions under an Azure Cosmos DB SQL container.showShow the details of a SQL user defined function under an Azure Cosmos DB SQL container.updateCreates or Updates an Azure Cosmos DB SQL user defined functionOptions
--account-name, -aCosmosdb account name.--body, -bUserDefinedFunction body, you can enter it as a string or as a file, e.g., --body @udfbody-file.json--container-name, -cContainer name.--database-name, -dDatabase name.--name, -nUserDefinedFunction name