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
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.
21
21
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.
23
23
24
24
> [!NOTE]
25
25
> 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
166
166
167
167
Build the image by opening a cmd prompt and specifying your Packer template file as follows:
168
168
169
-
```
170
-
./packer build windows.json
169
+
```powershell
170
+
packer build windows.json
171
171
```
172
172
You can also build the image by specifying the *windows.pkr.hcl* file as follows:
173
173
@@ -177,7 +177,7 @@ packer build windows.pkr.hcl
177
177
178
178
An example of the output from the preceding commands is as follows:
0 commit comments