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-quickstart-create-account.md
+44Lines changed: 44 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,10 @@ The button launches an interactive shell that you can use to run the steps in th
51
51
52
52
You can also install and use the Azure CLI locally. This quickstart requires that you are running the Azure CLI version 2.0.4 or later. Run `az --version` to find the version. If you need to install or upgrade, see [Install the Azure CLI](/cli/azure/install-azure-cli).
53
53
54
+
# [Template](#tab/template)
55
+
56
+
None.
57
+
54
58
---
55
59
56
60
## Log in to Azure
@@ -77,6 +81,10 @@ To log into your local installation of the CLI, run the login command:
77
81
az login
78
82
```
79
83
84
+
# [Template](#tab/template)
85
+
86
+
N/A
87
+
80
88
---
81
89
82
90
## Create a storage account
@@ -166,6 +174,27 @@ To create a general-purpose v2 storage account with zone-redundant storage (ZRS
You can use either Azure Powershell or Azure CLI to deploy a template to create a storage account. The template used in this quickstart is from [Azure Quickstart templates](https://azure.microsoft.com/resources/templates/101-storage-account-create/). To run the scripts, select **Try it** to open Azure Cloud shell. To paste the script, right-click the shell, and then select **Paste**.
180
+
181
+
```azurepowershell-interactive
182
+
$resourceGroupName = Read-Host -Prompt "Enter the Resource Group name"
183
+
$location = Read-Host -Prompt "Enter the location (i.e. centralus)"
az group create --name $resourceGroupName --location "$location" &&
195
+
az group deployment create --resource-group $resourceGroupName --template-file "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-storage-account-create/azuredeploy.json"
196
+
```
197
+
169
198
---
170
199
171
200
For more information about available replication options, see [Storage replication options](storage-redundancy.md).
@@ -198,6 +227,21 @@ To remove the resource group and its associated resources, including the new sto
198
227
az group delete --name storage-quickstart-resource-group
199
228
```
200
229
230
+
# [Template](#tab/template)
231
+
232
+
To remove the resource group and its associated resources, including the new storage account, use either Azure PowerShell or Azure CLI.
233
+
234
+
```azurepowershell-interactive
235
+
$resourceGroupName = Read-Host -Prompt "Enter the Resource Group name"
0 commit comments