getImage

suspend fun getImage(argument: GetImagePlainArgs): GetImageResult

Gets an image. Uses Azure REST API version 2024-11-01. Other available API versions: 2022-08-01, 2022-11-01, 2023-03-01, 2023-07-01, 2023-09-01, 2024-03-01, 2024-07-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native compute [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Return

The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist.

Parameters

argument

null


suspend fun getImage(expand: String? = null, imageName: String, resourceGroupName: String): GetImageResult

Return

The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist.

Parameters

expand

The expand expression to apply on the operation.

imageName

The name of the image.

resourceGroupName

The name of the resource group.

See also


suspend fun getImage(argument: suspend GetImagePlainArgsBuilder.() -> Unit): GetImageResult

Return

The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist.

Parameters

argument

Builder for com.pulumi.azurenative.compute.kotlin.inputs.GetImagePlainArgs.

See also