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
+27-18Lines changed: 27 additions & 18 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
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.
129
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 meets the storage account name requirements.
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"
0 commit comments