queries on packer and Azure image builder

Varma 1,495 Reputation points
2024-01-25T03:24:36.0933333+00:00

Please clarify following 2 questions:

  1. https://learn.microsoft.com/en-us/azure/virtual-machines/windows/build-image-with-packer https://learn.microsoft.com/en-us/answers/questions/1427568/capturing-image-and-installing-softwares-on-vm-and Please clarify difference between packer and image builder I was told to use packager FYI: we frequently create custom images and use it from virtual machies
  2. I have VM scaleset using image 1.0.8 version image from build agent gallery, so I would like to know highlevel steps to have 1.0.9 with new softwares , ( using packer )
  3. & suppose I wish to install java software and uninstall some software, in that case, how do I add and what exactly need to add in the below powershell provisioner?

User's image

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,017 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Prrudram-MSFT 28,201 Reputation points Moderator
    2024-02-02T02:07:36.9233333+00:00

    Hi @Varma

    Packer and Azure Image Builder are both tools that can be used to create custom images for virtual machines in Azure. Packer is an open-source tool that can be used to define and build custom images in Azure. Azure Image Builder is a managed service built on Packer that provides a simpler way to create custom images.

    If you frequently create custom images and use them for virtual machines, Packer may be a viable choice for you. Packer allows you to define your own custom images tailored to your needs. You can use Packer to create a latest version of your custom image with new software by following these high-level steps:

    1. Define a new Packer template that includes the new software you want to install and any software you want to uninstall.
    2. Use the Packer template to build a latest version of your custom image.
    3. Update your VM scaleset to use the latest version of your custom image.

    I would recommend reaching out to support team for further help as I have a limited scope around this topic.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.