You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/storage/container-storage/container-storage-aks-quickstart-version-1.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ Azure Container Storage is a cloud-based volume management, deployment, and orch
35
35
36
36
Set your Azure subscription context using the `az account set` command. You can view the subscription IDs for all the subscriptions you have access to by running the `az account list --output table` command. Remember to replace `<subscription-id>` with your subscription ID.
37
37
38
-
```azurecli
38
+
```azurecli-interactive
39
39
az account set --subscription <subscription-id>
40
40
```
41
41
@@ -48,13 +48,13 @@ To connect to the cluster, use the Kubernetes command-line client, `kubectl`. It
48
48
* Downloads credentials and configures the Kubernetes CLI to use them.
49
49
* Uses `~/.kube/config`, the default location for the Kubernetes configuration file. You can specify a different location for your Kubernetes configuration file using the *--file* argument.
50
50
51
-
```azurecli-interactive
51
+
```azurecli
52
52
az aks get-credentials --resource-group <resource-group> --name <cluster-name>
53
53
```
54
54
55
55
2. Verify the connection to your cluster using the `kubectl get` command. This command returns a list of the cluster nodes.
56
56
57
-
```azurecli-interactive
57
+
```azurecli
58
58
kubectl get nodes
59
59
```
60
60
@@ -151,13 +151,13 @@ If you want to install Azure Container Storage on specific node pools, follow th
151
151
152
152
1. Run the following command to view the list of available node pools. Replace `<resource-group>` and `<cluster-name>` with your own values.
153
153
154
-
```azurecli-interactive
154
+
```azurecli
155
155
az aks nodepool list --resource-group <resource-group> --cluster-name <cluster-name>
156
156
```
157
157
158
158
2. Run the following command to install Azure Container Storage on specific node pools. Replace `<cluster-name>` and `<resource-group>` with your own values. Replace `<storage-pool-type>` with `azureDisk`, `ephemeralDisk`, or `elasticSan`. If you select `ephemeralDisk`, you can also specify --storage-pool-option, and the values can be `NVMe` or `Temp`.
159
159
160
-
```azurecli-interactive
160
+
```azurecli
161
161
az aks update -n <cluster-name> -g <resource-group> --enable-azure-container-storage <storage-pool-type> --container-storage-version 1 --azure-container-storage-nodepools <comma separated values of nodepool names>
Copy file name to clipboardExpand all lines: articles/storage/container-storage/container-storage-faq.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ Azure Container Storage is a cloud-based volume management, deployment, and orch
36
36
**Installer-only (choose storage later)**
37
37
Use this option when you want Azure Container Storage installed but plan to decide the storage backend later.
38
38
39
-
```azurecli
39
+
```azurecli-interactive
40
40
az aks update -n <cluster-name> -g <resource-group> --enable-azure-container-storage
41
41
```
42
42
@@ -131,7 +131,7 @@ Azure Container Storage is a cloud-based volume management, deployment, and orch
131
131
**If I already have Azure Container Storage preview installed on my AKS cluster, how can I update to the latest GA version?**
132
132
If you have autoupgrade turned on, Azure Container Storage updates to the latest version automatically. If you don't have autoupgrade turned on, we recommend updating to the latest generally available (GA) version by running the following command. Remember to replace `<cluster-name>` and `<resource-group>` with your own values.
Copy file name to clipboardExpand all lines: articles/storage/container-storage/enable-monitoring-version-1.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ Prometheus metrics are stored in an Azure Monitor workspace, where you can analy
24
24
25
25
This feature only supports Azure Monitor managed service for Prometheus. If you have your own Prometheus instance deployed, then you must disable Azure Container Storage's Prometheus instance by running the following Azure CLI command. Replace `<cluster_name>` and `<resource_group_name>` with your own values.
Copy file name to clipboardExpand all lines: articles/storage/container-storage/install-container-storage-aks-version-1.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ Azure Container Storage is a cloud-based volume management, deployment, and orch
47
47
48
48
Set your Azure subscription context using the `az account set` command. You can view the subscription IDs for all the subscriptions you have access to by running the `az account list --output table` command. Remember to replace `<subscription-id>` with your subscription ID.
Copy file name to clipboardExpand all lines: articles/storage/container-storage/install-container-storage-azure-arc.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,14 +41,14 @@ az account set --subscription <subscription-id>
41
41
42
42
The `Microsoft.ContainerService` and `Microsoft.KubernetesConfiguration` resource providers must be registered on your Azure subscription. To register these providers, run the following command:
43
43
44
-
```azurecli-interactive
44
+
```azurecli
45
45
az provider register --namespace Microsoft.ContainerService --wait
46
46
az provider register --namespace Microsoft.KubernetesConfiguration --wait
47
47
```
48
48
49
49
To check if these providers are registered successfully, run the following command:
50
50
51
-
```azurecli-interactive
51
+
```azurecli
52
52
az provider list --query "[?namespace=='Microsoft.ContainerService'].registrationState"
53
53
az provider list --query "[?namespace=='Microsoft.KubernetesConfiguration'].registrationState"
54
54
```
@@ -62,7 +62,7 @@ An Azure resource group is a logical group that holds your Azure resources that
62
62
63
63
Create a resource group using the `az group create` command. Replace `<resource-group-name>` with the name of the resource group you want to create, and replace `<location>` with an Azure region such as *eastus*, *westus2*, *westus3*, or *westeurope*.
64
64
65
-
```azurecli-interactive
65
+
```azurecli
66
66
az group create --name <resource-group-name> --location <location>
67
67
```
68
68
@@ -111,7 +111,7 @@ Run the following command to create a Linux-based AKS cluster and enable a syste
111
111
Replace `<resource-group>` with the name of the resource group you created, `<cluster-name>` with the name of the cluster you want to create, and `<vm-type>` with the VM type you selected in the previous step. In this example, we create a cluster with three nodes. Increase the `--node-count` if you want a larger cluster. **If you want to use local NVMe for your storage pool type, be sure to set the node count to 4 or greater.**
112
112
113
113
114
-
```azurecli-interactive
114
+
```azurecli
115
115
az aks create -g <resource-group> -n <cluster-name> --node-count 3 -s <vm-type> --generate-ssh-keys
116
116
```
117
117
@@ -129,13 +129,13 @@ To connect to the cluster, use the Kubernetes command-line client, `kubectl`. It
129
129
* Downloads credentials and configures the Kubernetes CLI to use them.
130
130
* Uses `~/.kube/config`, the default location for the Kubernetes configuration file. You can specify a different location for your Kubernetes configuration file using the *--file* argument.
131
131
132
-
```azurecli-interactive
132
+
```azurecli
133
133
az aks get-credentials --resource-group <resource-group> --name <cluster-name>
134
134
```
135
135
136
136
2. Verify the connection to your cluster using the `kubectl get` command. This command returns a list of the cluster nodes.
137
137
138
-
```azurecli-interactive
138
+
```azurecli
139
139
kubectl get nodes
140
140
```
141
141
@@ -159,7 +159,7 @@ Next, you must update your node pool label to associate the node pool with the c
159
159
160
160
Run the following command to update the node pool label. Remember to replace `<resource-group>` and `<cluster-name>` with your own values, and replace `<nodepool-name>` with the name of your node pool.
161
161
162
-
```azurecli-interactive
162
+
```azurecli
163
163
az aks nodepool update --resource-group <resource-group> --cluster-name <cluster-name> --name <nodepool-name> --labels acstor.azure.com/io-engine=acstor
164
164
```
165
165
@@ -187,7 +187,7 @@ You only need to perform this step if you plan to use Azure Elastic SAN as backi
187
187
188
188
Run the following commands to assign **Azure Container Storage Operator** role to AKS managed identity. Remember to replace `<resource-group>`, `<cluster-name>`, and `<azure-subscription-id>` with your own values. You can also narrow the scope to your resource group, for example `/subscriptions/<azure-subscription-id>/resourceGroups/<resource-group>`.
189
189
190
-
```azurecli-interactive
190
+
```azurecli
191
191
export AKS_MI_OBJECT_ID=$(az aks show --name <cluster-name> --resource-group <resource-group> --query "identityProfile.kubeletidentity.objectId" -o tsv)
192
192
az role assignment create --assignee $AKS_MI_OBJECT_ID --role "Azure Container Storage Operator" --scope "/subscriptions/<azure-subscription-id>"
193
193
```
@@ -199,13 +199,13 @@ The initial install uses Azure Arc CLI commands to download a new extension. Rep
199
199
200
200
During installation, you might be asked to install the `k8s-extension`. Select **Y**.
Installation takes 10-15 minutes to complete. You can check if the installation completed correctly by running the following command and ensuring that `provisioningState` says **Succeeded**:
207
207
208
-
```azurecli-interactive
208
+
```azurecli
209
209
az k8s-extension list --cluster-name <cluster-name> --resource-group <resource-group> --cluster-type managedClusters
Copy file name to clipboardExpand all lines: articles/storage/container-storage/remove-container-storage-version-1.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,15 +28,15 @@ az aks update -n <cluster-name> -g <resource-group> --disable-azure-container-st
28
28
29
29
To delete an AKS cluster and all persistent volumes, run the following Azure CLI command. Replace `<resource-group>` and `<cluster-name>` with your own values.
30
30
31
-
```azurecli-interactive
31
+
```azurecli
32
32
az aks delete --resource-group <resource-group> --name <cluster-name>
33
33
```
34
34
35
35
## Delete resource group
36
36
37
37
You can also use the [`az group delete`](/cli/azure/group) command to delete the resource group and all resources it contains. Replace `<resource-group>` with your resource group name.
Copy file name to clipboardExpand all lines: articles/storage/container-storage/remove-container-storage.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Delete all persistent volume claims (PVCs) and persistent volumes (PVs) before u
22
22
23
23
Remove Azure Container Storage entirely by running the following Azure CLI command. Replace `<cluster-name>` and `<resource-group>` with your own values.
24
24
25
-
```azurecli
25
+
```azurecli-interactive
26
26
az aks update -n <cluster-name> -g <resource-group> --disable-azure-container-storage
0 commit comments