This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.compute.getGalleryImage
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Retrieves information about a gallery image definition. Azure REST API version: 2022-03-03.
Other available API versions: 2022-08-03, 2023-07-03, 2024-03-03.
Using getGalleryImage
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getGalleryImage(args: GetGalleryImageArgs, opts?: InvokeOptions): Promise<GetGalleryImageResult>
function getGalleryImageOutput(args: GetGalleryImageOutputArgs, opts?: InvokeOptions): Output<GetGalleryImageResult>def get_gallery_image(gallery_image_name: Optional[str] = None,
                      gallery_name: Optional[str] = None,
                      resource_group_name: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetGalleryImageResult
def get_gallery_image_output(gallery_image_name: Optional[pulumi.Input[str]] = None,
                      gallery_name: Optional[pulumi.Input[str]] = None,
                      resource_group_name: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetGalleryImageResult]func LookupGalleryImage(ctx *Context, args *LookupGalleryImageArgs, opts ...InvokeOption) (*LookupGalleryImageResult, error)
func LookupGalleryImageOutput(ctx *Context, args *LookupGalleryImageOutputArgs, opts ...InvokeOption) LookupGalleryImageResultOutput> Note: This function is named LookupGalleryImage in the Go SDK.
public static class GetGalleryImage 
{
    public static Task<GetGalleryImageResult> InvokeAsync(GetGalleryImageArgs args, InvokeOptions? opts = null)
    public static Output<GetGalleryImageResult> Invoke(GetGalleryImageInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGalleryImageResult> getGalleryImage(GetGalleryImageArgs args, InvokeOptions options)
public static Output<GetGalleryImageResult> getGalleryImage(GetGalleryImageArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:compute:getGalleryImage
  arguments:
    # arguments dictionaryThe following arguments are supported:
- GalleryImage stringName 
- The name of the gallery image definition to be retrieved.
- GalleryName string
- The name of the Shared Image Gallery from which the Image Definitions are to be retrieved.
- ResourceGroup stringName 
- The name of the resource group.
- GalleryImage stringName 
- The name of the gallery image definition to be retrieved.
- GalleryName string
- The name of the Shared Image Gallery from which the Image Definitions are to be retrieved.
- ResourceGroup stringName 
- The name of the resource group.
- galleryImage StringName 
- The name of the gallery image definition to be retrieved.
- galleryName String
- The name of the Shared Image Gallery from which the Image Definitions are to be retrieved.
- resourceGroup StringName 
- The name of the resource group.
- galleryImage stringName 
- The name of the gallery image definition to be retrieved.
- galleryName string
- The name of the Shared Image Gallery from which the Image Definitions are to be retrieved.
- resourceGroup stringName 
- The name of the resource group.
- gallery_image_ strname 
- The name of the gallery image definition to be retrieved.
- gallery_name str
- The name of the Shared Image Gallery from which the Image Definitions are to be retrieved.
- resource_group_ strname 
- The name of the resource group.
- galleryImage StringName 
- The name of the gallery image definition to be retrieved.
- galleryName String
- The name of the Shared Image Gallery from which the Image Definitions are to be retrieved.
- resourceGroup StringName 
- The name of the resource group.
getGalleryImage Result
The following output properties are available:
- Id string
- Resource Id
- Identifier
Pulumi.Azure Native. Compute. Outputs. Gallery Image Identifier Response 
- This is the gallery image definition identifier.
- Location string
- Resource location
- Name string
- Resource name
- OsState string
- This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.
- OsType string
- This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: Windows Linux
- ProvisioningState string
- The provisioning state, which only appears in the response.
- Type string
- Resource type
- Architecture string
- The architecture of the image. Applicable to OS disks only.
- Description string
- The description of this gallery image definition resource. This property is updatable.
- Disallowed
Pulumi.Azure Native. Compute. Outputs. Disallowed Response 
- Describes the disallowed disk types.
- EndOf stringLife Date 
- The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.
- Eula string
- The Eula agreement for the gallery image definition.
- Features
List<Pulumi.Azure Native. Compute. Outputs. Gallery Image Feature Response> 
- A list of gallery image features.
- HyperVGeneration string
- The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- PrivacyStatement stringUri 
- The privacy statement uri.
- PurchasePlan Pulumi.Azure Native. Compute. Outputs. Image Purchase Plan Response 
- Describes the gallery image definition purchase plan. This is used by marketplace images.
- Recommended
Pulumi.Azure Native. Compute. Outputs. Recommended Machine Configuration Response 
- The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
- ReleaseNote stringUri 
- The release note uri.
- Dictionary<string, string>
- Resource tags
- Id string
- Resource Id
- Identifier
GalleryImage Identifier Response 
- This is the gallery image definition identifier.
- Location string
- Resource location
- Name string
- Resource name
- OsState string
- This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.
- OsType string
- This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: Windows Linux
- ProvisioningState string
- The provisioning state, which only appears in the response.
- Type string
- Resource type
- Architecture string
- The architecture of the image. Applicable to OS disks only.
- Description string
- The description of this gallery image definition resource. This property is updatable.
- Disallowed
DisallowedResponse 
- Describes the disallowed disk types.
- EndOf stringLife Date 
- The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.
- Eula string
- The Eula agreement for the gallery image definition.
- Features
[]GalleryImage Feature Response 
- A list of gallery image features.
- HyperVGeneration string
- The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- PrivacyStatement stringUri 
- The privacy statement uri.
- PurchasePlan ImagePurchase Plan Response 
- Describes the gallery image definition purchase plan. This is used by marketplace images.
- Recommended
RecommendedMachine Configuration Response 
- The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
- ReleaseNote stringUri 
- The release note uri.
- map[string]string
- Resource tags
- id String
- Resource Id
- identifier
GalleryImage Identifier Response 
- This is the gallery image definition identifier.
- location String
- Resource location
- name String
- Resource name
- osState String
- This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.
- osType String
- This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: Windows Linux
- provisioningState String
- The provisioning state, which only appears in the response.
- type String
- Resource type
- architecture String
- The architecture of the image. Applicable to OS disks only.
- description String
- The description of this gallery image definition resource. This property is updatable.
- disallowed
DisallowedResponse 
- Describes the disallowed disk types.
- endOf StringLife Date 
- The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.
- eula String
- The Eula agreement for the gallery image definition.
- features
List<GalleryImage Feature Response> 
- A list of gallery image features.
- hyperVGeneration String
- The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- privacyStatement StringUri 
- The privacy statement uri.
- purchasePlan ImagePurchase Plan Response 
- Describes the gallery image definition purchase plan. This is used by marketplace images.
- recommended
RecommendedMachine Configuration Response 
- The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
- releaseNote StringUri 
- The release note uri.
- Map<String,String>
- Resource tags
- id string
- Resource Id
- identifier
GalleryImage Identifier Response 
- This is the gallery image definition identifier.
- location string
- Resource location
- name string
- Resource name
- osState string
- This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.
- osType string
- This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: Windows Linux
- provisioningState string
- The provisioning state, which only appears in the response.
- type string
- Resource type
- architecture string
- The architecture of the image. Applicable to OS disks only.
- description string
- The description of this gallery image definition resource. This property is updatable.
- disallowed
DisallowedResponse 
- Describes the disallowed disk types.
- endOf stringLife Date 
- The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.
- eula string
- The Eula agreement for the gallery image definition.
- features
GalleryImage Feature Response[] 
- A list of gallery image features.
- hyperVGeneration string
- The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- privacyStatement stringUri 
- The privacy statement uri.
- purchasePlan ImagePurchase Plan Response 
- Describes the gallery image definition purchase plan. This is used by marketplace images.
- recommended
RecommendedMachine Configuration Response 
- The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
- releaseNote stringUri 
- The release note uri.
- {[key: string]: string}
- Resource tags
- id str
- Resource Id
- identifier
GalleryImage Identifier Response 
- This is the gallery image definition identifier.
- location str
- Resource location
- name str
- Resource name
- os_state str
- This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.
- os_type str
- This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: Windows Linux
- provisioning_state str
- The provisioning state, which only appears in the response.
- type str
- Resource type
- architecture str
- The architecture of the image. Applicable to OS disks only.
- description str
- The description of this gallery image definition resource. This property is updatable.
- disallowed
DisallowedResponse 
- Describes the disallowed disk types.
- end_of_ strlife_ date 
- The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.
- eula str
- The Eula agreement for the gallery image definition.
- features
Sequence[GalleryImage Feature Response] 
- A list of gallery image features.
- hyper_v_ strgeneration 
- The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- privacy_statement_ struri 
- The privacy statement uri.
- purchase_plan ImagePurchase Plan Response 
- Describes the gallery image definition purchase plan. This is used by marketplace images.
- recommended
RecommendedMachine Configuration Response 
- The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
- release_note_ struri 
- The release note uri.
- Mapping[str, str]
- Resource tags
- id String
- Resource Id
- identifier Property Map
- This is the gallery image definition identifier.
- location String
- Resource location
- name String
- Resource name
- osState String
- This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.
- osType String
- This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: Windows Linux
- provisioningState String
- The provisioning state, which only appears in the response.
- type String
- Resource type
- architecture String
- The architecture of the image. Applicable to OS disks only.
- description String
- The description of this gallery image definition resource. This property is updatable.
- disallowed Property Map
- Describes the disallowed disk types.
- endOf StringLife Date 
- The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.
- eula String
- The Eula agreement for the gallery image definition.
- features List<Property Map>
- A list of gallery image features.
- hyperVGeneration String
- The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- privacyStatement StringUri 
- The privacy statement uri.
- purchasePlan Property Map
- Describes the gallery image definition purchase plan. This is used by marketplace images.
- recommended Property Map
- The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
- releaseNote StringUri 
- The release note uri.
- Map<String>
- Resource tags
Supporting Types
DisallowedResponse 
- DiskTypes List<string>
- A list of disk types.
- DiskTypes []string
- A list of disk types.
- diskTypes List<String>
- A list of disk types.
- diskTypes string[]
- A list of disk types.
- disk_types Sequence[str]
- A list of disk types.
- diskTypes List<String>
- A list of disk types.
GalleryImageFeatureResponse   
GalleryImageIdentifierResponse   
ImagePurchasePlanResponse   
RecommendedMachineConfigurationResponse   
- Memory
Pulumi.Azure Native. Compute. Inputs. Resource Range Response 
- Describes the resource range.
- VCPUs
Pulumi.Azure Native. Compute. Inputs. Resource Range Response 
- Describes the resource range.
- Memory
ResourceRange Response 
- Describes the resource range.
- VCPUs
ResourceRange Response 
- Describes the resource range.
- memory
ResourceRange Response 
- Describes the resource range.
- vCPUs ResourceRange Response 
- Describes the resource range.
- memory
ResourceRange Response 
- Describes the resource range.
- vCPUs ResourceRange Response 
- Describes the resource range.
- memory
ResourceRange Response 
- Describes the resource range.
- v_cpus ResourceRange Response 
- Describes the resource range.
- memory Property Map
- Describes the resource range.
- vCPUs Property Map
- Describes the resource range.
ResourceRangeResponse  
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi