Skip to content

Commit

Permalink
Restart after installing Az PowerShell module
Browse files Browse the repository at this point in the history
  • Loading branch information
schnerring committed Sep 1, 2024
1 parent e13d57e commit 312b846
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions windows.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ build {
script = "./install-azure-powershell.ps1"
}

provisioner "windows-restart" {}

# Generalize image using Sysprep
# See https://www.packer.io/docs/builders/azure/arm#windows
# See https://docs.microsoft.com/en-us/azure/virtual-machines/windows/build-image-with-packer#define-packer-template
Expand Down

0 comments on commit 312b846

Please sign in to comment.