Skip to content

Commit bb5fe70

Browse files
committed
Fix stale reference to data plane cmdlets.
1 parent 02de826 commit bb5fe70

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

articles/storage/files/storage-how-to-create-file-share.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -338,27 +338,23 @@ To delete an Azure file share, you can use the Azure portal, Azure PowerShell, o
338338
:::image type="content" source="media/storage-how-to-create-file-share/delete-file-share.png" alt-text="Screen shot of the Azure portal procedure for deleting a file share." border="true" lightbox="media/storage-how-to-create-file-share/delete-file-share.png":::
339339

340340
# [PowerShell](#tab/azure-powershell)
341-
1. Log in to your Azure account. To use multi-factor authentication, you'll need to supply your Azure tenant ID.
341+
1. Run the following script. Replace `<ResourceGroup>`, `<StorageAccount>`, and `<FileShare>` with your information.
342342

343343
```azurepowershell
344-
Login-AzAccount -TenantId <YourTenantID>
345-
```
346-
347-
1. Run the following script. Replace `<YourStorageAccountName>`, `<YourStorageAccountKey>`, and `<FileShareName>` with your information. You can find your storage account key in the Azure portal by navigating to the storage account and selecting **Security + networking** > **Access keys**, or you can use the `Get-AzStorageAccountKey` cmdlet.
348-
349-
```azurepowershell
350-
$context = New-AzStorageContext -StorageAccountName <YourStorageAccountName> -StorageAccountKey <YourStorageAccountKey>
351-
Remove-AzStorageShare -Context $context -Name "<FileShareName>"
344+
Remove-AzRmStorageShare `
345+
-ResourceGroupName <ResourceGroup> `
346+
-StorageAccountName <StorageAccount> `
347+
-Name <FileShare>
352348
```
353349

354350
# [Azure CLI](#tab/azure-cli)
355-
You can delete an Azure file share with the [`az storage share delete`](/cli/azure/storage/share#az-storage-share-delete) command. Replace `<yourFileShareName>` and `<yourStorageAccountName>` with your information.
351+
You can delete an Azure file share with the [`az storage share delete`](/cli/azure/storage/share#az-storage-share-delete) command. Replace `<ResourceGroup>`, `<StorageAccount>`, and `<FileShare>` with your information.
356352

357353
```azurecli
358-
359-
az storage share delete \
360-
--name <yourFileShareName> \
361-
--account-name <yourStorageAccountName>
354+
az storage share-rm delete \
355+
--resource-group <ResourceGroup> \
356+
--storage-account <StorageAccount> \
357+
--name <FileShare>
362358
```
363359

364360
---

0 commit comments

Comments
 (0)