Skip to content

Commit 0003047

Browse files
committed
update the procedure for retrieving public IP
1 parent 79fad8a commit 0003047

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

articles/azure-resource-manager/templates/template-tutorial-deploy-vm-extensions.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ This tutorial covers the following tasks:
1818
> * Open a quickstart template
1919
> * Edit the template
2020
> * Deploy the template
21-
> * Verify the deployment
2221
2322
If you don't have an Azure subscription, [create a free account](https://azure.microsoft.com/free/) before you begin.
2423

@@ -50,7 +49,11 @@ If you choose to publish the file to your own location, update the `fileUri` ele
5049
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/).
5150

5251
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:
53+
54+
```url
55+
https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-vm-simple-windows/azuredeploy.json
56+
```
5457

5558
1. To open the file, select **Open**.
5659
The template defines five resources:
@@ -134,11 +137,13 @@ You must also open the HTTP port so that you would be able to access the web ser
134137

135138
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.
136139

137-
## Verify the deployment
140+
From the Cloud Shell, run the following command to retrieve the public IP address of the VM:
141+
142+
```azurepowershell
143+
(Get-AzPublicIpAddress -ResourceGroupName $resourceGroupName).IpAddress
144+
```
138145

139-
1. In the Azure portal, select the VM.
140-
1. In the VM overview, copy the IP address by selecting **Click to copy**, and then paste it in a browser tab.
141-
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:
142147

143148
![The Internet Information Services welcome page](./media/template-tutorial-deploy-vm-extensions/resource-manager-template-deploy-extensions-customer-script-web-server.png)
144149

0 commit comments

Comments
 (0)