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]
[--service-objective]
[--subscription]
[--tags]
[--zone-redundant]

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.

--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 in 'key[=value]' format. Use "" to clear existing tags.

--zone-redundant

Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones.

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). If provided, no other 'Resource Id' arguments should be specified.

--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]
[--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). If provided, no other 'Resource Id' arguments should be specified.

--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). If provided, no other 'Resource Id' arguments should be specified.

--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). If provided, no other 'Resource Id' arguments should be specified.

--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]
[--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). If provided, no other 'Resource Id' arguments should be specified.

--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 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). If provided, no other 'Resource Id' arguments should be specified.

--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.