From 0bfa6993dc1e13f91d3ec8cd8d77edf8fcccee90 Mon Sep 17 00:00:00 2001 From: Nidhi Doshi <77081571+doshnid@users.noreply.github.com> Date: Thu, 19 Sep 2024 16:25:34 -0700 Subject: [PATCH] added azure interactive to bulk manage page --- .../do/mcc-ent-create-resource-and-cache.md | 3 ++- .../do/mcc-ent-manage-cache-using-CLI.md | 22 +++++++++++++------ 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/windows/deployment/do/mcc-ent-create-resource-and-cache.md b/windows/deployment/do/mcc-ent-create-resource-and-cache.md index 5981e19584..bde6cfe7a3 100644 --- a/windows/deployment/do/mcc-ent-create-resource-and-cache.md +++ b/windows/deployment/do/mcc-ent-create-resource-and-cache.md @@ -214,7 +214,8 @@ Cache node for Windows Proxy settings -You can choose to enable or disable proxy settings on your cache node. +You can choose to enable or disable proxy settings on your cache node. +
[!IMPORTANT] diff --git a/windows/deployment/do/mcc-ent-manage-cache-using-CLI.md b/windows/deployment/do/mcc-ent-manage-cache-using-CLI.md index 50354afa08..91a1ab714d 100644 --- a/windows/deployment/do/mcc-ent-manage-cache-using-CLI.md +++ b/windows/deployment/do/mcc-ent-manage-cache-using-CLI.md @@ -28,9 +28,10 @@ Create a Resource group 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. -Open Cloud Shell -az group create --name myrg --location westus +```azurecli-interactive +az group create --name myrg --location westus +``` Once the resource group is created, you will need to create a Microsoft Connected Cache for Enterprise resource. @@ -39,8 +40,10 @@ Create a MCC resource A MCC resource is a resource under which cache nodes can be created. To create a mcc resource, use az mcc ent resource create -Open Cloud Shell + +```azurecli-interactive az mcc ent resource create --mcc-resource-name mymccresource --resource-group myrg +``` In the output, look for operationStatus. operationStatus = Succeeded indicates that our services have successfully started creating MCC resource. The next step is to create a cache node under this resource. @@ -49,8 +52,9 @@ The next step is to create a cache node under this resource. Create a cache node To create a cache node, use az mcc ent node create -Open Cloud Shell +```azurecli-interactive az mcc ent node create --cache-node-name mycachenode --mcc-resource-name mymccresource --resource-group myrg --host-os linux +``` In the output, look for operationStatus. operationStatus = Succeeded indicates that our services have successfully started creating cache node. @@ -58,8 +62,10 @@ In the output, look for operationStatus. operationStatus = Succeeded indicates t Confirm cache node creation Before you can start configuring your cache node, you need to confirm that cache node creation has been successful. To confirm cache node creation, use az mcc ent node show -Open Cloud Shell + +```azurecli-interactive az mcc ent node show --cache-node-name mycachenode --mcc-resource-name mymccresource --resource-group myrg +``` 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. @@ -72,9 +78,10 @@ To configure your cache node, use az mcc ent node update Ex: configure linux cache node, proxy, slow -Open Cloud Shell +```azurecli-interactive az mcc ent node update --cache-node-name mycachenode --mcc-resource-name mymccresource --resource-group myrg --cache-drive "[{physical-path:/cachenode/drive1,size-in-gb:50},{physical-path:/cachenode/drive2,size-in-gb:51}]" --proxy enabled --proxy-host "abc.xyz" --proxy-port 80 --auto-update-day 2 --auto-update-time 15:33 --auto-update-week 3 --auto-update-ring slow +``` Note: If your cache node is a Windows cache node, the physical path of the cache drive must be “C:\mccwsl01”. In the output, look for operationStatus. operationStatus = Succeeded indicates that our services have successfully updated the cache node. @@ -87,8 +94,9 @@ Get provisioning details for the cache node Now that you have configured the cache node, the next step is to provision the cache node on the server. To provision the cache node, you will need to create a provisioning script with relevant information. To get the relevant information for provisioning script, use az mcc ent node get-provisioning-details -Open Cloud Shell +```azurecli-interactive az mcc ent node get-provisioning-details --cache-node-name mycachenode --mcc-resource-name mymccresource --resource-group myrg +``` In the output, please save the values for cacheNodeId, customerKey, mccResourceId, registrationKey. These values are needed to create the provisioning script.