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.devtestlab.getCustomImage
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
Get custom image. Azure REST API version: 2018-09-15.
Using getCustomImage
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 getCustomImage(args: GetCustomImageArgs, opts?: InvokeOptions): Promise<GetCustomImageResult>
function getCustomImageOutput(args: GetCustomImageOutputArgs, opts?: InvokeOptions): Output<GetCustomImageResult>def get_custom_image(expand: Optional[str] = None,
                     lab_name: Optional[str] = None,
                     name: Optional[str] = None,
                     resource_group_name: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetCustomImageResult
def get_custom_image_output(expand: Optional[pulumi.Input[str]] = None,
                     lab_name: Optional[pulumi.Input[str]] = None,
                     name: Optional[pulumi.Input[str]] = None,
                     resource_group_name: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetCustomImageResult]func LookupCustomImage(ctx *Context, args *LookupCustomImageArgs, opts ...InvokeOption) (*LookupCustomImageResult, error)
func LookupCustomImageOutput(ctx *Context, args *LookupCustomImageOutputArgs, opts ...InvokeOption) LookupCustomImageResultOutput> Note: This function is named LookupCustomImage in the Go SDK.
public static class GetCustomImage 
{
    public static Task<GetCustomImageResult> InvokeAsync(GetCustomImageArgs args, InvokeOptions? opts = null)
    public static Output<GetCustomImageResult> Invoke(GetCustomImageInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCustomImageResult> getCustomImage(GetCustomImageArgs args, InvokeOptions options)
public static Output<GetCustomImageResult> getCustomImage(GetCustomImageArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:devtestlab:getCustomImage
  arguments:
    # arguments dictionaryThe following arguments are supported:
- LabName string
- The name of the lab.
- Name string
- The name of the custom image.
- ResourceGroup stringName 
- The name of the resource group.
- Expand string
- Specify the $expand query. Example: 'properties($select=vm)'
- LabName string
- The name of the lab.
- Name string
- The name of the custom image.
- ResourceGroup stringName 
- The name of the resource group.
- Expand string
- Specify the $expand query. Example: 'properties($select=vm)'
- labName String
- The name of the lab.
- name String
- The name of the custom image.
- resourceGroup StringName 
- The name of the resource group.
- expand String
- Specify the $expand query. Example: 'properties($select=vm)'
- labName string
- The name of the lab.
- name string
- The name of the custom image.
- resourceGroup stringName 
- The name of the resource group.
- expand string
- Specify the $expand query. Example: 'properties($select=vm)'
- lab_name str
- The name of the lab.
- name str
- The name of the custom image.
- resource_group_ strname 
- The name of the resource group.
- expand str
- Specify the $expand query. Example: 'properties($select=vm)'
- labName String
- The name of the lab.
- name String
- The name of the custom image.
- resourceGroup StringName 
- The name of the resource group.
- expand String
- Specify the $expand query. Example: 'properties($select=vm)'
getCustomImage Result
The following output properties are available:
- CreationDate string
- The creation date of the custom image.
- Id string
- The identifier of the resource.
- Name string
- The name of the resource.
- ProvisioningState string
- The provisioning status of the resource.
- Type string
- The type of the resource.
- UniqueIdentifier string
- The unique immutable identifier of a resource (Guid).
- string
- The author of the custom image.
- CustomImage Pulumi.Plan Azure Native. Dev Test Lab. Outputs. Custom Image Properties From Plan Response 
- Storage information about the plan related to this custom image
- DataDisk List<Pulumi.Storage Info Azure Native. Dev Test Lab. Outputs. Data Disk Storage Type Info Response> 
- Storage information about the data disks present in the custom image
- Description string
- The description of the custom image.
- bool
- Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment
- Location string
- The location of the resource.
- ManagedImage stringId 
- The Managed Image Id backing the custom image.
- ManagedSnapshot stringId 
- The Managed Snapshot Id backing the custom image.
- Dictionary<string, string>
- The tags of the resource.
- Vhd
Pulumi.Azure Native. Dev Test Lab. Outputs. Custom Image Properties Custom Response 
- The VHD from which the image is to be created.
- Vm
Pulumi.Azure Native. Dev Test Lab. Outputs. Custom Image Properties From Vm Response 
- The virtual machine from which the image is to be created.
- CreationDate string
- The creation date of the custom image.
- Id string
- The identifier of the resource.
- Name string
- The name of the resource.
- ProvisioningState string
- The provisioning status of the resource.
- Type string
- The type of the resource.
- UniqueIdentifier string
- The unique immutable identifier of a resource (Guid).
- string
- The author of the custom image.
- CustomImage CustomPlan Image Properties From Plan Response 
- Storage information about the plan related to this custom image
- DataDisk []DataStorage Info Disk Storage Type Info Response 
- Storage information about the data disks present in the custom image
- Description string
- The description of the custom image.
- bool
- Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment
- Location string
- The location of the resource.
- ManagedImage stringId 
- The Managed Image Id backing the custom image.
- ManagedSnapshot stringId 
- The Managed Snapshot Id backing the custom image.
- map[string]string
- The tags of the resource.
- Vhd
CustomImage Properties Custom Response 
- The VHD from which the image is to be created.
- Vm
CustomImage Properties From Vm Response 
- The virtual machine from which the image is to be created.
- creationDate String
- The creation date of the custom image.
- id String
- The identifier of the resource.
- name String
- The name of the resource.
- provisioningState String
- The provisioning status of the resource.
- type String
- The type of the resource.
- uniqueIdentifier String
- The unique immutable identifier of a resource (Guid).
- String
- The author of the custom image.
- customImage CustomPlan Image Properties From Plan Response 
- Storage information about the plan related to this custom image
- dataDisk List<DataStorage Info Disk Storage Type Info Response> 
- Storage information about the data disks present in the custom image
- description String
- The description of the custom image.
- Boolean
- Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment
- location String
- The location of the resource.
- managedImage StringId 
- The Managed Image Id backing the custom image.
- managedSnapshot StringId 
- The Managed Snapshot Id backing the custom image.
- Map<String,String>
- The tags of the resource.
- vhd
CustomImage Properties Custom Response 
- The VHD from which the image is to be created.
- vm
CustomImage Properties From Vm Response 
- The virtual machine from which the image is to be created.
- creationDate string
- The creation date of the custom image.
- id string
- The identifier of the resource.
- name string
- The name of the resource.
- provisioningState string
- The provisioning status of the resource.
- type string
- The type of the resource.
- uniqueIdentifier string
- The unique immutable identifier of a resource (Guid).
- string
- The author of the custom image.
- customImage CustomPlan Image Properties From Plan Response 
- Storage information about the plan related to this custom image
- dataDisk DataStorage Info Disk Storage Type Info Response[] 
- Storage information about the data disks present in the custom image
- description string
- The description of the custom image.
- boolean
- Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment
- location string
- The location of the resource.
- managedImage stringId 
- The Managed Image Id backing the custom image.
- managedSnapshot stringId 
- The Managed Snapshot Id backing the custom image.
- {[key: string]: string}
- The tags of the resource.
- vhd
CustomImage Properties Custom Response 
- The VHD from which the image is to be created.
- vm
CustomImage Properties From Vm Response 
- The virtual machine from which the image is to be created.
- creation_date str
- The creation date of the custom image.
- id str
- The identifier of the resource.
- name str
- The name of the resource.
- provisioning_state str
- The provisioning status of the resource.
- type str
- The type of the resource.
- unique_identifier str
- The unique immutable identifier of a resource (Guid).
- str
- The author of the custom image.
- custom_image_ Customplan Image Properties From Plan Response 
- Storage information about the plan related to this custom image
- data_disk_ Sequence[Datastorage_ info Disk Storage Type Info Response] 
- Storage information about the data disks present in the custom image
- description str
- The description of the custom image.
- bool
- Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment
- location str
- The location of the resource.
- managed_image_ strid 
- The Managed Image Id backing the custom image.
- managed_snapshot_ strid 
- The Managed Snapshot Id backing the custom image.
- Mapping[str, str]
- The tags of the resource.
- vhd
CustomImage Properties Custom Response 
- The VHD from which the image is to be created.
- vm
CustomImage Properties From Vm Response 
- The virtual machine from which the image is to be created.
- creationDate String
- The creation date of the custom image.
- id String
- The identifier of the resource.
- name String
- The name of the resource.
- provisioningState String
- The provisioning status of the resource.
- type String
- The type of the resource.
- uniqueIdentifier String
- The unique immutable identifier of a resource (Guid).
- String
- The author of the custom image.
- customImage Property MapPlan 
- Storage information about the plan related to this custom image
- dataDisk List<Property Map>Storage Info 
- Storage information about the data disks present in the custom image
- description String
- The description of the custom image.
- Boolean
- Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment
- location String
- The location of the resource.
- managedImage StringId 
- The Managed Image Id backing the custom image.
- managedSnapshot StringId 
- The Managed Snapshot Id backing the custom image.
- Map<String>
- The tags of the resource.
- vhd Property Map
- The VHD from which the image is to be created.
- vm Property Map
- The virtual machine from which the image is to be created.
Supporting Types
CustomImagePropertiesCustomResponse    
- os_type str
- The OS type of the custom image (i.e. Windows, Linux)
- image_name str
- The image name.
- sys_prep bool
- Indicates whether sysprep has been run on the VHD.
CustomImagePropertiesFromPlanResponse     
CustomImagePropertiesFromVmResponse     
- LinuxOs Pulumi.Info Azure Native. Dev Test Lab. Inputs. Linux Os Info Response 
- The Linux OS information of the VM.
- SourceVm stringId 
- The source vm identifier.
- WindowsOs Pulumi.Info Azure Native. Dev Test Lab. Inputs. Windows Os Info Response 
- The Windows OS information of the VM.
- LinuxOs LinuxInfo Os Info Response 
- The Linux OS information of the VM.
- SourceVm stringId 
- The source vm identifier.
- WindowsOs WindowsInfo Os Info Response 
- The Windows OS information of the VM.
- linuxOs LinuxInfo Os Info Response 
- The Linux OS information of the VM.
- sourceVm StringId 
- The source vm identifier.
- windowsOs WindowsInfo Os Info Response 
- The Windows OS information of the VM.
- linuxOs LinuxInfo Os Info Response 
- The Linux OS information of the VM.
- sourceVm stringId 
- The source vm identifier.
- windowsOs WindowsInfo Os Info Response 
- The Windows OS information of the VM.
- linux_os_ Linuxinfo Os Info Response 
- The Linux OS information of the VM.
- source_vm_ strid 
- The source vm identifier.
- windows_os_ Windowsinfo Os Info Response 
- The Windows OS information of the VM.
- linuxOs Property MapInfo 
- The Linux OS information of the VM.
- sourceVm StringId 
- The source vm identifier.
- windowsOs Property MapInfo 
- The Windows OS information of the VM.
DataDiskStorageTypeInfoResponse     
- Lun string
- Disk Lun
- StorageType string
- Disk Storage Type
- Lun string
- Disk Lun
- StorageType string
- Disk Storage Type
- lun String
- Disk Lun
- storageType String
- Disk Storage Type
- lun string
- Disk Lun
- storageType string
- Disk Storage Type
- lun str
- Disk Lun
- storage_type str
- Disk Storage Type
- lun String
- Disk Lun
- storageType String
- Disk Storage Type
LinuxOsInfoResponse   
- LinuxOs stringState 
- The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied).
- LinuxOs stringState 
- The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied).
- linuxOs StringState 
- The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied).
- linuxOs stringState 
- The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied).
- linux_os_ strstate 
- The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied).
- linuxOs StringState 
- The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied).
WindowsOsInfoResponse   
- WindowsOs stringState 
- The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied).
- WindowsOs stringState 
- The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied).
- windowsOs StringState 
- The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied).
- windowsOs stringState 
- The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied).
- windows_os_ strstate 
- The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied).
- windowsOs StringState 
- The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied).
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