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: articles/storage/common/storage-account-create.md
+13-5Lines changed: 13 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ author: tamram
7
7
8
8
ms.service: storage
9
9
ms.topic: how-to
10
-
ms.date: 01/17/2020
10
+
ms.date: 02/07/2020
11
11
ms.author: tamram
12
12
ms.subservice: common
13
13
---
@@ -30,7 +30,15 @@ None.
30
30
31
31
# [PowerShell](#tab/azure-powershell)
32
32
33
-
This how-to article requires the Azure PowerShell module Az version 0.7 or later. Run `Get-Module -ListAvailable Az` to find your current version. If you need to install or upgrade, see [Install Azure PowerShell module](/powershell/azure/install-Az-ps).
33
+
To create an Azure storage account with PowerShell, make sure you have installed Azure PowerShell module Az version 0.7 or later. For more information, see [Introducing the Azure PowerShell Az module](/powershell/azure/new-azureps-module-az).
34
+
35
+
To find your current version, run the following command:
36
+
37
+
```powershell
38
+
Get-InstalledModule -Name "Az"
39
+
```
40
+
41
+
To install or upgrade Azure PowerShell, see [Install Azure PowerShell module](/powershell/azure/install-Az-ps).
34
42
35
43
# [Azure CLI](#tab/azure-cli)
36
44
@@ -79,7 +87,7 @@ To launch Azure Cloud Shell, sign in to the [Azure portal](https://portal.azure.
79
87
80
88
To log into your local installation of the CLI, run the [az login](/cli/azure/reference-index#az-login) command:
81
89
82
-
```cli
90
+
```azurecli-interactive
83
91
az login
84
92
```
85
93
@@ -109,14 +117,14 @@ First, create a new resource group with PowerShell using the [New-AzResourceGrou
109
117
# put resource group in a variable so you can use the same group name going forward,
If you're not sure which region to specify for the `-Location` parameter, you can retrieve a list of supported regions for your subscription with the [Get-AzLocation](/powershell/module/az.resources/get-azlocation) command:
116
125
117
126
```powershell
118
127
Get-AzLocation | select Location
119
-
$location = "westus"
120
128
```
121
129
122
130
Next, create a general-purpose v2 storage account with read-access geo-redundant storage (RA-GRS) by using the [New-AzStorageAccount](/powershell/module/az.storage/New-azStorageAccount) command. Remember that the name of your storage account must be unique across Azure, so replace the placeholder value in brackets with your own unique value:
> If you plan to use [Azure Data Lake Storage](https://azure.microsoft.com/services/storage/data-lake-storage/), include `-EnableHierarchicalNamespace $True` in this list of parameters.
141
+
> If you plan to use [Azure Data Lake Storage](https://azure.microsoft.com/services/storage/data-lake-storage/), include `-EnableHierarchicalNamespace $True` in this list of parameters.
134
142
135
143
To create a general-purpose v2 storage account with a different replication option, substitute the desired value in the table below for the **SkuName** parameter.
0 commit comments