< Back

Get-AzureRmImage

Tue Jan 29, 2019 9:37 pm

NAME Get-AzureRmImage



SYNOPSIS

Gets the properties of an image.





SYNTAX

Get-AzureRmImage [[-ResourceGroupName] <String>] [[-ImageName] <String>] [[-Expand] <String>] [-DefaultProfile <IAzureContextContainer>]

[<CommonParameters>]





DESCRIPTION

The Get-AzureRmImage cmdlet gets the properties of an image.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Expand <String>

Specifies the expand expression query.



Required? false

Position? 3

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ImageName <String>

Specifies the name of an image.



Required? false

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

Specifies the name of a resource group.



Required? false

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String







OUTPUTS

Microsoft.Azure.Commands.Compute.Automation.Models.PSImage







NOTES









Example 1



PS C:\\> Get-AzureRmImage -ResourceGroupName 'ResourceGroup01' -ImageName 'Image01'



This command gets the properties of the image named 'Image01' in the resource group 'ResourceGroup01'.





Example 2



PS C:\\> Get-AzureRmImage -ResourceGroupName 'ResourceGroup01'



This command gets the properties of all images in the resource group 'ResourceGroup01'.





Example 3



PS C:\\> Get-AzureRmImage



This command gets the properties of all images under the subscription.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... urermimage