Skip to content

Commit 1774948

Browse files
committed
Add tabs
1 parent c180808 commit 1774948

File tree

1 file changed

+25
-13
lines changed

1 file changed

+25
-13
lines changed

AKS-Hybrid/create-storage-classes.md

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ To use the feature with Azure CLI, you must also have Azure CLI installed and se
4343
az extension add --name k8s-runtime
4444
```
4545

46-
## Azure portal
46+
## [Azure portal](#tab/portal)
4747

4848
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.
4949

@@ -63,37 +63,41 @@ When it's ready, the UI looks similar to the following screenshot. Your storage
6363

6464
:::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":::
6565

66-
## Azure CLI
66+
## [Azure CLI](#tab/cli)
6767

6868
To enable the service in your connected cluster, you must first get the resource ID for your connected cluster. Run the following command:
6969

7070
```powershell
7171
az k8s-runtime storage-class enable --resource-uri <connected cluster resource id>
7272
```
7373

74+
---
75+
7476
## List all storage classes in the cloud
7577

7678
This section describes how to list all storage classes in the cloud using the portal, or CLI.
7779

78-
### Azure portal
80+
### [Azure portal](#tab/portal)
7981

8082
The previous UI shows all the storage classes in your connected cluster that are already synchronized to the cloud.
8183

82-
### Azure CLI
84+
### [Azure CLI](#tab/cli)
8385

8486
You can get all storage class resources of an Arc-connected cluster using Azure CLI:
8587

8688
```azurecli
8789
az k8s-runtime storage-class list --resource-uri <connecter cluster resource id>
8890
```
8991

92+
---
93+
9094
## Create a storage class
9195

9296
This section describes how to create a storage class using the portal, or CLI.
9397

9498
### NFS
9599

96-
#### Azure portal
100+
#### [Azure portal](#tab/portal)
97101

98102
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.
99103

@@ -121,7 +125,7 @@ After the Azure Resource Manager deployment completes, a new storage class with
121125

122126
:::image type="content" source="media/create-storage-classes/storage-summary.png" alt-text="Screenshot of portal showing storage summary":::
123127

124-
#### Azure CLI
128+
#### [Azure CLI](#tab/cli)
125129

126130
You can create a new SMB storage class using Azure CLI:
127131

@@ -134,9 +138,11 @@ az k8s-runtime storage-class create `
134138
--type-properties nfs.subDir="/subdir"
135139
```
136140

141+
---
142+
137143
### SMB
138144

139-
#### Azure portal
145+
#### [Azure portal](#tab/portal)
140146

141147
Select **SMB** in the **Type** dropdown under the **Storage Class Type** section, and then input the required information:
142148

@@ -146,7 +152,7 @@ If your AKS Arc instance doesn't have the built-in NFS CSI feature enabled, an e
146152

147153
:::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":::
148154

149-
#### Azure CLI
155+
#### [Azure CLI](#tab/cli)
150156

151157
You can create an SMB storage class using Azure CLI:
152158

@@ -158,17 +164,19 @@ az k8s-runtime storage-class create `
158164
--type-properties smb.subDir="/subdir"
159165
```
160166

167+
---
168+
161169
### AksArcDisk
162170

163-
#### Azure portal
171+
#### [Azure portal](#tab/portal)
164172

165173
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:
166174

167175
:::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":::
168176

169177
:::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":::
170178

171-
#### Azure CLI
179+
#### [Azure CLI](#tab/cli)
172180

173181
You can create a storage class for a custom disk using Azure CLI:
174182

@@ -180,6 +188,8 @@ az k8s-runtime storage-class create `
180188
--type-properties aksarcdisk.fsType=ext4
181189
```
182190

191+
---
192+
183193
## Update a storage class
184194

185195
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 `
199209

200210
You can delete a storage class using the Azure portal or Azure CLI.
201211

202-
### Azure portal
212+
### [Azure portal](#tab/portal)
203213

204214
To delete storage classes from a cluster using the portal, select the storage classes to delete, then select **Delete** and confirm the action.
205215

206216
:::image type="content" source="media/create-storage-classes/delete-portal.png" alt-text="Screenshot of portal showing delete storage classes." lightbox="media/create-storage-classes/delete-portal.png":::
207217

208218
:::image type="content" source="media/create-storage-classes/delete-confirm.png" alt-text="Screenshot of portal showing storage class delete confirmation." lightbox="media/create-storage-classes/delete-confirm.png":::
209219

210-
### Azure CLI
220+
### [Azure CLI](#tab/cli)
211221

212222
You can delete a storage class using Azure CLI:
213223

214224
```azurecli
215225
az k8s-runtime storage-class delete --resource-uri <connected resource id> --storage-class-name <storage class name>
216226
```
217227

228+
---
229+
218230
## Disable Storage Class service
219231

220232
You can disable the Storage Class service using Azure CLI:
@@ -277,7 +289,7 @@ You can see the attribute detection results of a storage class in the cloud as d
277289

278290
#### Azure portal
279291

280-
The attribute detection results are available in the list, using the following methods.
292+
The attribute detection results are available in the list.
281293

282294
### REST CLI
283295

0 commit comments

Comments
 (0)