Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I created a VM from one of the custom image from particular version
But I want to know which image version i have used to create VM. is it possible ? if yes how?
Hi,
You can use powershell code similar to below:
$vm = Get-AzVM -ResourceGroupName myResourceGroup -Name myVM
$vm.StorageProfile.ImageReference|fl
Please click Accept Answer and upvote if the above was helpful.
Thanks.
-TP
Hi sns,
Another solution is running the following PS command:
(Get-AzureVM -ServiceName serviceName -Name vmName).VM.OSVirtualHardDisk.SourceImageName
If this is helpful please accept answer.