Created
January 3, 2017 05:11
-
-
Save goyalmohit/90cd6f18e478e13fd1eca339e87f704a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$imageName = Get-AzureVMImage | | |
where { $_.ImageFamily -eq $imageFamily } | | |
sort PublishedDate -Descending | | |
select -ExpandProperty ImageName -First 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment