Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 34890

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 34890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>