Get-AzGalleryImageDefinition
Hämta eller lista galleribilddefinitioner.
Syntax
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>]
Description
Hämta eller lista galleribilddefinitioner.
Exempel
Exempel 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 : {}
Hämta galleribilddefinitionen.
Exempel 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 : {}
Hämta galleribilddefinitionen som börjar med "image".
Exempel 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 : {}
Hämta galleribilddefinitionerna i galleri1.
Parametrar
-Community
Visa en lista över communitygallerier.
Typ: | SwitchParameter |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-DefaultProfile
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.
Typ: | IAzureContextContainer |
Alias: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-GalleryName
Galleriets namn.
Typ: | String |
Position: | 1 |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-GalleryPublicName
Det offentliga namnet på det delade bildgalleriet.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-GalleryUniqueName
Det unika namnet på det delade bildgalleriet.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-Location
Platsen för det delade bildgalleriet.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-Name
Namnet på galleribilddefinitionen.
Typ: | String |
Alias: | GalleryImageDefinitionName |
Position: | 2 |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | True |
-ResourceGroupName
Namnet på resursgruppen.
Typ: | String |
Position: | 0 |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-ResourceId
Resurs-ID:t för galleribilddefinitionen
Typ: | String |
Position: | 0 |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-Scope
Anger gallerier som delas till prenumeration eller klientorganisation.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
Indata
Utdata
Azure PowerShell