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

--all

Clear all local context data. Either --name or --all can be specified.

--name -n

Space-separated list of local context parameter names. Either --name or --all can be specified.

--purge

Delete local context file from working directory. Only available when --all is specified.

--recursive

Indicate this is recursive delete of local context. Only available when --all is specified.

--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. Only available when --all is specified.

az local-context off

Turn off local context.

az local-context off [--subscription]

Optional Parameters

--subscription

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

az local-context on

Turn on local context.

az local-context on [--subscription]

Optional Parameters

--subscription

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

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

--name -n

Space-separated list of local context parameter names.

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

--subscription

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