Skip to content

Commit d13e02a

Browse files
committed
Merge branch 'master' of https://github.com/MicrosoftDocs/azure-docs-pr into zonalDiskMove
2 parents 0f9ae9e + d876d47 commit d13e02a

File tree

2 files changed

+71
-74
lines changed

2 files changed

+71
-74
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ When you enable large file shares on your storage account, your file shares can
1919

2020
- If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/) before you begin.
2121
- If you intend to use the Azure CLI, [install the latest version](https://docs.microsoft.com/cli/azure/install-azure-cli?view=azure-cli-latest).
22-
- If you intend to use Azure PowerShell, [install the latest version](https://docs.microsoft.com/powershell/azure/install-az-ps?view=azps-3.0.0).
22+
- If you intend to use the Azure PowerShell module, [install the latest version](https://docs.microsoft.com/powershell/azure/install-az-ps?view=azps-4.6.0).
2323

2424
## Restrictions
2525

articles/storage/files/storage-how-to-create-premium-fileshare.md

Lines changed: 70 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,39 @@
11
---
22
title: Create a premium Azure file share
3-
description: In this article, learn how to create a premium Azure file share using the Azure portal, PowerShell, or the Azure CLI.
3+
description: Learn how to create an Azure premium file share using the Azure portal, Azure PowerShell module, or the Azure CLI.
44
author: roygara
55
ms.service: storage
66
ms.topic: how-to
7-
ms.date: 05/05/2019
7+
ms.date: 08/26/2020
88
ms.author: rogarana
99
ms.subservice: files
1010
ms.custom: devx-track-azurecli
11-
#Customer intent: As a < type of user >, I want < what? > so that < why? >.
1211
---
1312

14-
# How to create an premium Azure file share
13+
# How to create an Azure premium file share
14+
1515
Premium file shares are offered on solid-state disk (SSD) storage media and are useful for IO-intensive workloads, including hosting databases and high-performance computing (HPC). Premium file shares are hosted in a special purpose storage account kind, called a FileStorage account. Premium file shares are designed for high performance and enterprise scale applications, providing consistent low latency, high IOPS, and high throughput shares.
1616

17-
This article shows you how to create this new account type using [Azure portal](https://portal.azure.com/), Azure PowerShell, and Azure CLI.
17+
This article shows you how to create this new account type using the [Azure portal](https://portal.azure.com/), Azure PowerShell module, and the Azure CLI.
1818

1919
## Prerequisites
2020

21-
To access Azure resources including premium Azure file shares, you'll need 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.
21+
- If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/) before you begin.
22+
- If you intend to use the Azure CLI, [install the latest version](https://docs.microsoft.com/cli/azure/install-azure-cli?view=azure-cli-latest).
23+
- If you intend to use the Azure PowerShell module, [install the latest version](https://docs.microsoft.com/powershell/azure/install-az-ps?view=azps-4.6.0).
24+
25+
## Create a FileStorage storage account
26+
27+
Every storage account must belong to an Azure resource group. A resource group is a logical container for grouping your Azure services. When you create a storage account, you have the option to either create a new resource group, or use an existing resource group. Premium file shares require a FileStorage account.
2228

23-
## Create a premium file share using the Azure portal
29+
# [Portal](#tab/azure-portal)
2430

2531
### Sign in to Azure
2632

2733
Sign in to the [Azure portal](https://portal.azure.com/).
2834

29-
### Create a filestorage storage account
30-
3135
Now you're ready to create your storage account.
3236

33-
Every storage account must belong to an Azure resource group. A resource group is a logical container for grouping your Azure services. When you create a storage account, you have the option to either create a new resource group, or use an existing resource group. This article shows how to create a new resource group.
34-
3537
1. In the Azure portal, select **Storage Accounts** on the left menu.
3638

3739
![Azure portal main page select storage account](media/storage-how-to-create-premium-fileshare/azure-portal-storage-accounts.png)
@@ -56,42 +58,9 @@ Every storage account must belong to an Azure resource group. A resource group i
5658

5759
Once your storage account resource has been created, navigate to it.
5860

59-
### Create a premium file share
60-
61-
1. In the left menu for the storage account, scroll to the **File service** section, then select **Files**.
62-
1. Select **File share** to create a premium file share.
63-
1. Enter a name and a desired quota for your file share, then select **Create**.
64-
65-
> [!NOTE]
66-
> Provisioned share sizes is specified by the share quota, file shares are billed on the provisioned size, refer to the [pricing page](https://azure.microsoft.com/pricing/details/storage/files/) for more details.
67-
68-
![Create a premium file share](media/storage-how-to-create-premium-fileshare/create-premium-file-share.png)
69-
70-
### Clean up resources
71-
72-
If you would like to clean up the resources created in this article, you can simply delete the resource group. Deleting the resource group also deletes the associated storage account as well as any other resources associated with the resource group.
73-
74-
## Create a premium file share using PowerShell
75-
76-
### Create an account using PowerShell
77-
78-
First, install the latest version of the [PowerShellGet](/powershell/scripting/gallery/installing-psget) module.
79-
80-
Then, upgrade your PowerShell module, sign in to your Azure subscription, create a resource group, and then create a storage account.
81-
82-
### Upgrade your PowerShell module
61+
# [PowerShell](#tab/azure-powershell)
8362

84-
To interact with a premium file share from with PowerShell, you'll need to install an Az.Storage module version 1.4.0, or the latest Az.Storage module.
85-
86-
Start by opening a PowerShell session with elevated permissions.
87-
88-
Install the Az.Storage module:
89-
90-
```powershell
91-
Install-Module Az.Storage -Repository PSGallery -AllowClobber -Force
92-
```
93-
94-
### Sign in to your Azure Subscription
63+
### Sign in to Azure
9564

9665
Use the `Connect-AzAccount` command and follow the on-screen directions to authenticate.
9766

@@ -119,32 +88,11 @@ To create a FileStorage storage account from PowerShell, use the [New-AzStorageA
11988
$storageAcct = New-AzStorageAccount -ResourceGroupName $resourceGroup -Name "fileshowto" -SkuName "Premium_LRS" -Location "westus2" -Kind "FileStorage"
12089
```
12190

122-
### Create a premium file share
123-
124-
Now that you have a FileStorage account, you can create a premium file share. Use the [New-AzStorageShare](/powershell/module/az.storage/New-AzStorageShare) cmdlet to create one.
125-
126-
> [!NOTE]
127-
> Provisioned share sizes is specified by the share quota, file shares are billed on the provisioned size, refer to the [pricing page](https://azure.microsoft.com/pricing/details/storage/files/) for more details.
128-
129-
```powershell
130-
New-AzStorageShare `
131-
-Name myshare `
132-
-Context $storageAcct.Context
133-
```
134-
135-
### Clean up resources
136-
137-
To remove the resource group and its associated resources, including the new storage account, use the [Remove-AzResourceGroup](/powershell/module/az.resources/remove-azresourcegroup) command:
138-
139-
```powershell
140-
Remove-AzResourceGroup -Name $resourceGroup
141-
```
142-
143-
## Create a premium file share using Azure CLI
91+
# [Azure CLI](#tab/azure-cli)
14492

14593
To start Azure Cloud Shell, sign in to the [Azure portal](https://portal.azure.com).
14694

147-
If you want to log into your local installation of the CLI, first make sure you have the latest version, then run the login command:
95+
If you want to log into your local installation of the CLI, make sure you have the latest version, then sign in:
14896

14997
```azurecli
15098
az login
@@ -183,28 +131,77 @@ STORAGEKEY=$(az storage account keys list \
183131
--account-name $STORAGEACCT \
184132
--query "[0].value" | tr -d '"')
185133
```
134+
---
135+
136+
## Create a premium file share
137+
138+
Now that you've created a FileStorage account, you can create a premium file share within that storage account.
139+
140+
# [Portal](#tab/azure-portal)
141+
142+
1. In the left menu for the storage account, scroll to the **File service** section, then select **Files**.
143+
1. Select **File share** to create a premium file share.
144+
1. Enter a name and a desired quota for your file share, then select **Create**.
145+
146+
> [!NOTE]
147+
> Provisioned share sizes is specified by the share quota, file shares are billed on the provisioned size. For more information, see the [pricing page](https://azure.microsoft.com/pricing/details/storage/files/).
148+
149+
![Create a premium file share](media/storage-how-to-create-premium-fileshare/create-premium-file-share.png)
150+
151+
# [PowerShell](#tab/azure-powershell)
152+
153+
To create a premium file share with the Azure PowerShell module, use the [New-AzStorageShare](/powershell/module/az.storage/New-AzStorageShare) cmdlet.
154+
155+
> [!NOTE]
156+
> Provisioned share sizes is specified by the share quota, file shares are billed on the provisioned size. For more information, see the [pricing page](https://azure.microsoft.com/pricing/details/storage/files/).
157+
158+
```powershell
159+
New-AzStorageShare `
160+
-Name myshare `
161+
-Context $storageAcct.Context
162+
```
186163

187-
### Create a premium file share
164+
# [Azure CLI](#tab/azure-cli)
188165

189-
Now that you have a filestorage account, you can create a premium file share. Use the [az storage share create](/cli/azure/storage/share) command to create one.
166+
To create a premium file share with the Azure CLI, use the [az storage share create](/cli/azure/storage/share) command.
190167

191168
> [!NOTE]
192-
> Provisioned share sizes is specified by the share quota, file shares are billed on the provisioned size, refer to the [pricing page](https://azure.microsoft.com/pricing/details/storage/files/) for more details.
169+
> Provisioned share sizes is specified by the share quota, file shares are billed on the provisioned size. For more information, see the [pricing page](https://azure.microsoft.com/pricing/details/storage/files/).
193170
194171
```azurecli-interactive
195172
az storage share create \
196173
--account-name $STORAGEACCT \
197174
--account-key $STORAGEKEY \
198175
--name "myshare"
199176
```
177+
---
178+
179+
## Clean up resources
180+
181+
# [Portal](#tab/azure-portal)
182+
183+
If you would like to clean up the resources created in this article, delete the resource group. Deleting the resource group also deletes the associated storage account as well as any other resources associated with the resource group.
184+
185+
# [PowerShell](#tab/azure-powershell)
186+
187+
If you would like to clean up the resources created in this article, delete the resource group. Deleting the resource group also deletes the associated storage account as well as any other resources associated with the resource group.
188+
189+
To remove the resource group and its associated resources, including the new storage account, use the [Remove-AzResourceGroup](/powershell/module/az.resources/remove-azresourcegroup) command:
190+
191+
```powershell
192+
Remove-AzResourceGroup -Name $resourceGroup
193+
```
200194

201-
### Clean up resources
195+
# [Azure CLI](#tab/azure-cli)
196+
197+
If you would like to clean up the resources created in this article, delete the resource group. Deleting the resource group also deletes the associated storage account as well as any other resources associated with the resource group.
202198

203199
To remove the resource group and its associated resources, including the new storage account, use the [az group delete](/cli/azure/group) command.
204200

205201
```azurecli-interactive
206202
az group delete --name myResourceGroup
207203
```
204+
---
208205

209206
## Next steps
210207

0 commit comments

Comments
 (0)