PowerShell script to fetch to list of all software's/tools embodied in the custom images and server details of base image

Varma 1,495 Reputation points
2024-02-08T17:54:21.2833333+00:00

I have custom images in compute gallery as below

User's image

and

1.

I would like to fetch software's installed on above images, is it possible to list? if yes how

the reason I am asking we will take new server from market gallery and then we will install all the softwares present in the above images.

  1. also is it possible to know which windows server is used and starting using the implementing the above images?

PLease share POwerShell command to achive this requirement

FYI;

we have enabled couple of softwares/tools SSIS softwares from Vistual studio also in one of the above image , is it possible to get all those tools/softwares using any PowerShell commands

We would like to start fresh from scratch using packer

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

Accepted answer
  1. Martin Therkelsen 1,410 Reputation points MVP
    2024-02-08T19:08:11.7033333+00:00

    There is no easy way of doing this. You do have a few options, though.

    1. You can deploy the image to a new VM and then use PowerShell to fetch the installed software by doing a remote command to the VM. You still need to upload the result to a place where you can see it, like a storage account.
    2. If you don't want to run remote PowerShell on the VM, you can download the VHD file from the VM created and then mount it locally and fetch the information.

    Neither of the above solutions will help you get any source files for installing the software on a new image. You must get those installation media elsewhere and set up Packer to install it into a new image.


0 additional answers

Sort by: Most helpful

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.