az extension

Manage and update CLI extensions.

Commands

az extension add Add an extension.
az extension list List the installed extensions.
az extension list-available List publicly available extensions.
az extension remove Remove an extension.
az extension show Show an extension.
az extension update Update an extension.

az extension add

Add an extension.

az extension add [--name]
[--pip-extra-index-urls]
[--pip-proxy]
[--source]
[--subscription]
[--yes]

Examples

Add extension by name

az extension add --name anextension

Add extension from URL

az extension add --source https://contoso.com/anextension-0.0.1-py2.py3-none-any.whl

Add extension from local disk

az extension add --source ~/anextension-0.0.1-py2.py3-none-any.whl

Add extension from local disk and use pip proxy for dependencies

az extension add --source ~/anextension-0.0.1-py2.py3-none-any.whl --pip-proxy https://user:pass@proxy.server:8080

Optional Parameters

--name -n

Name of extension.

--pip-extra-index-urls

Space-separated list of extra URLs of package indexes to use. This should point to a repository compliant with PEP 503 (the simple repository API) or a local directory laid out in the same format.

--pip-proxy

Proxy for pip to use for extension dependencies in the form of [user:passwd@]proxy.server:port.

--source -s

Filepath or URL to an extension.

--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 extension list

List the installed extensions.

az extension list [--subscription]

Optional Parameters

--subscription

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

az extension list-available

List publicly available extensions.

az extension list-available [--show-details]
[--subscription]

Examples

List all publicly available extensions

az extension list-available

List details on a particular extension

az extension list-available --show-details --query anextension

Optional Parameters

--show-details -d

Show the raw data from the extension index.

--subscription

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

az extension remove

Remove an extension.

az extension remove --name
[--subscription]

Required Parameters

--name -n

Name of extension.

Optional Parameters

--subscription

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

az extension show

Show an extension.

az extension show --name
[--subscription]

Required Parameters

--name -n

Name of extension.

Optional Parameters

--subscription

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

az extension update

Update an extension.

az extension update --name
[--pip-extra-index-urls]
[--pip-proxy]
[--subscription]

Examples

Update an extension by name

az extension update --name anextension

Update an extension by name and use pip proxy for dependencies

az extension update --name anextension --pip-proxy https://user:pass@proxy.server:8080

Required Parameters

--name -n

Name of extension.

Optional Parameters

--pip-extra-index-urls

Space-separated list of extra URLs of package indexes to use. This should point to a repository compliant with PEP 503 (the simple repository API) or a local directory laid out in the same format.

--pip-proxy

Proxy for pip to use for extension dependencies in the form of [user:passwd@]proxy.server:port.

--subscription

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