Get-​Azure​Rm​VM​Image

Gets all the versions of a VMImage.

Syntax

Get-AzureRmVMImage
   [-FilterExpression <String>]
   -Location <String>
   -Offer <String>
   -PublisherName <String>
   -Skus <String>
   [<CommonParameters>]
Get-AzureRmVMImage
   -Location <String>
   -Offer <String>
   -PublisherName <String>
   -Skus <String>
   -Version <String>
   [<CommonParameters>]

Description

The Get-AzureRmVMImage cmdlet gets all the versions of a VMImage.

Examples

Example 1: Get VMImage objects

PS C:\>Get-AzureRmVMImage -Location "Central US" -PublisherName "Canonical" -Offer "UbuntuServer" -Skus "15.04-DAILY"

This command gets all the versions of VMImage that match the specified values.

Required Parameters

-Location

Specifies the location of a VMImage.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Offer

Specifies the type of VMImage offer. To obtain an image offer, use the Get-AzureRmVMImageOffer cmdlet.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-PublisherName

Specifies the publisher of a VMImage. To obtain an image publisher, use the Get-AzureRmVMImagePublisher cmdlet.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Skus

Specifies a VMImage SKU. To obtain an SKU, use the Get-AzureRmVMImageSku cmdlet.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Version

Specifies the version of the VMImage.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-FilterExpression

Specifies a filter expression.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False