CmdID

CmdID / az / az cosmosdb / az cosmosdb sql / az cosmosdb sql user-defined-function

az cosmosdb sql user-defined-function create

Create an SQL user defined function under an Azure Cosmos DB SQL container. Azure CLI reference

1 example Its page in the Azure CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Create an Azure Cosmos DB SQL user defined function.

az cosmosdb sql user-defined-function create -g MyResourceGroup -a MyAccount -d MyDatabase -c MyContainer -n MyUserDefinedFunction -b UserDefinedFunctionBodyIdentify
-gName of resource group.
-aCosmosdb account name.
-dDatabase name.
-cContainer name.
-nUserDefinedFunction name
-bUserDefinedFunction body, you can enter it as a string or as a file, e.g., --body @udfbody-file.json