Share via


az sql server deleted-server

Gets details of deleted SQL servers.

Commands

Name Description Type Status
az sql server deleted-server list

List all deleted SQL servers in a specific location.

Core Preview
az sql server deleted-server show

Get the details of a deleted SQL server in a specific location.

Core Preview

az sql server deleted-server list

Preview

This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

List all deleted SQL servers in a specific location.

az sql server deleted-server list --location

Examples

List all deleted servers in a specific location.

az sql server deleted-server list --location westus2

Required Parameters

--location -l

Location where the deleted servers were originally located.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az sql server deleted-server show

Preview

This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Get the details of a deleted SQL server in a specific location.

az sql server deleted-server show --location
                                  [--ids]
                                  [--name]
                                  [--subscription]

Examples

Get details of a deleted server by name and location.

az sql server deleted-server show --name myserver --location westus2

Required Parameters

--location -l

Location where the deleted server was originally located.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

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

Property Value
Parameter group: Resource Id Arguments
--name -n

Name of the deleted server.

Property Value
Parameter group: Resource Id Arguments
--subscription

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

Property Value
Parameter group: Resource Id Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False