Get-AzGallery
Get or list galleries.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
Get-AzGallery
[[-ResourceGroupName] <String>]
[[-Name] <String>]
[-Expand <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzGallery
[-ResourceId] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzGallery
[-GalleryUniqueName <String>]
[-Scope <String>]
-Location <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get or list galleries.
Examples
Example 1
Get-AzGallery -ResourceGroupName rg1 -GalleryName gallery1
ResourceGroupName : rg1
Description : Gallery created by PowerShell.
Identifier :
UniqueName : 00000000-0000-0000-0000-000000000000-gallery1
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/galleries/gallery1
Name : gallery1
Type : Microsoft.Compute/galleries
Location : southcentralus
Tags : {}
Get the gallery "gallery1"
Example 2
Get-AzGallery -ResourceGroupName rg1
ResourceGroupName : rg1
Description : Gallery created by PowerShell.
Identifier :
UniqueName : 00000000-0000-0000-0000-000000000000-gallery1
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/galleries/gallery1
Name : gallery1
Type : Microsoft.Compute/galleries
Location : southcentralus
Tags : {}
ResourceGroupName : rg1
Description : Gallery created by PowerShell.
Identifier :
UniqueName : 00000000-0000-0000-0000-000000000000-gallery2
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/galleries/gallery2
Name : gallery2
Type : Microsoft.Compute/galleries
Location : southcentralus
Tags : {}
Get all galleries in rg1.
Example 3
Get-AzGallery
ResourceGroupName : rg1
Description : Gallery created by PowerShell.
Identifier :
UniqueName : 00000000-0000-0000-0000-000000000000-gallery1
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/galleries/gallery1
Name : gallery1
Type : Microsoft.Compute/galleries
Location : southcentralus
Tags : {}
ResourceGroupName : rg1
Description : Gallery created by PowerShell.
Identifier :
UniqueName : 00000000-0000-0000-0000-000000000000-gallery2
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/galleries/gallery2
Name : gallery2
Type : Microsoft.Compute/galleries
Location : southcentralus
Tags : {}
ResourceGroupName : rg2
Description : Gallery created by PowerShell.
Identifier :
UniqueName : 00000000-0000-0000-0000-000000000000-gallery3
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg2/providers/Microsoft.Compute/galleries/gallery3
Name : gallery3
Type : Microsoft.Compute/galleries
Location : southcentralus
Tags : {}
Get all galleries in subscription.
Example 4
Get-AzGallery -Name gallery*
ResourceGroupName : rg1
Description : Gallery created by PowerShell.
Identifier :
UniqueName : 00000000-0000-0000-0000-000000000000-gallery1
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/galleries/gallery1
Name : gallery1
Type : Microsoft.Compute/galleries
Location : southcentralus
Tags : {}
ResourceGroupName : rg1
Description : Gallery created by PowerShell.
Identifier :
UniqueName : 00000000-0000-0000-0000-000000000000-gallery2
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/galleries/gallery2
Name : gallery2
Type : Microsoft.Compute/galleries
Location : southcentralus
Tags : {}
ResourceGroupName : rg2
Description : Gallery created by PowerShell.
Identifier :
UniqueName : 00000000-0000-0000-0000-000000000000-gallery3
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg2/providers/Microsoft.Compute/galleries/gallery3
Name : gallery3
Type : Microsoft.Compute/galleries
Location : southcentralus
Tags : {}
Get all galleries in subscription that start with "gallery".
Example 5
PS C:\> Get-AzGallery -Name galleryName -ResourceGroupName rg -Expand SharingProfile/Groups
Get a gallery's sharing profile.
Parameters
The credentials, account, tenant, and subscription used for communication with Azure.
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The expand query option to apply on the operation. Possible value(s): "SharingProfile/Groups"
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
The unique name of the Shared Image Gallery.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Location of the Shared Image Gallery.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
The name of the gallery.
| Type: | String |
| Aliases: | GalleryName |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | True |
The name of the resource group.
| Type: | String |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | True |
The resource id for Gallery
| Type: | String |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Specifies galleries shared to subscription or tenant.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |