Skip to content

Commit ef9cdf8

Browse files
authored
Merge pull request #111130 from mumian/0413-copy-tutorial
update the advanced tutorials
2 parents 2c3b4b4 + 6c10442 commit ef9cdf8

5 files changed

+23
-5
lines changed

articles/azure-resource-manager/templates/quickstart-create-templates-use-visual-studio-code.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ There are many methods for deploying templates. Azure Cloud Shell is used in thi
136136
read location &&
137137
resourceGroupName="${projectName}rg" &&
138138
az group create --name $resourceGroupName --location "$location" &&
139-
az deployment group create --resource-group $resourceGroupName --template-file "$HOME/azuredeploy.json"
139+
az deployment group create --resource-group $resourceGroupName --template-file "$HOME/azuredeploy.json" &&
140+
echo "Press [ENTER] to continue ..."
140141
```
141142

142143
# [PowerShell](#tab/PowerShell)
@@ -148,6 +149,7 @@ There are many methods for deploying templates. Azure Cloud Shell is used in thi
148149

149150
New-AzResourceGroup -Name $resourceGroupName -Location "$location"
150151
New-AzResourceGroupDeployment -ResourceGroupName $resourceGroupName -TemplateFile "$HOME/azuredeploy.json"
152+
Write-Host "Press [ENTER] to continue ..."
151153
```
152154

153155
---
@@ -177,7 +179,8 @@ There are many methods for deploying templates. Azure Cloud Shell is used in thi
177179
read resourceGroupName &&
178180
echo "Enter the Storage Account name:" &&
179181
read storageAccountName &&
180-
az storage account show --resource-group $resourceGroupName --name $storageAccountName
182+
az storage account show --resource-group $resourceGroupName --name $storageAccountName &&
183+
echo "Press [ENTER] to continue ..."
181184
```
182185

183186
# [PowerShell](#tab/PowerShell)
@@ -186,6 +189,7 @@ There are many methods for deploying templates. Azure Cloud Shell is used in thi
186189
$resourceGroupName = Read-Host -Prompt "Enter the Resource Group name"
187190
$storageAccountName = Read-Host -Prompt "Enter the Storage Account name"
188191
Get-AzStorageAccount -ResourceGroupName $resourceGroupName -Name $storageAccountName
192+
Write-Host "Press [ENTER] to continue ..."
189193
```
190194

191195
---

articles/azure-resource-manager/templates/template-tutorial-create-multiple-instances.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ To list all three storage accounts, omit the --name parameter:
119119
echo "Enter a project name that is used to generate resource group name:" &&
120120
read projectName &&
121121
resourceGroupName="${projectName}rg" &&
122-
az storage account list --resource-group $resourceGroupName
122+
az storage account list --resource-group $resourceGroupName &&
123+
echo "Press [ENTER] to continue ..."
123124
```
124125
125126
# [PowerShell](#tab/azure-powershell)
@@ -128,6 +129,7 @@ az storage account list --resource-group $resourceGroupName
128129
$projectName = Read-Host -Prompt "Enter a project name that is used to generate resource group name"
129130
$resourceGroupName = "${projectName}rg"
130131
Get-AzStorageAccount -ResourceGroupName $resourceGroupName
132+
Write-Host "Press [ENTER] to continue ..."
131133
```
132134
133135
---
@@ -140,7 +142,7 @@ When the Azure resources are no longer needed, clean up the resources you deploy
140142
141143
1. From the Azure portal, select **Resource group** from the left menu.
142144
2. Enter the resource group name in the **Filter by name** field.
143-
3. Select the resource group name. You shall see a total of six resources in the resource group.
145+
3. Select the resource group name. You shall see a total of three resources in the resource group.
144146
4. Select **Delete resource group** from the top menu.
145147
146148
## Next steps

articles/azure-resource-manager/templates/template-tutorial-create-templates-with-dependent-resources.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ By specifying the dependencies, Resource Manager efficiently deploys the solutio
132132
-adminPassword $adminPassword `
133133
-dnsLabelPrefix $dnsLabelPrefix `
134134
-TemplateFile "$HOME/azuredeploy.json"
135+
135136
Write-Host "Press [ENTER] to continue ..."
136137
```
137138

@@ -143,6 +144,7 @@ By specifying the dependencies, Resource Manager efficiently deploys the solutio
143144
$vmName = "SimpleWinVM"
144145

145146
Get-AzVM -Name $vmName -ResourceGroupName $resourceGroupName
147+
146148
Write-Host "Press [ENTER] to continue ..."
147149
```
148150

articles/azure-resource-manager/templates/template-tutorial-use-conditions.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ New-AzResourceGroupDeployment `
154154
-storageAccountName $storageAccountName `
155155
-newOrExisting $newOrExisting `
156156
-TemplateFile "$HOME/azuredeploy.json"
157+
158+
Write-Host "Press [ENTER] to continue ..."
157159
```
158160

159161
> [!NOTE]
@@ -166,8 +168,12 @@ Try making another deployment with **newOrExisting** set to "existing" and speci
166168
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**.
167169

168170
```azurepowershell-interactive
169-
$resourceGroupName = Read-Host -Prompt "Enter the same resource group name you used in the last procedure"
171+
$projectName = Read-Host -Prompt "Enter the same project name you used in the last procedure"
172+
$resourceGroupName = "${projectName}rg"
173+
170174
Remove-AzResourceGroup -Name $resourceGroupName
175+
176+
Write-Host "Press [ENTER] to continue ..."
171177
```
172178

173179
## Next steps

articles/azure-resource-manager/templates/template-tutorial-use-key-vault.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ New-AzResourceGroupDeployment `
166166
-ResourceGroupName $resourceGroupName `
167167
-TemplateFile "$HOME/azuredeploy.json" `
168168
-TemplateParameterFile "$HOME/azuredeploy.parameters.json"
169+
170+
Write-Host "Press [ENTER] to continue ..."
169171
```
170172

171173
When you deploy the template, use the same resource group that you used in the key vault. This approach makes it easier for you to clean up the resources, because you need to delete only one resource group instead of two.
@@ -189,6 +191,8 @@ $projectName = Read-Host -Prompt "Enter the same project name that is used for c
189191
$resourceGroupName = "${projectName}rg"
190192
191193
Remove-AzResourceGroup -Name $resourceGroupName
194+
195+
Write-Host "Press [ENTER] to continue ..."
192196
```
193197

194198
## Next steps

0 commit comments

Comments
 (0)