Skip to content

Commit 37bd4ef

Browse files
committed
Fixing the RG where ANF account is created.
Following the official Netapp documentation for Azure here: https://docs.netapp.com/us-en/astra-control-service/get-started/set-up-microsoft-azure-with-anf.html#create-a-netapp-account-2 and here https://docs.microsoft.com/en-us/azure/azure-netapp-files/azure-netapp-files-create-netapp-account there's no REQUIREMENT for the account to be created in the MC resource of AKS. The only requirement in the docs is related to the subnet delegation. Having the ANF created in the MC gives the impression that the service is tied "artificially" to one AKS cluster, whereas the ANF service can be used accross multiple AKS clusters.
1 parent 44c26a6 commit 37bd4ef

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

articles/aks/azure-netapp-files.md

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,12 @@ az provider register --namespace Microsoft.NetApp --wait
4747
> [!NOTE]
4848
> This can take some time to complete.
4949
50-
When you create an Azure NetApp account for use with AKS, you need to create the account in the **node** resource group. First, get the resource group name with the [az aks show][az-aks-show] command and add the `--query nodeResourceGroup` query parameter. The following example gets the node resource group for the AKS cluster named *myAKSCluster* in the resource group name *myResourceGroup*:
51-
52-
```azurecli-interactive
53-
az aks show --resource-group myResourceGroup --name myAKSCluster --query nodeResourceGroup -o tsv
54-
```
55-
56-
```output
57-
MC_myResourceGroup_myAKSCluster_eastus
58-
```
59-
60-
Create an Azure NetApp Files account in the **node** resource group and same region as your AKS cluster using [az netappfiles account create][az-netappfiles-account-create]. The following example creates an account named *myaccount1* in the *MC_myResourceGroup_myAKSCluster_eastus* resource group and *eastus* region:
50+
When you create an Azure NetApp account for use with AKS, you can create the account in an existing resource group or create a new one in the same region as the AKS cluster.
51+
The following example creates an account named *myaccount1* in the *myResourceGroup* resource group and *eastus* region:
6152

6253
```azurecli
6354
az netappfiles account create \
64-
--resource-group MC_myResourceGroup_myAKSCluster_eastus \
55+
--resource-group myResourceGroup \
6556
--location eastus \
6657
--account-name myaccount1
6758
```
@@ -70,7 +61,7 @@ Create a new capacity pool by using [az netappfiles pool create][az-netappfiles-
7061

7162
```azurecli
7263
az netappfiles pool create \
73-
--resource-group MC_myResourceGroup_myAKSCluster_eastus \
64+
--resource-group myResourceGroup \
7465
--location eastus \
7566
--account-name myaccount1 \
7667
--pool-name mypool1 \
@@ -81,7 +72,7 @@ az netappfiles pool create \
8172
Create a subnet to [delegate to Azure NetApp Files][anf-delegate-subnet] using [az network vnet subnet create][az-network-vnet-subnet-create]. *This subnet must be in the same virtual network as your AKS cluster.*
8273

8374
```azurecli
84-
RESOURCE_GROUP=MC_myResourceGroup_myAKSCluster_eastus
75+
RESOURCE_GROUP=myResourceGroup
8576
VNET_NAME=$(az network vnet list --resource-group $RESOURCE_GROUP --query [].name -o tsv)
8677
VNET_ID=$(az network vnet show --resource-group $RESOURCE_GROUP --name $VNET_NAME --query "id" -o tsv)
8778
SUBNET_NAME=MyNetAppSubnet
@@ -100,7 +91,7 @@ Volumes can either be provisioned statically or dynamically. Both options are co
10091
Create a volume by using [az netappfiles volume create][az-netappfiles-volume-create].
10192

10293
```azurecli
103-
RESOURCE_GROUP=MC_myResourceGroup_myAKSCluster_eastus
94+
RESOURCE_GROUP=myResourceGroup
10495
LOCATION=eastus
10596
ANF_ACCOUNT_NAME=myaccount1
10697
POOL_NAME=mypool1

0 commit comments

Comments
 (0)