Get-AzGallery
Ottenere o elencare le raccolte.
Sintassi
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>]
Get-AzGallery
[-GalleryPublicName <String>]
[-Location <String>]
[-Community]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Descrizione
Ottenere o elencare le raccolte.
Esempio
Esempio 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 : {}
Ottenere la raccolta "gallery1"
Esempio 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 : {}
Ottenere tutte le raccolte in rg1.
Esempio 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 : {}
Ottenere tutte le raccolte nella sottoscrizione.
Esempio 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 : {}
Ottenere tutte le raccolte nella sottoscrizione che iniziano con "gallery".
Esempio 5
Get-AzGallery -Name galleryName -ResourceGroupName rg -Expand SharingProfile/Groups
Ottenere il profilo di condivisione di una raccolta.
Parametri
-Community
Elencare le raccolte della community.
Tipo: | SwitchParameter |
Posizione: | Named |
Valore predefinito: | None |
Necessario: | False |
Accettare l'input della pipeline: | True |
Accettare caratteri jolly: | False |
-DefaultProfile
Credenziali, account, tenant e sottoscrizione usati per la comunicazione con Azure.
Tipo: | IAzureContextContainer |
Alias: | AzContext, AzureRmContext, AzureCredential |
Posizione: | Named |
Valore predefinito: | None |
Necessario: | False |
Accettare l'input della pipeline: | False |
Accettare caratteri jolly: | False |
-Expand
Opzione espandi query da applicare all'operazione. Possibili valori: "SharingProfile/Groups"
Tipo: | String |
Posizione: | Named |
Valore predefinito: | None |
Necessario: | False |
Accettare l'input della pipeline: | True |
Accettare caratteri jolly: | False |
-GalleryPublicName
Nome pubblico della raccolta immagini condivise.
Tipo: | String |
Posizione: | Named |
Valore predefinito: | None |
Necessario: | False |
Accettare l'input della pipeline: | True |
Accettare caratteri jolly: | False |
-GalleryUniqueName
Nome univoco della raccolta immagini condivise.
Tipo: | String |
Posizione: | Named |
Valore predefinito: | None |
Necessario: | False |
Accettare l'input della pipeline: | True |
Accettare caratteri jolly: | False |
-Location
Posizione della raccolta immagini condivise.
Tipo: | String |
Posizione: | Named |
Valore predefinito: | None |
Necessario: | True |
Accettare l'input della pipeline: | True |
Accettare caratteri jolly: | False |
-Name
Nome della raccolta.
Tipo: | String |
Alias: | GalleryName |
Posizione: | 1 |
Valore predefinito: | None |
Necessario: | False |
Accettare l'input della pipeline: | True |
Accettare caratteri jolly: | True |
-ResourceGroupName
Nome del gruppo di risorse.
Tipo: | String |
Posizione: | 0 |
Valore predefinito: | None |
Necessario: | False |
Accettare l'input della pipeline: | True |
Accettare caratteri jolly: | True |
-ResourceId
ID risorsa per Gallery
Tipo: | String |
Posizione: | 0 |
Valore predefinito: | None |
Necessario: | True |
Accettare l'input della pipeline: | True |
Accettare caratteri jolly: | False |
-Scope
Specifica le raccolte condivise nella sottoscrizione o nel tenant.
Tipo: | String |
Posizione: | Named |
Valore predefinito: | None |
Necessario: | False |
Accettare l'input della pipeline: | True |
Accettare caratteri jolly: | False |