Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

Latest commit

 

History

History
79 lines (55 loc) · 2.13 KB

File metadata and controls

79 lines (55 loc) · 2.13 KB

Create a database

kusto/create-database/README.md

Prerequisites

This example assumes you have previously completed the following examples:

  1. Create a resource group
  2. Create an Azure Data Explorer cluster

Create a database

Setup the environment variable for the database using the command line below:

  export ADX_DATABASE_NAME=adxdb$RANDOM

To create the database use the following command line:

  az kusto database create \
    --cluster-name $ADX_CLUSTER_NAME \
    --resource-group $RESOURCE_GROUP \
    --database-name $ADX_DATABASE_NAME \
    --read-write-database location="$REGION"

Cleanup

Do NOT forget to remove the resources once you are done running the example.

Additional documentation

  1. Azure Data Explorer documentation
  2. Azure CLI - az kusto database

1m