az sql dw

Manage data warehouses.

Commands

az sql dw create

Create a data warehouse.

az sql dw delete

Delete a data warehouse.

az sql dw list

List data warehouses for a server.

az sql dw pause

Pauses a datawarehouse.

az sql dw resume

Resumes a datawarehouse.

az sql dw show

Get the details for a data warehouse.

az sql dw update

Update a data warehouse.

az sql dw create

Create a data warehouse.

az sql dw create --name
                 --resource-group
                 --server
                 [--collation]
                 [--max-size]
                 [--no-wait]
                 [--read-replica-count]
                 [--service-objective]
                 [--subscription]
                 [--tags]
                 [--zone-redundant {false, true}]

Examples

Create a data warehouse. (autogenerated)

az sql dw create --name MyDataWarehouse --resource-group MyResourceGroup --server myserver --service-objective S0

Required Parameters

--name -n

Name of the data warehouse.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--server -s

Name of the Azure SQL server. You can configure the default using az configure --defaults sql-server=<name>.

Optional Parameters

--collation

The collation of the data warehouse.

--max-size

The max storage size. If no unit is specified, defaults to bytes (B).

--no-wait

Do not wait for the long-running operation to finish.

--read-replica-count

The number of readonly replicas to provision for the database. Only settable for Hyperscale edition.

--service-objective

The service objective for the new database. For example: DW100, DW1000c.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.

--zone-redundant

Specifies whether to enable zone redundancy.

accepted values: false, true

az sql dw delete

Delete a data warehouse.

az sql dw delete [--ids]
                 [--name]
                 [--no-wait]
                 [--resource-group]
                 [--server]
                 [--subscription]
                 [--yes]

Examples

Delete a data warehouse. (autogenerated)

az sql dw delete --name MyDataWarehouse --resource-group MyResourceGroup --server myserver

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

Name of the data warehouse.

--no-wait

Do not wait for the long-running operation to finish.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--server -s

Name of the Azure SQL server. You can configure the default using az configure --defaults sql-server=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--yes -y

Do not prompt for confirmation.

az sql dw list

List data warehouses for a server.

az sql dw list [--ids]
               [--query-examples]
               [--resource-group]
               [--server]
               [--subscription]

Examples

List data warehouses for a server. (autogenerated)

az sql dw list --resource-group MyResourceGroup --server myserver

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--server -s

Name of the Azure SQL server. You can configure the default using az configure --defaults sql-server=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az sql dw pause

Pauses a datawarehouse.

az sql dw pause [--ids]
                [--name]
                [--resource-group]
                [--server]
                [--subscription]

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

Name of the data warehouse.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--server -s

Name of the Azure SQL server. You can configure the default using az configure --defaults sql-server=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az sql dw resume

Resumes a datawarehouse.

az sql dw resume [--ids]
                 [--name]
                 [--resource-group]
                 [--server]
                 [--subscription]

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

Name of the data warehouse.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--server -s

Name of the Azure SQL server. You can configure the default using az configure --defaults sql-server=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az sql dw show

Get the details for a data warehouse.

az sql dw show [--ids]
               [--name]
               [--query-examples]
               [--resource-group]
               [--server]
               [--subscription]

Examples

Get the details for a data warehouse. (autogenerated)

az sql dw show --name MyDataWarehouse --resource-group MyResourceGroup --server myserver

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

Name of the data warehouse.

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--server -s

Name of the Azure SQL server. You can configure the default using az configure --defaults sql-server=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az sql dw update

Update a data warehouse.

az sql dw update [--add]
                 [--force-string]
                 [--ids]
                 [--max-size]
                 [--name]
                 [--no-wait]
                 [--remove]
                 [--resource-group]
                 [--server]
                 [--service-objective]
                 [--set]
                 [--subscription]

Examples

Update a data warehouse. (autogenerated)

az sql dw update --name MyDataWarehouse --resource-group MyResourceGroup --server myserver --service-objective S1

Optional Parameters

--add

Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>.

--force-string

When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--max-size

The max storage size. If no unit is specified, defaults to bytes (B).

--name -n

Name of the data warehouse.

--no-wait

Do not wait for the long-running operation to finish.

--remove

Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--server -s

Name of the Azure SQL server. You can configure the default using az configure --defaults sql-server=<name>.

--service-objective

The service objective of the data warehouse. For example: DW100, DW1000c.

--set

Update an object by specifying a property path and value to set. Example: --set property1.property2=.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.