Get-​Azure​Rm​Snapshot

Gets the properties of a snapshot

Syntax

Get-AzureRmSnapshot
   [[-ResourceGroupName] <String>]
   [[-SnapshotName] <String>]
   [<CommonParameters>]

Description

The Get-AzureRmSnapshot cmdlet gets the properties of a snapshot.

Examples

Example 1

PS C:\> Get-AzureRmSnapshot

This command gets the properties of all snapshots of the subscription.

Example 2

PS C:\> Get-AzureRmSnapshot -ResourceGroupName "ResourceGroupName1"

This command gets the properties of all snapshots in the resource group named "ResourceGroupName1"

Example 3

PS C:\> Get-AzureRmSnapshot -ResourceGroupName "ResourceGroupName1" -SnapshotName "SnapshotName1"

This command gets the properties of the snapshot named "SnapshotName1" in the resource group named "ResourceGroupName1"

Optional Parameters

-ResourceGroupName

Specifies the name of a resource group.

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

Specifies the name of a snapshot.

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

Inputs

System.String

Outputs

System.Object