Get-AzGalleryImageDefinition
Ottenere o elencare le definizioni di immagini della raccolta.
Sintassi
Get-AzGalleryImageDefinition
[-ResourceGroupName] <String>
[-GalleryName] <String>
[[-Name] <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzGalleryImageDefinition
[[-Name] <String>]
-GalleryUniqueName <String>
[-Scope <String>]
-Location <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzGalleryImageDefinition
[[-Name] <String>]
-GalleryPublicName <String>
-Location <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzGalleryImageDefinition
[-ResourceId] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzGalleryImageDefinition
[-Location <String>]
[-Community]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Descrizione
Ottenere o elencare le definizioni di immagini della raccolta.
Esempio
Esempio 1
Get-AzGalleryImageDefinition -ResourceGroupName rg1 -GalleryName gallery1 -GalleryImageDefinitionName image1
ResourceGroupName : rg1
Eula : eula
PrivacyStatementUri : Https://www.microsoft.com
ReleaseNoteUri : https://www.microsoft.com
OsType : Windows
OsState : Generalized
EndOfLifeDate : 2/18/2025 12:07:00 PM
Identifier :
Publisher : PsSDKTeamTest
Offer : testgalleryoffer1
Sku : testgallerysku1
Recommended :
VCPUs :
Min : 2
Max : 32
Memory :
Min : 1
Max : 100
Disallowed :
DiskTypes[0] : Standard_LRS
PurchasePlan :
Name : PsSDKTestPlan
Publisher : PSSDKTeam
Product : PsSDKTestProductWindowsVm
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/provi
ders/Microsoft.Compute/galleries/gallery1/images/image1
Name : image1
Type : Microsoft.Compute/galleries/images
Location : eastus2
Tags : {}
Ottenere la definizione dell'immagine della raccolta.
Esempio 2
Get-AzGalleryImageDefinition -ResourceGroupName rg1 -GalleryName gallery1 -GalleryImageDefinitionName image*
ResourceGroupName : rg1
Eula : eula
PrivacyStatementUri : Https://www.microsoft.com
ReleaseNoteUri : https://www.microsoft.com
OsType : Windows
OsState : Generalized
EndOfLifeDate : 2/18/2025 12:07:00 PM
Identifier :
Publisher : PsSDKTeamTest
Offer : testgalleryoffer1
Sku : testgallerysku1
Recommended :
VCPUs :
Min : 2
Max : 32
Memory :
Min : 1
Max : 100
Disallowed :
DiskTypes[0] : Standard_LRS
PurchasePlan :
Name : PsSDKTestPlan
Publisher : PSSDKTeam
Product : PsSDKTestProductWindowsVm
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/provi
ders/Microsoft.Compute/galleries/gallery1/images/image1
Name : image1
Type : Microsoft.Compute/galleries/images
Location : eastus2
Tags : {}
ResourceGroupName : rg1
Eula : eula
PrivacyStatementUri : Https://www.microsoft.com
ReleaseNoteUri : https://www.microsoft.com
OsType : Windows
OsState : Generalized
EndOfLifeDate : 2/18/2025 12:07:00 PM
Identifier :
Publisher : PsSDKTeamTest
Offer : testgalleryoffer1
Sku : testgallerysku1
Recommended :
VCPUs :
Min : 2
Max : 32
Memory :
Min : 1
Max : 100
Disallowed :
DiskTypes[0] : Standard_LRS
PurchasePlan :
Name : PsSDKTestPlan
Publisher : PSSDKTeam
Product : PsSDKTestProductWindowsVm
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/provi
ders/Microsoft.Compute/galleries/gallery1/images/image2
Name : image2
Type : Microsoft.Compute/galleries/images
Location : eastus2
Tags : {}
Ottenere la definizione dell'immagine della raccolta che inizia con "image".
Esempio 3
Get-AzGalleryImageDefinition -ResourceGroupName rg1 -GalleryName gallery1
ResourceGroupName : rg1
Eula : eula
PrivacyStatementUri : Https://www.microsoft.com
ReleaseNoteUri : https://www.microsoft.com
OsType : Windows
OsState : Generalized
EndOfLifeDate : 2/18/2025 12:07:00 PM
Identifier :
Publisher : PsSDKTeamTest
Offer : testgalleryoffer1
Sku : testgallerysku1
Recommended :
VCPUs :
Min : 2
Max : 32
Memory :
Min : 1
Max : 100
Disallowed :
DiskTypes[0] : Standard_LRS
PurchasePlan :
Name : PsSDKTestPlan
Publisher : PSSDKTeam
Product : PsSDKTestProductWindowsVm
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/provi
ders/Microsoft.Compute/galleries/gallery1/images/image1
Name : image1
Type : Microsoft.Compute/galleries/images
Location : eastus2
Tags : {}
ResourceGroupName : rg1
Eula : eula
PrivacyStatementUri : Https://www.microsoft.com
ReleaseNoteUri : https://www.microsoft.com
OsType : Windows
OsState : Generalized
EndOfLifeDate : 2/18/2025 12:07:00 PM
Identifier :
Publisher : PsSDKTeamTest
Offer : testgalleryoffer1
Sku : testgallerysku1
Recommended :
VCPUs :
Min : 2
Max : 32
Memory :
Min : 1
Max : 100
Disallowed :
DiskTypes[0] : Standard_LRS
PurchasePlan :
Name : PsSDKTestPlan
Publisher : PSSDKTeam
Product : PsSDKTestProductWindowsVm
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/provi
ders/Microsoft.Compute/galleries/gallery1/images/image2
Name : image2
Type : Microsoft.Compute/galleries/images
Location : eastus2
Tags : {}
Ottenere le definizioni delle immagini della raccolta in gallery1.
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 |
-GalleryName
Nome della raccolta.
Tipo: | String |
Posizione: | 1 |
Valore predefinito: | None |
Necessario: | True |
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: | True |
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: | True |
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 definizione dell'immagine della raccolta.
Tipo: | String |
Alias: | GalleryImageDefinitionName |
Posizione: | 2 |
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: | True |
Accettare l'input della pipeline: | True |
Accettare caratteri jolly: | False |
-ResourceId
ID risorsa per la definizione dell'immagine della raccolta
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 |