Skip to content

Commit 3e69ce6

Browse files
Merge pull request #210029 from naioja/aj_anf
Fixing the RG where ANF account is created.
2 parents 8225ea7 + 37bd4ef commit 3e69ce6

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

articles/aks/azure-netapp-files.md

Lines changed: 11 additions & 16 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
@@ -131,7 +122,11 @@ az netappfiles volume create \
131122
List the details of your volume using [az netappfiles volume show][az-netappfiles-volume-show]
132123

133124
```azurecli
134-
az netappfiles volume show --resource-group $RESOURCE_GROUP --account-name $ANF_ACCOUNT_NAME --pool-name $POOL_NAME --volume-name "myvol1"
125+
az netappfiles volume show \
126+
--resource-group $RESOURCE_GROUP \
127+
--account-name $ANF_ACCOUNT_NAME \
128+
--pool-name $POOL_NAME \
129+
--volume-name "myvol1" -o JSON
135130
```
136131

137132
```output

0 commit comments

Comments
 (0)