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.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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
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.
@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