azure VM Applications install through Powershell

Arif Usman 496 Reputation points
2022-06-07T01:18:55.627+00:00

Folks,
I know it is in public preview, but i am testing and trying to find a way to install azure vm applications gallery from Powershell to multiple vm. I was able to create application Definition and able to install on vm by going to Extension+application but wondering if i can do through powershell ...https://learn.microsoft.com/en-us/azure/virtual-machines/vm-applications-how-to?tabs=portal

i can get name of application through PS
(Get-AzGalleryApplication -GalleryName $GalleryName -ResourceGroupName $rgName).name

But can't figure it out how can install in vm. wondering if anyone has done or trying to do this.
thanks in advance

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

Accepted answer
  1. Luke Murray 11,436 Reputation points MVP Volunteer Moderator
    2022-06-12T02:53:30.893+00:00

    Yes you can, I wrote a post similar to what I believe you may need:

    Please "Accept as Answer" and Upvote if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues.


1 additional answer

Sort by: Most helpful
  1. Arif Usman 496 Reputation points
    2022-06-19T02:42:39.583+00:00

    @Luke Murray , Thanks for your reply, it works perfectly. Is it possible to find out if vm has already specific vm application definition installed.
    I don't see any query for get-AzVmGalleryApplication to query?? any thought or suggestion??

    thanks in advance


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.