Set up Azure CLI for Azure HPC Cache
Follow these steps to prepare your environment before using Azure CLI to create or manage an Azure HPC Cache.
Prerequisites
If you prefer to run CLI reference commands locally, install the Azure CLI. If you're running on Windows or macOS, consider running Azure CLI in a Docker container. For more information, see How to run the Azure CLI in a Docker container.
If you're using a local installation, sign in to the Azure CLI by using the az login command. To finish the authentication process, follow the steps displayed in your terminal. For other sign-in options, see Sign in with the Azure CLI.
When you're prompted, install the Azure CLI extension on first use. For more information about extensions, see Use extensions with the Azure CLI.
Run az version to find the version and dependent libraries that are installed. To upgrade to the latest version, run az upgrade.
- Azure HPC Cache requires version 2.7 or later of the Azure CLI.
Set default resource group (optional)
Most of the hpc-cache commands require you to pass the cache's resource group. You can set the default resource group by using az config.
Next steps
After installing the Azure CLI extension and logging in, you can use Azure CLI to create and manage Azure HPC Cache systems.