| title | azdata context reference |
|---|---|
| titleSuffix | SQL Server big data clusters |
| description | Reference article for azdata context commands. |
| author | MikeRayMSFT |
| ms.author | mikeray |
| ms.reviewer | mihaelab |
| ms.date | 11/04/2019 |
| ms.topic | reference |
| ms.prod | sql |
| ms.technology | big-data-cluster |
[!INCLUDEtsql-appliesto-ssver15-xxxx-xxxx-xxx]
The following article provides reference for the context commands in the azdata tool. For more information about other azdata commands, see azdata reference
| azdata context list | Lists the available contexts in the user profile. |
| azdata context delete | Deletes the context with the given namespace from the user profile. |
| azdata context set | Sets the context with the given namespace as the active context in the user profile. |
You may set or delete any of these with azdata context set or azdata context delete. To login to a new context, use azdata login.
azdata context list [--active -a] Lists all available contexts in the user profile.
azdata context listLists the active context in the user profile.
azdata context list --activeList only the currently active context.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
If the deleted context is active, the user will need to set a new active context. To see contexts available to set or delete azdata context list
azdata context delete --namespace -n
```
### Examples
Deletes contextNamespace from the user profile.
```bash
azdata context delete -n contextNamespaceNamespace of the context which you'd like to delete.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
To see contexts available to set azdata context list. If no contexts are listed, you need to login in order to create a context in your user profile azdata login. What you login to will become your active context. If you login to multiple entities, you can then switch between active contexts with this command. To see your currently active context azdata context list --active
azdata context set --namespace -n Sets contextNamespace as the active context in the user profile.
azdata context set -n contextNamespaceNamespace of the context which you'd like to set.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
For more information about other azdata commands, see azdata reference. For more information about how to install the azdata tool, see Install azdata to manage SQL Server 2019 big data clusters.