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-deploy-vm-extensions.md
+29-15Lines changed: 29 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Deploy VM extensions with template
3
3
description: Learn how to deploy virtual machine extensions with Azure Resource Manager templates
4
4
author: mumian
5
-
ms.date: 03/31/2020
5
+
ms.date: 04/16/2020
6
6
ms.topic: tutorial
7
7
ms.author: jgao
8
8
---
@@ -18,7 +18,6 @@ This tutorial covers the following tasks:
18
18
> * Open a quickstart template
19
19
> * Edit the template
20
20
> * Deploy the template
21
-
> * Verify the deployment
22
21
23
22
If you don't have an Azure subscription, [create a free account](https://azure.microsoft.com/free/) before you begin.
24
23
@@ -37,29 +36,34 @@ To complete this article, you need:
37
36
38
37
## Prepare a PowerShell script
39
38
40
-
A PowerShell script with the following content is shared from [GitHub](https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/tutorial-vm-extension/installWebServer.ps1):
39
+
You can use inline PowerShell script or a script file. This tutorial shows how to use a script file. A PowerShell script with the following content is shared from [GitHub](https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/tutorial-vm-extension/installWebServer.ps1):
If you choose to publish the file to your own location, you must update the `fileUri` element in the template later in the tutorial.
45
+
If you choose to publish the file to your own location, update the `fileUri` element in the template later in the tutorial.
47
46
48
47
## Open a quickstart template
49
48
50
49
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
50
52
51
1. In Visual Studio Code, select **File** > **Open File**.
53
-
1. In the **File name** box, paste the following URL: https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-vm-simple-windows/azuredeploy.json
52
+
1. In the **File name** box, paste the following URL:
***Microsoft.Storage/storageAccounts**. See the [template reference](https://docs.microsoft.com/azure/templates/Microsoft.Storage/storageAccounts).
59
-
***Microsoft.Network/publicIPAddresses**. See the [template reference](https://docs.microsoft.com/azure/templates/microsoft.network/publicipaddresses).
60
-
***Microsoft.Network/virtualNetworks**. See the [template reference](https://docs.microsoft.com/azure/templates/microsoft.network/virtualnetworks).
61
-
***Microsoft.Network/networkInterfaces**. See the [template reference](https://docs.microsoft.com/azure/templates/microsoft.network/networkinterfaces).
62
-
***Microsoft.Compute/virtualMachines**. See the [template reference](https://docs.microsoft.com/azure/templates/microsoft.compute/virtualmachines).
This inline script also update the iisstart.html content.
114
+
103
115
You must also open the HTTP port so that you would be able to access the web server.
104
116
105
117
1. Find **securityRules** in the template.
@@ -125,11 +137,13 @@ You must also open the HTTP port so that you would be able to access the web ser
125
137
126
138
For the deployment procedure, see the "Deploy the template" section of [Tutorial: Create ARM templates with dependent resources](./template-tutorial-create-templates-with-dependent-resources.md#deploy-the-template). We recommended that you use a generated password for the virtual machine administrator account. See this article's [Prerequisites](#prerequisites) section.
127
139
128
-
## Verify the deployment
140
+
From the Cloud Shell, run the following command to retrieve the public IP address of the VM:
1. In the VM overview, copy the IP address by selecting **Click to copy**, and then paste it in a browser tab.
132
-
The default Internet Information Services (IIS) welcome page opens:
146
+
Paste the IP address into a Web browser. The default Internet Information Services (IIS) welcome page opens:
133
147
134
148

0 commit comments