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: AKS-Hybrid/create-storage-classes.md
+25-13Lines changed: 25 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ To use the feature with Azure CLI, you must also have Azure CLI installed and se
43
43
az extension add --name k8s-runtime
44
44
```
45
45
46
-
## Azure portal
46
+
## [Azure portal](#tab/portal)
47
47
48
48
During the preview, our publicly available portal extension only targets provisioned clusters and is behind the feature flag `managedstorageclass` of the `Microsoft_Azure_HybridCompute` extension. [Use this link to show the link for provisioned clusters](https://portal.azure.com/?Microsoft_Azure_HybridCompute_managedstorageclass=true). The example in this article uses a provisioned cluster for demonstration purposes.
49
49
@@ -63,37 +63,41 @@ When it's ready, the UI looks similar to the following screenshot. Your storage
63
63
64
64
:::image type="content" source="media/create-storage-classes/storage-classes-summary.png" alt-text="Screenshot showing summary of storage classes on portal." lightbox="media/create-storage-classes/storage-classes-summary.png":::
65
65
66
-
## Azure CLI
66
+
## [Azure CLI](#tab/cli)
67
67
68
68
To enable the service in your connected cluster, you must first get the resource ID for your connected cluster. Run the following command:
69
69
70
70
```powershell
71
71
az k8s-runtime storage-class enable --resource-uri <connected cluster resource id>
72
72
```
73
73
74
+
---
75
+
74
76
## List all storage classes in the cloud
75
77
76
78
This section describes how to list all storage classes in the cloud using the portal, or CLI.
77
79
78
-
### Azure portal
80
+
### [Azure portal](#tab/portal)
79
81
80
82
The previous UI shows all the storage classes in your connected cluster that are already synchronized to the cloud.
81
83
82
-
### Azure CLI
84
+
### [Azure CLI](#tab/cli)
83
85
84
86
You can get all storage class resources of an Arc-connected cluster using Azure CLI:
85
87
86
88
```azurecli
87
89
az k8s-runtime storage-class list --resource-uri <connecter cluster resource id>
88
90
```
89
91
92
+
---
93
+
90
94
## Create a storage class
91
95
92
96
This section describes how to create a storage class using the portal, or CLI.
93
97
94
98
### NFS
95
99
96
-
#### Azure portal
100
+
#### [Azure portal](#tab/portal)
97
101
98
102
When the service is ready, the **Create** button on the action bar becomes available. Select it, and a new blade to create a new storage class is displayed.
99
103
@@ -121,7 +125,7 @@ After the Azure Resource Manager deployment completes, a new storage class with
121
125
122
126
:::image type="content" source="media/create-storage-classes/storage-summary.png" alt-text="Screenshot of portal showing storage summary":::
123
127
124
-
#### Azure CLI
128
+
#### [Azure CLI](#tab/cli)
125
129
126
130
You can create a new SMB storage class using Azure CLI:
127
131
@@ -134,9 +138,11 @@ az k8s-runtime storage-class create `
134
138
--type-properties nfs.subDir="/subdir"
135
139
```
136
140
141
+
---
142
+
137
143
### SMB
138
144
139
-
#### Azure portal
145
+
#### [Azure portal](#tab/portal)
140
146
141
147
Select **SMB** in the **Type** dropdown under the **Storage Class Type** section, and then input the required information:
142
148
@@ -146,7 +152,7 @@ If your AKS Arc instance doesn't have the built-in NFS CSI feature enabled, an e
146
152
147
153
:::image type="content" source="media/create-storage-classes/create-storage-class-no-csi-smb.png" alt-text="Screenshot of portal showing SMB error when CSI not enabled." lightbox="media/create-storage-classes/create-storage-class-no-csi-smb.png":::
148
154
149
-
#### Azure CLI
155
+
#### [Azure CLI](#tab/cli)
150
156
151
157
You can create an SMB storage class using Azure CLI:
152
158
@@ -158,17 +164,19 @@ az k8s-runtime storage-class create `
158
164
--type-properties smb.subDir="/subdir"
159
165
```
160
166
167
+
---
168
+
161
169
### AksArcDisk
162
170
163
-
#### Azure portal
171
+
#### [Azure portal](#tab/portal)
164
172
165
173
You can create [a storage class for a custom disk](https://aka.ms/aks-arc-custom-disk-storage-class) for AKS Arc. This type is only available for AKS Arc. A storage path is required for this type of storage class. You can select one with the provided selector, or input the storage path resource ID directly:
166
174
167
175
:::image type="content" source="media/create-storage-classes/create-storage-class-aks-arc-disk.png" alt-text="Screenshot of portal showing create custom disk storage class." lightbox="media/create-storage-classes/create-storage-class-aks-arc-disk.png":::
168
176
169
177
:::image type="content" source="media/create-storage-classes/custom-disk-properties.png" alt-text="Screenshot of portal showing custom disk properties." lightbox="media/create-storage-classes/custom-disk-properties.png":::
170
178
171
-
#### Azure CLI
179
+
#### [Azure CLI](#tab/cli)
172
180
173
181
You can create a storage class for a custom disk using Azure CLI:
174
182
@@ -180,6 +188,8 @@ az k8s-runtime storage-class create `
180
188
--type-properties aksarcdisk.fsType=ext4
181
189
```
182
190
191
+
---
192
+
183
193
## Update a storage class
184
194
185
195
You can update some properties of a storage class using Azure CLI. Consider the following::
@@ -199,22 +209,24 @@ az k8s-runtime storage-class update `
199
209
200
210
You can delete a storage class using the Azure portal or Azure CLI.
201
211
202
-
### Azure portal
212
+
### [Azure portal](#tab/portal)
203
213
204
214
To delete storage classes from a cluster using the portal, select the storage classes to delete, then select **Delete** and confirm the action.
0 commit comments