Skip to content

Commit f4ac334

Browse files
feature: add command instructions for airgap envs docs
1 parent 7be0208 commit f4ac334

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/use_cli_in_airgapped_clouds.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ $ pip install --no-deps ~/distro-1.3.0-py2.py3-none-any.whl --target ~/.azure/cl
5353
$ pip install --no-deps ~/python_dateutil-2.7.3-py2.py3-none-any.whl --target ~/.azure/cliextensions/azure-devops
5454
```
5555

56+
When extensions are installed, updated, or removed manually (outside `az extension add|update|remove`), run the following command to rebuild the CLI command index so newly added or removed commands are discovered correctly:
57+
58+
```bash
59+
az rebuild-index
60+
```
61+
62+
This is especially important in airgapped environments where extension lifecycle actions are frequently performed with local wheel files and direct filesystem operations.
63+
5664
## Load Cloud Endpoints
5765
If you are working in an Azure AirGapped Cloud, you should be able to get a cloud metadata URL from its documentation. You can set the environment variable `ARM_CLOUD_METADATA_URL` to this URL with:
5866
```bash

0 commit comments

Comments
 (0)