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/azure-resource-manager/templates/template-tutorial-use-conditions.md
+29-20Lines changed: 29 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,23 +50,25 @@ To complete this article, you need:
50
50
Azure QuickStart Templates is a repository for ARM templates. Instead of creating a template from scratch, you can find a sample template and customize it. The template used in this tutorial is called [Deploy a simple Windows VM](https://azure.microsoft.com/resources/templates/101-vm-simple-windows/).
51
51
52
52
1. From Visual Studio Code, select **File**>**Open File**.
This change is necessary when you use an existing storage account under a different resource group.
123
127
124
-
7. Save the changes.
128
+
1. Save the changes.
125
129
126
130
## Deploy the template
127
131
128
-
Follow the instructions in [Deploy the template](./template-tutorial-create-templates-with-dependent-resources.md#deploy-the-template) to open the Cloud shell and upload the revised template, and then run the following PowerShell script to deploy the template.
132
+
Follow the instructions in [Deploy the template](./template-tutorial-create-templates-with-dependent-resources.md#deploy-the-template) to open the Cloud Shell and upload the revised template, and then run the following PowerShell script to deploy the template.
133
+
134
+
> [!IMPORTANT]
135
+
> The storage account name must be unique across Azure. The name must have only lowercase letters or numbers. It can be no longer than 24 characters. The storage account name is the project name with "store" appended. Make sure the project name and the generated storage account name meet the storage account name requirements.
129
136
130
137
```azurepowershell
131
-
$resourceGroupName = Read-Host -Prompt "Enter the resource group name"
132
-
$storageAccountName = Read-Host -Prompt "Enter the storage account name"
138
+
$projectName = Read-Host -Prompt "Enter a project name that is used to generate resource group name and resource names"
133
139
$newOrExisting = Read-Host -Prompt "Create new or use existing (Enter new or existing)"
134
140
$location = Read-Host -Prompt "Enter the Azure location (i.e. centralus)"
135
141
$vmAdmin = Read-Host -Prompt "Enter the admin username"
136
142
$vmPassword = Read-Host -Prompt "Enter the admin password" -AsSecureString
137
143
$dnsLabelPrefix = Read-Host -Prompt "Enter the DNS Label prefix"
@@ -154,7 +163,7 @@ Try making another deployment with **newOrExisting** set to "existing" and speci
154
163
155
164
## Clean up resources
156
165
157
-
When the Azure resources are no longer needed, clean up the resources you deployed by deleting the resource group. To delete the resource group, select **Try it** to open the Cloud shell. To paste the PowerShell script, right-click the shell pane, and then select **Paste**.
166
+
When the Azure resources are no longer needed, clean up the resources you deployed by deleting the resource group. To delete the resource group, select **Try it** to open the Cloud Shell. To paste the PowerShell script, right-click the shell pane, and then select **Paste**.
158
167
159
168
```azurepowershell-interactive
160
169
$resourceGroupName = Read-Host -Prompt "Enter the same resource group name you used in the last procedure"
0 commit comments