--- title: Manage Microsoft Connected Cache nodes using CLI description: Details on how to manage Microsoft Connected Cache for Enterprise cache nodes via Azure CLI commands. ms.service: windows-client ms.subservice: itpro-updates ms.topic: how-to manager: aaroncz ms.author: nidos author: doshnid ms.reviewer: mstewart ms.collection: tier3 appliesto: - ✅ Windows 11 - ✅ Windows 10 - ✅ Microsoft Connected Cache for Enterprise ms.date: 10/30/2024 --- # Manage cache nodes using CLI
This article outlines how to create, configure, and deploy Microsoft Connected Cache for Enterprise cache nodes using Azure CLI. ## Prerequisites: 1. **Install Azure CLI**: [How to install the Azure CLI](/cli/azure/install-azure-cli) 1. **Install Connected Cache extension**: Install Connected Cache extension via the command below ```azurecli-interactive az extension add --name mcc ``` To learn more about installing extensions, see [Install the Connected Cache extension.](/cli/azure/azure-cli-extensions-overview#how-to-install-extensions)

### 1. Create a Resource group The first step is to create a resource group if you don't already have one. An Azure resource group is a logical container into which Azure resources are deployed and managed. To create a resource group, use `az group create`. You can find more details on this CLI command [here](/cli/azure/group#az-group-create).
```azurecli-interactive az group create --name myrg --location westus ``` Once the resource group is created, you'll need to create a Microsoft Connected Cache for Enterprise resource. ### 2. Create a Connected Cache Azure resource A Connected Cache Azure resource is a top-level Azure resource under which cache nodes can be created. To create a Connected Cache Azure resource, use `az mcc ent resource create` ```azurecli-interactive az mcc ent resource create --mcc-resource-name mymccresource --resource-group myrg ```
>[!IMPORTANT] >In the output, look for operationStatus. **operationStatus = Succeeded** indicates that our services have successfully started creating your Connected Cache resource.
The next step is to create a cache node under this resource. ### 3. Create a cache node To create a cache node, use `az mcc ent node create` ```azurecli-interactive az mcc ent node create --cache-node-name mycachenode --mcc-resource-name mymccresource --resource-group myrg --host-os ```
>[!IMPORTANT] >In the output, look for operationStatus. **operationStatus = Succeeded** indicates that our services have successfully started creating cache node.
### 4. Confirm cache node creation Before you can start configuring your cache node, you need to confirm that the cache node was successfully created. To confirm cache node creation, use `az mcc ent node show`
```azurecli-interactive az mcc ent node show --cache-node-name mycachenode --mcc-resource-name mymccresource --resource-group myrg ``` >[!IMPORTANT] >In the output look for cacheNodeState. If **cacheNodeState = Not Configured**, you can continue with cache node configuration. >If **cacheNodeState = Registration in Progress**, then the cache node is still in process of being created. Please wait for a minute or two more and run the command again.
Once successful cache node creation is confirmed, you can proceed to configure the cache node. ### 5. Configure cache node To configure your cache node, use `az mcc ent node update` The below example configures a Linux cache node with proxy enabled: ```azurecli-interactive az mcc ent node update --cache-node-name --mcc-resource-name --resource-group --cache-drive "[{physical-path:,size-in-gb:},{,size-in-gb:}...]"> --proxy --proxy-host <"proxy host name"> --proxy-port --auto-update-day --auto-update-time