Get-AzGallery
Obter ou listar galerias.
Sintaxe
DefaultParameter (Default)
Get-AzGallery
[[-ResourceGroupName] <String>]
[[-Name] <String>]
[-Expand <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ResourceIdParameter
Get-AzGallery
[-ResourceId] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
SharedGalleryParameterSet
Get-AzGallery
-Location <String>
[-GalleryUniqueName <String>]
[-Scope <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzGallery
[-GalleryPublicName <String>]
[-Location <String>]
[-Community]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Obter ou listar galerias.
Exemplos
Exemplo 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 : {}
Obter a galeria "gallery1"
Exemplo 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 : {}
Pegue todas as galerias no rg1.
Exemplo 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 : {}
Obtenha todas as galerias na assinatura.
Exemplo 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 : {}
Obtenha todas as galerias na assinatura que começam com a "galeria".
Exemplo 5
Get-AzGallery -Name galleryName -ResourceGroupName rg -Expand SharingProfile/Groups
Obtenha o perfil de compartilhamento de uma galeria.
Parâmetros
Listar galerias comunitárias.
Tipo: SwitchParameter
Valor padrão: None
Dá suporte a curingas: False
DontShow: False
CommunityGalleryParameterSet
Cargo: Named
Obrigatório: False
Valor do pipeline: False
Valor do pipeline pelo nome da propriedade: True
Valor dos argumentos restantes: False
-DefaultProfile
As credenciais, a conta, o locatário e a assinatura usados para a comunicação com o Azure.
Propriedades do parâmetro
Tipo: IAzureContextContainer
Valor padrão: None
Dá suporte a curingas: False
DontShow: False
Aliases: AzContext, AzureRmContext, AzureCredential
Conjuntos de parâmetros
(All)
Cargo: Named
Obrigatório: False
Valor do pipeline: False
Valor do pipeline pelo nome da propriedade: False
Valor dos argumentos restantes: False
-Expand
A opção expandir consulta a ser aplicada na operação. Valores possíveis: "SharingProfile/Groups"
Propriedades do parâmetro
Tipo: String
Valor padrão: None
Dá suporte a curingas: False
DontShow: False
Conjuntos de parâmetros
DefaultParameter
Cargo: Named
Obrigatório: False
Valor do pipeline: False
Valor do pipeline pelo nome da propriedade: True
Valor dos argumentos restantes: False
-GalleryPublicName
O nome público da Galeria de Imagens Compartilhadas.
Propriedades do parâmetro
Tipo: String
Valor padrão: None
Dá suporte a curingas: False
DontShow: False
Conjuntos de parâmetros
CommunityGalleryParameterSet
Cargo: Named
Obrigatório: False
Valor do pipeline: False
Valor do pipeline pelo nome da propriedade: True
Valor dos argumentos restantes: False
-GalleryUniqueName
O nome exclusivo da Galeria de Imagens Compartilhadas.
Propriedades do parâmetro
Tipo: String
Valor padrão: None
Dá suporte a curingas: False
DontShow: False
Conjuntos de parâmetros
SharedGalleryParameterSet
Cargo: Named
Obrigatório: False
Valor do pipeline: False
Valor do pipeline pelo nome da propriedade: True
Valor dos argumentos restantes: False
-Location
Local da Galeria de Imagens Compartilhadas.
Propriedades do parâmetro
Tipo: String
Valor padrão: None
Dá suporte a curingas: False
DontShow: False
Conjuntos de parâmetros
SharedGalleryParameterSet
Cargo: Named
Obrigatório: True
Valor do pipeline: False
Valor do pipeline pelo nome da propriedade: True
Valor dos argumentos restantes: False
-Name
O nome da galeria.
Propriedades do parâmetro
Tipo: String
Valor padrão: None
Dá suporte a curingas: True
DontShow: False
Aliases: GalleryName
Conjuntos de parâmetros
DefaultParameter
Cargo: 1
Obrigatório: False
Valor do pipeline: False
Valor do pipeline pelo nome da propriedade: True
Valor dos argumentos restantes: False
-ResourceGroupName
O nome do grupo de recursos.
Propriedades do parâmetro
Tipo: String
Valor padrão: None
Dá suporte a curingas: True
DontShow: False
Conjuntos de parâmetros
DefaultParameter
Cargo: 0
Obrigatório: False
Valor do pipeline: False
Valor do pipeline pelo nome da propriedade: True
Valor dos argumentos restantes: False
-ResourceId
A ID do recurso para Galeria
Propriedades do parâmetro
Tipo: String
Valor padrão: None
Dá suporte a curingas: False
DontShow: False
Conjuntos de parâmetros
ResourceIdParameter
Cargo: 0
Obrigatório: True
Valor do pipeline: False
Valor do pipeline pelo nome da propriedade: True
Valor dos argumentos restantes: False
-Scope
Especifica galerias compartilhadas com assinatura ou locatário.
Propriedades do parâmetro
Tipo: String
Valor padrão: None
Dá suporte a curingas: False
DontShow: False
Conjuntos de parâmetros
SharedGalleryParameterSet
Cargo: Named
Obrigatório: False
Valor do pipeline: False
Valor do pipeline pelo nome da propriedade: True
Valor dos argumentos restantes: False
CommonParameters
Este cmdlet suporta os parâmetros comuns: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction e -WarningVariable. Para obter mais informações, consulte about_CommonParameters .
Saídas