Skip to content

Commit a06f835

Browse files
Merge pull request #233024 from ericd-mst-github/patch-38
Update build-image-with-packer.md
2 parents edb7340 + dd69ea4 commit a06f835

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/virtual-machines/windows/build-image-with-packer.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: PowerShell - How to create VM Images with Packer
33
description: Learn how to use Packer and PowerShell to create images of virtual machines in Azure
4-
author: cynthn
4+
author: ericd-mst-github
55
ms.service: virtual-machines
66
ms.subservice: imaging
77
ms.collection: windows
88
ms.topic: how-to
99
ms.workload: infrastructure
10-
ms.date: 08/05/2020
11-
ms.author: cynthn
10+
ms.date: 03/31/2023
11+
ms.author: erd
1212
ms.custom: devx-track-azurepowershell
1313
---
1414

@@ -19,7 +19,7 @@ ms.custom: devx-track-azurepowershell
1919

2020
Each virtual machine (VM) in Azure is created from an image that defines the Windows distribution and OS version. Images can include pre-installed applications and configurations. The Azure Marketplace provides many first and third-party images for most common OS' and application environments, or you can create your own custom images tailored to your needs. This article details how to use the open-source tool [Packer](https://www.packer.io/) to define and build custom images in Azure.
2121

22-
This article was last tested on 8/5/2020 using [Packer](https://www.packer.io/docs/install) version 1.6.1.
22+
This article was last tested on 8/5/2020 using [Packer](https://www.packer.io/docs/install) version 1.8.1.
2323

2424
> [!NOTE]
2525
> Azure now has a service, Azure Image Builder, for defining and creating your own custom images. Azure Image Builder is built on Packer, so you can even use your existing Packer shell provisioner scripts with it. To get started with Azure Image Builder, see [Create a Windows VM with Azure Image Builder](image-builder.md).
@@ -166,8 +166,8 @@ If you don't already have Packer installed on your local machine, [follow the Pa
166166

167167
Build the image by opening a cmd prompt and specifying your Packer template file as follows:
168168

169-
```
170-
./packer build windows.json
169+
```powershell
170+
packer build windows.json
171171
```
172172
You can also build the image by specifying the *windows.pkr.hcl* file as follows:
173173

@@ -177,7 +177,7 @@ packer build windows.pkr.hcl
177177

178178
An example of the output from the preceding commands is as follows:
179179

180-
```bash
180+
```powershell
181181
azure-arm output will be in this color.
182182
183183
==> azure-arm: Running builder ...

0 commit comments

Comments
 (0)