Shared Image Args
data class SharedImageArgs(val acceleratedNetworkSupportEnabled: Output<Boolean>? = null, val architecture: Output<String>? = null, val confidentialVmEnabled: Output<Boolean>? = null, val confidentialVmSupported: Output<Boolean>? = null, val description: Output<String>? = null, val diskTypesNotAlloweds: Output<List<String>>? = null, val endOfLifeDate: Output<String>? = null, val eula: Output<String>? = null, val galleryName: Output<String>? = null, val hyperVGeneration: Output<String>? = null, val identifier: Output<SharedImageIdentifierArgs>? = null, val location: Output<String>? = null, val maxRecommendedMemoryInGb: Output<Int>? = null, val maxRecommendedVcpuCount: Output<Int>? = null, val minRecommendedMemoryInGb: Output<Int>? = null, val minRecommendedVcpuCount: Output<Int>? = null, val name: Output<String>? = null, val osType: Output<String>? = null, val privacyStatementUri: Output<String>? = null, val purchasePlan: Output<SharedImagePurchasePlanArgs>? = null, val releaseNoteUri: Output<String>? = null, val resourceGroupName: Output<String>? = null, val specialized: Output<Boolean>? = null, val tags: Output<Map<String, String>>? = null, val trustedLaunchEnabled: Output<Boolean>? = null) : ConvertibleToJava<SharedImageArgs>
Manages a Shared Image within a Shared Image Gallery.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.compute.SharedImageGallery;
import com.pulumi.azure.compute.SharedImageGalleryArgs;
import com.pulumi.azure.compute.SharedImage;
import com.pulumi.azure.compute.SharedImageArgs;
import com.pulumi.azure.compute.inputs.SharedImageIdentifierArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleSharedImageGallery = new SharedImageGallery("exampleSharedImageGallery", SharedImageGalleryArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.description("Shared images and things.")
.tags(Map.ofEntries(
Map.entry("Hello", "There"),
Map.entry("World", "Example")
))
.build());
var exampleSharedImage = new SharedImage("exampleSharedImage", SharedImageArgs.builder()
.galleryName(exampleSharedImageGallery.name())
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.osType("Linux")
.identifier(SharedImageIdentifierArgs.builder()
.publisher("PublisherName")
.offer("OfferName")
.sku("ExampleSku")
.build())
.build());
}
}
Content copied to clipboard
Import
Shared Images can be imported using the resource id
, e.g.
$ pulumi import azure:compute/sharedImage:SharedImage image1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Compute/galleries/gallery1/images/image1
Content copied to clipboard
Constructors
Link copied to clipboard
fun SharedImageArgs(acceleratedNetworkSupportEnabled: Output<Boolean>? = null, architecture: Output<String>? = null, confidentialVmEnabled: Output<Boolean>? = null, confidentialVmSupported: Output<Boolean>? = null, description: Output<String>? = null, diskTypesNotAlloweds: Output<List<String>>? = null, endOfLifeDate: Output<String>? = null, eula: Output<String>? = null, galleryName: Output<String>? = null, hyperVGeneration: Output<String>? = null, identifier: Output<SharedImageIdentifierArgs>? = null, location: Output<String>? = null, maxRecommendedMemoryInGb: Output<Int>? = null, maxRecommendedVcpuCount: Output<Int>? = null, minRecommendedMemoryInGb: Output<Int>? = null, minRecommendedVcpuCount: Output<Int>? = null, name: Output<String>? = null, osType: Output<String>? = null, privacyStatementUri: Output<String>? = null, purchasePlan: Output<SharedImagePurchasePlanArgs>? = null, releaseNoteUri: Output<String>? = null, resourceGroupName: Output<String>? = null, specialized: Output<Boolean>? = null, tags: Output<Map<String, String>>? = null, trustedLaunchEnabled: Output<Boolean>? = null)
Functions
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Specifies that the Operating System used inside this Image has not been Generalized (for example, sysprep
on Windows has not been run). Changing this forces a new resource to be created. !>Note: It's recommended to Generalize images where possible - Specialized Images reuse the same UUID internally within each Virtual Machine, which can have unintended side-effects.