az local-context
Manage Local Context.
Commands
az local-context delete |
Delete local context data. |
az local-context off |
Turn off local context. |
az local-context on |
Turn on local context. |
az local-context show |
Show local context data. |
az local-context delete
Delete local context data.
az local-context delete [--all]
[--name]
[--purge]
[--recursive]
[--subscription]
[--yes]
Examples
Delete resource_group_name from local context
az local-context delete --name resource_group_name
Clear all local context data
az local-context delete --all
Delete local context persistence file
az local-context delete --all --purge
Delete local context persistence file recursively
az local-context delete --all --purge --recursive
Optional Parameters
Clear all local context data. Either --name or --all can be specified.
Space-separated list of local context parameter names. Either --name or --all can be specified.
Delete local context file from working directory. Only available when --all is specified.
Indicate this is recursive delete of local context. Only available when --all is specified.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Do not prompt for confirmation. Only available when --all is specified.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
az local-context off
Turn off local context.
az local-context off [--subscription]
Optional Parameters
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
az local-context on
Turn on local context.
az local-context on [--subscription]
Optional Parameters
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
az local-context show
Show local context data.
az local-context show [--name]
[--query-examples]
[--subscription]
Examples
Show all local context value
az local-context show
Show resource_group_name local context value
az local-context show --name resource_group_name
Optional Parameters
Space-separated list of local context parameter names.
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.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.