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
- This article assumes that you have already created an Azure subscription. If you don't already have a subscription, then create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
38
+
- This article assumes that you've already created an Azure subscription. If you don't already have a subscription, then create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
39
39
- If you intend to use Azure PowerShell, [install the latest version](/powershell/azure/install-az-ps).
40
-
- If you intend to use the Azure CLI, [install the latest version](/cli/azure/install-azure-cli).
40
+
- If you intend to use Azure CLI, [install the latest version](/cli/azure/install-azure-cli).
41
41
42
42
## Create a storage account
43
43
Azure file shares are deployed into *storage accounts*, which are top-level objects that represent a shared pool of storage. This pool of storage can be used to deploy multiple file shares.
@@ -80,14 +80,14 @@ The advanced section contains several important settings for Azure file shares:
80
80
81
81
:::image type="content" source="media/storage-how-to-create-file-share/files-create-smb-share-secure-transfer.png" alt-text="A screenshot of secure transfer enabled in the advanced settings for the storage account.":::
82
82
83
-
-**Large file shares**: This field enables the storage account for file shares spanning up to 100 TiB. Enabling this feature will limit your storage account to only locally redundant and zone redundant storage options. Once a GPv2 storage account has been enabled for large file shares, you cannot disable the large file share capability. FileStorage storage accounts (storage accounts for premium file shares) do not have this option, as all premium file shares can scale up to 100 TiB.
83
+
-**Large file shares**: This field enables the storage account for file shares spanning up to 100 TiB. Enabling this feature will limit your storage account to only locally redundant and zone redundant storage options. Once a GPv2 storage account has been enabled for large file shares, you cannot disable the large file share capability. FileStorage storage accounts (storage accounts for premium file shares) don't have this option, as all premium file shares can scale up to 100 TiB.
84
84
85
85
:::image type="content" source="media/storage-how-to-create-file-share/files-create-smb-share-large-file-shares.png" alt-text="A screenshot of the large file share setting in the storage account's advanced blade.":::
86
86
87
-
The other settings that are available in the advanced tab (hierarchical namespace for Azure Data Lake storage gen 2, default blob tier, NFSv3 for blob storage, etc.) do not apply to Azure Files.
87
+
The other settings that are available in the advanced tab (hierarchical namespace for Azure Data Lake storage gen 2, default blob tier, NFSv3 for blob storage, etc.) don't apply to Azure Files.
88
88
89
89
> [!Important]
90
-
> Selecting the blob access tier does not affect the tier of the file share.
90
+
> Selecting the blob access tier doesn't affect the tier of the file share.
91
91
92
92
#### Tags
93
93
Tags are name/value pairs that enable you to categorize resources and view consolidated billing by applying the same tag to multiple resources and resource groups. These are optional and can be applied after storage account creation.
@@ -98,7 +98,7 @@ The final step to create the storage account is to select the **Create** button
98
98
# [PowerShell](#tab/azure-powershell)
99
99
To create a storage account using PowerShell, we will use the `New-AzStorageAccount` cmdlet. This cmdlet has many options; only the required options are shown. To learn more about advanced options, see the [`New-AzStorageAccount` cmdlet documentation](/powershell/module/az.storage/new-azstorageaccount).
100
100
101
-
To simplify the creation of the storage account and subsequent file share, we will store several parameters in variables. You may replace the variable contents with whatever values you wish, however note that the storage account name must be globally unique.
101
+
To simplify the creation of the storage account and subsequent file share, we will store several parameters in variables. You may replace the variable contents with whatever values you wish; however, note that the storage account name must be globally unique.
To create a storage account using the Azure CLI, we will use the az storage account create command. This command has many options; only the required options are shown. To learn more about the advanced options, see the [`az storage account create` command documentation](/cli/azure/storage/account).
133
+
To create a storage account using Azure CLI, we will use the az storage account create command. This command has many options; only the required options are shown. To learn more about the advanced options, see the [`az storage account create` command documentation](/cli/azure/storage/account).
134
134
135
135
To simplify the creation of the storage account and subsequent file share, we will store several parameters in variables. You may replace the variable contents with whatever values you wish, however note that the storage account name must be globally unique.
136
136
@@ -165,8 +165,8 @@ az storage account create \
165
165
166
166
---
167
167
168
-
### Enable large files shares on an existing account
169
-
Before you create an Azure file share on an existing storage account, you may want to enable it for large file shares (up to 100 TiB) if you haven't already. Standard storage accounts using either LRS or ZRS can be upgraded to support large file shares without causing downtime for existing file shares on the storage account. If you have a GRS, GZRS, RA-GRS, or RA-GZRS account, you will need to convert it to an LRS account before proceeding.
168
+
### Enable large file shares on an existing account
169
+
Before you create an Azure file share on an existing storage account, you might want to enable large file shares (up to 100 TiB) on the storage account if you haven't already. Standard storage accounts using either LRS or ZRS can be upgraded to support large file shares without causing downtime for existing file shares on the storage account. If you have a GRS, GZRS, RA-GRS, or RA-GZRS account, you'll need to convert it to an LRS account before proceeding.
170
170
171
171
# [Portal](#tab/azure-portal)
172
172
1. Open the [Azure portal](https://portal.azure.com), and navigate to the storage account where you want to enable large file shares.
@@ -348,7 +348,46 @@ az storage share-rm update \
348
348
349
349
---
350
350
351
+
## Delete a file share
352
+
To delete an Azure file share, you can use the Azure portal, Azure PowerShell, or Azure CLI. Shares can be recovered within the [soft delete](storage-files-prevent-file-share-deletion.md) retention period.
353
+
354
+
# [Portal](#tab/azure-portal)
355
+
1. Open the [Azure portal](https://portal.azure.com), and navigate to the storage account that contains the file share you want to delete.
356
+
1. Open the storage account and select **File shares**.
357
+
1. Select the file share you want to delete.
358
+
1. Select **Delete share**.
359
+
1. Check the box confirming that you agree to the deletion of the file share and all its content.
360
+
1. Select **Delete**.
361
+
362
+
:::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":::
363
+
364
+
# [PowerShell](#tab/azure-powershell)
365
+
1. Log in to your Azure account and specify your tenant ID.
366
+
367
+
```azurepowershell
368
+
Login-AzAccount -TenantId <YourTenantID>
369
+
```
370
+
371
+
1. Run the following script. Replace `<YourStorageAccountName>`, `<StorageAccountKey>`, 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.
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.
380
+
381
+
```azurecli
382
+
383
+
az storage share delete \
384
+
--name <yourFileShareName> \
385
+
--account-name <yourStorageAccountName>
386
+
```
387
+
388
+
---
389
+
351
390
## Next steps
352
-
-[Plan for a deployment of Azure Files](storage-files-planning.md) or [Plan for a deployment of Azure File Sync](../file-sync/file-sync-planning.md).
-Connect and mount a file share on [Windows](storage-how-to-use-files-windows.md), [macOS](storage-how-to-use-files-mac.md), and[Linux](storage-how-to-use-files-linux.md).
391
+
-[Planning for an Azure Files deployment](storage-files-planning.md) or [Planning for an Azure File Sync deployment](../file-sync/file-sync-planning.md).
-Mount an SMB file share on [Windows](storage-how-to-use-files-windows.md), [macOS](storage-how-to-use-files-mac.md), or[Linux](storage-how-to-use-files-linux.md).
0 commit comments