azure-native.devtestlab.getCustomImage
Get custom image. 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:devtestlab:getCustomImage
arguments:
# arguments dictionary
The following arguments are supported:
- Lab
Name string The name of the lab.
- Name string
The name of the custom image.
- Resource
Group stringName The name of the resource group.
- Expand string
Specify the $expand query. Example: 'properties($select=vm)'
- Lab
Name string The name of the lab.
- Name string
The name of the custom image.
- Resource
Group stringName The name of the resource group.
- Expand string
Specify the $expand query. Example: 'properties($select=vm)'
- lab
Name String The name of the lab.
- name String
The name of the custom image.
- resource
Group StringName The name of the resource group.
- expand String
Specify the $expand query. Example: 'properties($select=vm)'
- lab
Name string The name of the lab.
- name string
The name of the custom image.
- resource
Group 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)'
- lab
Name String The name of the lab.
- name String
The name of the custom image.
- resource
Group 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:
- Creation
Date string The creation date of the custom image.
- Id string
The identifier of the resource.
- Name string
The name of the resource.
- Provisioning
State string The provisioning status of the resource.
- Type string
The type of the resource.
- Unique
Identifier string The unique immutable identifier of a resource (Guid).
- string
The author of the custom image.
- Custom
Image Pulumi.Plan Azure Native. Dev Test Lab. Outputs. Custom Image Properties From Plan Response Storage information about the plan related to this custom image
- Data
Disk 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.
- Managed
Image stringId The Managed Image Id backing the custom image.
- Managed
Snapshot 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.
- Creation
Date string The creation date of the custom image.
- Id string
The identifier of the resource.
- Name string
The name of the resource.
- Provisioning
State string The provisioning status of the resource.
- Type string
The type of the resource.
- Unique
Identifier string The unique immutable identifier of a resource (Guid).
- string
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 []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.
- Managed
Image stringId The Managed Image Id backing the custom image.
- Managed
Snapshot stringId The Managed Snapshot Id backing the custom image.
- map[string]string
The tags of the resource.
- Vhd
Custom
Image Properties Custom Response The VHD from which the image is to be created.
- Vm
Custom
Image Properties From Vm Response The virtual machine from which the image is to be created.
- creation
Date String The creation date of the custom image.
- id String
The identifier of the resource.
- name String
The name of the resource.
- provisioning
State String The provisioning status of the resource.
- type String
The type of the resource.
- unique
Identifier String The unique immutable identifier of a resource (Guid).
- String
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 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.
- managed
Image StringId The Managed Image Id backing the custom image.
- managed
Snapshot StringId The Managed Snapshot Id backing the custom image.
- Map<String,String>
The tags of the resource.
- vhd
Custom
Image Properties Custom Response The VHD from which the image is to be created.
- vm
Custom
Image Properties From Vm Response The virtual machine from which the image is to be created.
- creation
Date string The creation date of the custom image.
- id string
The identifier of the resource.
- name string
The name of the resource.
- provisioning
State string The provisioning status of the resource.
- type string
The type of the resource.
- unique
Identifier string The unique immutable identifier of a resource (Guid).
- string
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 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.
- managed
Image stringId The Managed Image Id backing the custom image.
- managed
Snapshot stringId The Managed Snapshot Id backing the custom image.
- {[key: string]: string}
The tags of the resource.
- vhd
Custom
Image Properties Custom Response The VHD from which the image is to be created.
- vm
Custom
Image 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
Custom
Image Properties Custom Response The VHD from which the image is to be created.
- vm
Custom
Image Properties From Vm Response The virtual machine from which the image is to be created.
- creation
Date String The creation date of the custom image.
- id String
The identifier of the resource.
- name String
The name of the resource.
- provisioning
State String The provisioning status of the resource.
- type String
The type of the resource.
- unique
Identifier String The unique immutable identifier of a resource (Guid).
- String
The author of the custom image.
- custom
Image Property MapPlan Storage information about the plan related to this custom image
- data
Disk 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.
- managed
Image StringId The Managed Image Id backing the custom image.
- managed
Snapshot 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
- Linux
Os Pulumi.Info Azure Native. Dev Test Lab. Inputs. Linux Os Info Response The Linux OS information of the VM.
- Source
Vm stringId The source vm identifier.
- Windows
Os Pulumi.Info Azure Native. Dev Test Lab. Inputs. Windows 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 stringId The source vm identifier.
- Windows
Os 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 StringId The source vm identifier.
- windows
Os 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 stringId The source vm identifier.
- windows
Os 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.
- linux
Os Property MapInfo The Linux OS information of the VM.
- source
Vm StringId The source vm identifier.
- windows
Os Property MapInfo The Windows OS information of the VM.
DataDiskStorageTypeInfoResponse
- Lun string
Disk Lun
- Storage
Type string Disk Storage Type
- Lun string
Disk Lun
- Storage
Type string Disk Storage Type
- lun String
Disk Lun
- storage
Type String Disk Storage Type
- lun string
Disk Lun
- storage
Type string Disk Storage Type
- lun str
Disk Lun
- storage_
type str Disk Storage Type
- lun String
Disk Lun
- storage
Type String Disk Storage Type
LinuxOsInfoResponse
- Linux
Os stringState The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied).
- Linux
Os stringState The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied).
- linux
Os StringState The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied).
- linux
Os 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).
- linux
Os StringState The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied).
WindowsOsInfoResponse
- Windows
Os stringState The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied).
- Windows
Os stringState The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied).
- windows
Os StringState The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied).
- windows
Os 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).
- windows
Os 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