Quantcast
Channel: Bernhard Frank's Blog
Viewing all articles
Browse latest Browse all 29

How to find out which image was used for the deployment of an existing Azure VM

0
0

You may have deployed a VM in Azure using a marketplace image. Or it was deployed a long time ago. Now you might wonder which exact image was used? Either for documentation purposes – or because you need the details for an automation / PowerShell script or you are just curious if you are using the latest template.

This is how I once found out using PowerShell:

Login-AzureRmAccount
$VM = Get-AzureRmVM -ResourceGroupName MyRG -VMName TheVMName
$VM.StorageProfile.ImageReference

 

Result could look like e.g.:

Publisher : veeam
Offer     : veeam-backup-replication
Sku       : veeam-backup-replication-95
Version   : latest
Id        :


Viewing all articles
Browse latest Browse all 29

Latest Images

Trending Articles





Latest Images