We recommend using Azure Native.
azure.compute.SharedImageVersion
Explore with Pulumi AI
Manages a Version of a Shared Image within a Shared Image Gallery.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const existing = azure.compute.getImage({
    name: "search-api",
    resourceGroupName: "packerimages",
});
const existingGetSharedImage = azure.compute.getSharedImage({
    name: "existing-image",
    galleryName: "existing_gallery",
    resourceGroupName: "existing-resources",
});
const example = new azure.compute.SharedImageVersion("example", {
    name: "0.0.1",
    galleryName: existingGetSharedImage.then(existingGetSharedImage => existingGetSharedImage.galleryName),
    imageName: existingGetSharedImage.then(existingGetSharedImage => existingGetSharedImage.name),
    resourceGroupName: existingGetSharedImage.then(existingGetSharedImage => existingGetSharedImage.resourceGroupName),
    location: existingGetSharedImage.then(existingGetSharedImage => existingGetSharedImage.location),
    managedImageId: existing.then(existing => existing.id),
    targetRegions: [{
        name: existingGetSharedImage.then(existingGetSharedImage => existingGetSharedImage.location),
        regionalReplicaCount: 5,
        storageAccountType: "Standard_LRS",
    }],
});
import pulumi
import pulumi_azure as azure
existing = azure.compute.get_image(name="search-api",
    resource_group_name="packerimages")
existing_get_shared_image = azure.compute.get_shared_image(name="existing-image",
    gallery_name="existing_gallery",
    resource_group_name="existing-resources")
example = azure.compute.SharedImageVersion("example",
    name="0.0.1",
    gallery_name=existing_get_shared_image.gallery_name,
    image_name=existing_get_shared_image.name,
    resource_group_name=existing_get_shared_image.resource_group_name,
    location=existing_get_shared_image.location,
    managed_image_id=existing.id,
    target_regions=[{
        "name": existing_get_shared_image.location,
        "regional_replica_count": 5,
        "storage_account_type": "Standard_LRS",
    }])
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/compute"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		existing, err := compute.LookupImage(ctx, &compute.LookupImageArgs{
			Name:              pulumi.StringRef("search-api"),
			ResourceGroupName: "packerimages",
		}, nil)
		if err != nil {
			return err
		}
		existingGetSharedImage, err := compute.LookupSharedImage(ctx, &compute.LookupSharedImageArgs{
			Name:              "existing-image",
			GalleryName:       "existing_gallery",
			ResourceGroupName: "existing-resources",
		}, nil)
		if err != nil {
			return err
		}
		_, err = compute.NewSharedImageVersion(ctx, "example", &compute.SharedImageVersionArgs{
			Name:              pulumi.String("0.0.1"),
			GalleryName:       pulumi.String(existingGetSharedImage.GalleryName),
			ImageName:         pulumi.String(existingGetSharedImage.Name),
			ResourceGroupName: pulumi.String(existingGetSharedImage.ResourceGroupName),
			Location:          pulumi.String(existingGetSharedImage.Location),
			ManagedImageId:    pulumi.String(existing.Id),
			TargetRegions: compute.SharedImageVersionTargetRegionArray{
				&compute.SharedImageVersionTargetRegionArgs{
					Name:                 pulumi.String(existingGetSharedImage.Location),
					RegionalReplicaCount: pulumi.Int(5),
					StorageAccountType:   pulumi.String("Standard_LRS"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var existing = Azure.Compute.GetImage.Invoke(new()
    {
        Name = "search-api",
        ResourceGroupName = "packerimages",
    });
    var existingGetSharedImage = Azure.Compute.GetSharedImage.Invoke(new()
    {
        Name = "existing-image",
        GalleryName = "existing_gallery",
        ResourceGroupName = "existing-resources",
    });
    var example = new Azure.Compute.SharedImageVersion("example", new()
    {
        Name = "0.0.1",
        GalleryName = existingGetSharedImage.Apply(getSharedImageResult => getSharedImageResult.GalleryName),
        ImageName = existingGetSharedImage.Apply(getSharedImageResult => getSharedImageResult.Name),
        ResourceGroupName = existingGetSharedImage.Apply(getSharedImageResult => getSharedImageResult.ResourceGroupName),
        Location = existingGetSharedImage.Apply(getSharedImageResult => getSharedImageResult.Location),
        ManagedImageId = existing.Apply(getImageResult => getImageResult.Id),
        TargetRegions = new[]
        {
            new Azure.Compute.Inputs.SharedImageVersionTargetRegionArgs
            {
                Name = existingGetSharedImage.Apply(getSharedImageResult => getSharedImageResult.Location),
                RegionalReplicaCount = 5,
                StorageAccountType = "Standard_LRS",
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.compute.ComputeFunctions;
import com.pulumi.azure.compute.inputs.GetImageArgs;
import com.pulumi.azure.compute.inputs.GetSharedImageArgs;
import com.pulumi.azure.compute.SharedImageVersion;
import com.pulumi.azure.compute.SharedImageVersionArgs;
import com.pulumi.azure.compute.inputs.SharedImageVersionTargetRegionArgs;
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) {
        final var existing = ComputeFunctions.getImage(GetImageArgs.builder()
            .name("search-api")
            .resourceGroupName("packerimages")
            .build());
        final var existingGetSharedImage = ComputeFunctions.getSharedImage(GetSharedImageArgs.builder()
            .name("existing-image")
            .galleryName("existing_gallery")
            .resourceGroupName("existing-resources")
            .build());
        var example = new SharedImageVersion("example", SharedImageVersionArgs.builder()
            .name("0.0.1")
            .galleryName(existingGetSharedImage.applyValue(getSharedImageResult -> getSharedImageResult.galleryName()))
            .imageName(existingGetSharedImage.applyValue(getSharedImageResult -> getSharedImageResult.name()))
            .resourceGroupName(existingGetSharedImage.applyValue(getSharedImageResult -> getSharedImageResult.resourceGroupName()))
            .location(existingGetSharedImage.applyValue(getSharedImageResult -> getSharedImageResult.location()))
            .managedImageId(existing.applyValue(getImageResult -> getImageResult.id()))
            .targetRegions(SharedImageVersionTargetRegionArgs.builder()
                .name(existingGetSharedImage.applyValue(getSharedImageResult -> getSharedImageResult.location()))
                .regionalReplicaCount(5)
                .storageAccountType("Standard_LRS")
                .build())
            .build());
    }
}
resources:
  example:
    type: azure:compute:SharedImageVersion
    properties:
      name: 0.0.1
      galleryName: ${existingGetSharedImage.galleryName}
      imageName: ${existingGetSharedImage.name}
      resourceGroupName: ${existingGetSharedImage.resourceGroupName}
      location: ${existingGetSharedImage.location}
      managedImageId: ${existing.id}
      targetRegions:
        - name: ${existingGetSharedImage.location}
          regionalReplicaCount: 5
          storageAccountType: Standard_LRS
variables:
  existing:
    fn::invoke:
      function: azure:compute:getImage
      arguments:
        name: search-api
        resourceGroupName: packerimages
  existingGetSharedImage:
    fn::invoke:
      function: azure:compute:getSharedImage
      arguments:
        name: existing-image
        galleryName: existing_gallery
        resourceGroupName: existing-resources
Create SharedImageVersion Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SharedImageVersion(name: string, args: SharedImageVersionArgs, opts?: CustomResourceOptions);@overload
def SharedImageVersion(resource_name: str,
                       args: SharedImageVersionArgs,
                       opts: Optional[ResourceOptions] = None)
@overload
def SharedImageVersion(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       gallery_name: Optional[str] = None,
                       target_regions: Optional[Sequence[SharedImageVersionTargetRegionArgs]] = None,
                       resource_group_name: Optional[str] = None,
                       image_name: Optional[str] = None,
                       location: Optional[str] = None,
                       exclude_from_latest: Optional[bool] = None,
                       blob_uri: Optional[str] = None,
                       managed_image_id: Optional[str] = None,
                       name: Optional[str] = None,
                       os_disk_snapshot_id: Optional[str] = None,
                       replication_mode: Optional[str] = None,
                       end_of_life_date: Optional[str] = None,
                       storage_account_id: Optional[str] = None,
                       tags: Optional[Mapping[str, str]] = None,
                       deletion_of_replicated_locations_enabled: Optional[bool] = None)func NewSharedImageVersion(ctx *Context, name string, args SharedImageVersionArgs, opts ...ResourceOption) (*SharedImageVersion, error)public SharedImageVersion(string name, SharedImageVersionArgs args, CustomResourceOptions? opts = null)
public SharedImageVersion(String name, SharedImageVersionArgs args)
public SharedImageVersion(String name, SharedImageVersionArgs args, CustomResourceOptions options)
type: azure:compute:SharedImageVersion
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SharedImageVersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SharedImageVersionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SharedImageVersionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SharedImageVersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SharedImageVersionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var sharedImageVersionResource = new Azure.Compute.SharedImageVersion("sharedImageVersionResource", new()
{
    GalleryName = "string",
    TargetRegions = new[]
    {
        new Azure.Compute.Inputs.SharedImageVersionTargetRegionArgs
        {
            Name = "string",
            RegionalReplicaCount = 0,
            DiskEncryptionSetId = "string",
            ExcludeFromLatestEnabled = false,
            StorageAccountType = "string",
        },
    },
    ResourceGroupName = "string",
    ImageName = "string",
    Location = "string",
    ExcludeFromLatest = false,
    BlobUri = "string",
    ManagedImageId = "string",
    Name = "string",
    OsDiskSnapshotId = "string",
    ReplicationMode = "string",
    EndOfLifeDate = "string",
    StorageAccountId = "string",
    Tags = 
    {
        { "string", "string" },
    },
    DeletionOfReplicatedLocationsEnabled = false,
});
example, err := compute.NewSharedImageVersion(ctx, "sharedImageVersionResource", &compute.SharedImageVersionArgs{
	GalleryName: pulumi.String("string"),
	TargetRegions: compute.SharedImageVersionTargetRegionArray{
		&compute.SharedImageVersionTargetRegionArgs{
			Name:                     pulumi.String("string"),
			RegionalReplicaCount:     pulumi.Int(0),
			DiskEncryptionSetId:      pulumi.String("string"),
			ExcludeFromLatestEnabled: pulumi.Bool(false),
			StorageAccountType:       pulumi.String("string"),
		},
	},
	ResourceGroupName: pulumi.String("string"),
	ImageName:         pulumi.String("string"),
	Location:          pulumi.String("string"),
	ExcludeFromLatest: pulumi.Bool(false),
	BlobUri:           pulumi.String("string"),
	ManagedImageId:    pulumi.String("string"),
	Name:              pulumi.String("string"),
	OsDiskSnapshotId:  pulumi.String("string"),
	ReplicationMode:   pulumi.String("string"),
	EndOfLifeDate:     pulumi.String("string"),
	StorageAccountId:  pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	DeletionOfReplicatedLocationsEnabled: pulumi.Bool(false),
})
var sharedImageVersionResource = new SharedImageVersion("sharedImageVersionResource", SharedImageVersionArgs.builder()
    .galleryName("string")
    .targetRegions(SharedImageVersionTargetRegionArgs.builder()
        .name("string")
        .regionalReplicaCount(0)
        .diskEncryptionSetId("string")
        .excludeFromLatestEnabled(false)
        .storageAccountType("string")
        .build())
    .resourceGroupName("string")
    .imageName("string")
    .location("string")
    .excludeFromLatest(false)
    .blobUri("string")
    .managedImageId("string")
    .name("string")
    .osDiskSnapshotId("string")
    .replicationMode("string")
    .endOfLifeDate("string")
    .storageAccountId("string")
    .tags(Map.of("string", "string"))
    .deletionOfReplicatedLocationsEnabled(false)
    .build());
shared_image_version_resource = azure.compute.SharedImageVersion("sharedImageVersionResource",
    gallery_name="string",
    target_regions=[{
        "name": "string",
        "regional_replica_count": 0,
        "disk_encryption_set_id": "string",
        "exclude_from_latest_enabled": False,
        "storage_account_type": "string",
    }],
    resource_group_name="string",
    image_name="string",
    location="string",
    exclude_from_latest=False,
    blob_uri="string",
    managed_image_id="string",
    name="string",
    os_disk_snapshot_id="string",
    replication_mode="string",
    end_of_life_date="string",
    storage_account_id="string",
    tags={
        "string": "string",
    },
    deletion_of_replicated_locations_enabled=False)
const sharedImageVersionResource = new azure.compute.SharedImageVersion("sharedImageVersionResource", {
    galleryName: "string",
    targetRegions: [{
        name: "string",
        regionalReplicaCount: 0,
        diskEncryptionSetId: "string",
        excludeFromLatestEnabled: false,
        storageAccountType: "string",
    }],
    resourceGroupName: "string",
    imageName: "string",
    location: "string",
    excludeFromLatest: false,
    blobUri: "string",
    managedImageId: "string",
    name: "string",
    osDiskSnapshotId: "string",
    replicationMode: "string",
    endOfLifeDate: "string",
    storageAccountId: "string",
    tags: {
        string: "string",
    },
    deletionOfReplicatedLocationsEnabled: false,
});
type: azure:compute:SharedImageVersion
properties:
    blobUri: string
    deletionOfReplicatedLocationsEnabled: false
    endOfLifeDate: string
    excludeFromLatest: false
    galleryName: string
    imageName: string
    location: string
    managedImageId: string
    name: string
    osDiskSnapshotId: string
    replicationMode: string
    resourceGroupName: string
    storageAccountId: string
    tags:
        string: string
    targetRegions:
        - diskEncryptionSetId: string
          excludeFromLatestEnabled: false
          name: string
          regionalReplicaCount: 0
          storageAccountType: string
SharedImageVersion Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SharedImageVersion resource accepts the following input properties:
- GalleryName string
- The name of the Shared Image Gallery in which the Shared Image exists. Changing this forces a new resource to be created.
- ImageName string
- The name of the Shared Image within the Shared Image Gallery in which this Version should be created. Changing this forces a new resource to be created.
- ResourceGroup stringName 
- The name of the Resource Group in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
- TargetRegions List<SharedImage Version Target Region> 
- One or more target_regionblocks as documented below.
- BlobUri string
- URI of the Azure Storage Blob used to create the Image Version. Changing this forces a new resource to be created. - NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.- NOTE: - blob_uriand- storage_account_idmust be specified together
- DeletionOf boolReplicated Locations Enabled 
- Specifies whether this Shared Image Version can be deleted from the Azure Regions this is replicated to. Defaults to false. Changing this forces a new resource to be created.
- EndOf stringLife Date 
- The end of life date in RFC3339 format of the Image Version.
- ExcludeFrom boolLatest 
- Should this Image Version be excluded from the latestfilter? If set totruethis Image Version won't be returned for thelatestversion. Defaults tofalse.
- Location string
- The Azure Region in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
- ManagedImage stringId 
- The ID of the Managed Image or Virtual Machine ID which should be used for this Shared Image Version. Changing this forces a new resource to be created. - NOTE: The ID can be sourced from the - azure.compute.Imagedata source or resource- NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.
- Name string
- The version number for this Image Version, such as 1.0.0. Changing this forces a new resource to be created.
- OsDisk stringSnapshot Id 
- The ID of the OS disk snapshot which should be used for this Shared Image Version. Changing this forces a new resource to be created. - NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.
- ReplicationMode string
- Mode to be used for replication. Possible values are FullandShallow. Defaults toFull. Changing this forces a new resource to be created.
- StorageAccount stringId 
- The ID of the Storage Account where the Blob exists. Changing this forces a new resource to be created. - NOTE: - blob_uriand- storage_account_idmust be specified together
- Dictionary<string, string>
- A collection of tags which should be applied to this resource.
- GalleryName string
- The name of the Shared Image Gallery in which the Shared Image exists. Changing this forces a new resource to be created.
- ImageName string
- The name of the Shared Image within the Shared Image Gallery in which this Version should be created. Changing this forces a new resource to be created.
- ResourceGroup stringName 
- The name of the Resource Group in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
- TargetRegions []SharedImage Version Target Region Args 
- One or more target_regionblocks as documented below.
- BlobUri string
- URI of the Azure Storage Blob used to create the Image Version. Changing this forces a new resource to be created. - NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.- NOTE: - blob_uriand- storage_account_idmust be specified together
- DeletionOf boolReplicated Locations Enabled 
- Specifies whether this Shared Image Version can be deleted from the Azure Regions this is replicated to. Defaults to false. Changing this forces a new resource to be created.
- EndOf stringLife Date 
- The end of life date in RFC3339 format of the Image Version.
- ExcludeFrom boolLatest 
- Should this Image Version be excluded from the latestfilter? If set totruethis Image Version won't be returned for thelatestversion. Defaults tofalse.
- Location string
- The Azure Region in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
- ManagedImage stringId 
- The ID of the Managed Image or Virtual Machine ID which should be used for this Shared Image Version. Changing this forces a new resource to be created. - NOTE: The ID can be sourced from the - azure.compute.Imagedata source or resource- NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.
- Name string
- The version number for this Image Version, such as 1.0.0. Changing this forces a new resource to be created.
- OsDisk stringSnapshot Id 
- The ID of the OS disk snapshot which should be used for this Shared Image Version. Changing this forces a new resource to be created. - NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.
- ReplicationMode string
- Mode to be used for replication. Possible values are FullandShallow. Defaults toFull. Changing this forces a new resource to be created.
- StorageAccount stringId 
- The ID of the Storage Account where the Blob exists. Changing this forces a new resource to be created. - NOTE: - blob_uriand- storage_account_idmust be specified together
- map[string]string
- A collection of tags which should be applied to this resource.
- galleryName String
- The name of the Shared Image Gallery in which the Shared Image exists. Changing this forces a new resource to be created.
- imageName String
- The name of the Shared Image within the Shared Image Gallery in which this Version should be created. Changing this forces a new resource to be created.
- resourceGroup StringName 
- The name of the Resource Group in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
- targetRegions List<SharedImage Version Target Region> 
- One or more target_regionblocks as documented below.
- blobUri String
- URI of the Azure Storage Blob used to create the Image Version. Changing this forces a new resource to be created. - NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.- NOTE: - blob_uriand- storage_account_idmust be specified together
- deletionOf BooleanReplicated Locations Enabled 
- Specifies whether this Shared Image Version can be deleted from the Azure Regions this is replicated to. Defaults to false. Changing this forces a new resource to be created.
- endOf StringLife Date 
- The end of life date in RFC3339 format of the Image Version.
- excludeFrom BooleanLatest 
- Should this Image Version be excluded from the latestfilter? If set totruethis Image Version won't be returned for thelatestversion. Defaults tofalse.
- location String
- The Azure Region in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
- managedImage StringId 
- The ID of the Managed Image or Virtual Machine ID which should be used for this Shared Image Version. Changing this forces a new resource to be created. - NOTE: The ID can be sourced from the - azure.compute.Imagedata source or resource- NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.
- name String
- The version number for this Image Version, such as 1.0.0. Changing this forces a new resource to be created.
- osDisk StringSnapshot Id 
- The ID of the OS disk snapshot which should be used for this Shared Image Version. Changing this forces a new resource to be created. - NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.
- replicationMode String
- Mode to be used for replication. Possible values are FullandShallow. Defaults toFull. Changing this forces a new resource to be created.
- storageAccount StringId 
- The ID of the Storage Account where the Blob exists. Changing this forces a new resource to be created. - NOTE: - blob_uriand- storage_account_idmust be specified together
- Map<String,String>
- A collection of tags which should be applied to this resource.
- galleryName string
- The name of the Shared Image Gallery in which the Shared Image exists. Changing this forces a new resource to be created.
- imageName string
- The name of the Shared Image within the Shared Image Gallery in which this Version should be created. Changing this forces a new resource to be created.
- resourceGroup stringName 
- The name of the Resource Group in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
- targetRegions SharedImage Version Target Region[] 
- One or more target_regionblocks as documented below.
- blobUri string
- URI of the Azure Storage Blob used to create the Image Version. Changing this forces a new resource to be created. - NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.- NOTE: - blob_uriand- storage_account_idmust be specified together
- deletionOf booleanReplicated Locations Enabled 
- Specifies whether this Shared Image Version can be deleted from the Azure Regions this is replicated to. Defaults to false. Changing this forces a new resource to be created.
- endOf stringLife Date 
- The end of life date in RFC3339 format of the Image Version.
- excludeFrom booleanLatest 
- Should this Image Version be excluded from the latestfilter? If set totruethis Image Version won't be returned for thelatestversion. Defaults tofalse.
- location string
- The Azure Region in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
- managedImage stringId 
- The ID of the Managed Image or Virtual Machine ID which should be used for this Shared Image Version. Changing this forces a new resource to be created. - NOTE: The ID can be sourced from the - azure.compute.Imagedata source or resource- NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.
- name string
- The version number for this Image Version, such as 1.0.0. Changing this forces a new resource to be created.
- osDisk stringSnapshot Id 
- The ID of the OS disk snapshot which should be used for this Shared Image Version. Changing this forces a new resource to be created. - NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.
- replicationMode string
- Mode to be used for replication. Possible values are FullandShallow. Defaults toFull. Changing this forces a new resource to be created.
- storageAccount stringId 
- The ID of the Storage Account where the Blob exists. Changing this forces a new resource to be created. - NOTE: - blob_uriand- storage_account_idmust be specified together
- {[key: string]: string}
- A collection of tags which should be applied to this resource.
- gallery_name str
- The name of the Shared Image Gallery in which the Shared Image exists. Changing this forces a new resource to be created.
- image_name str
- The name of the Shared Image within the Shared Image Gallery in which this Version should be created. Changing this forces a new resource to be created.
- resource_group_ strname 
- The name of the Resource Group in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
- target_regions Sequence[SharedImage Version Target Region Args] 
- One or more target_regionblocks as documented below.
- blob_uri str
- URI of the Azure Storage Blob used to create the Image Version. Changing this forces a new resource to be created. - NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.- NOTE: - blob_uriand- storage_account_idmust be specified together
- deletion_of_ boolreplicated_ locations_ enabled 
- Specifies whether this Shared Image Version can be deleted from the Azure Regions this is replicated to. Defaults to false. Changing this forces a new resource to be created.
- end_of_ strlife_ date 
- The end of life date in RFC3339 format of the Image Version.
- exclude_from_ boollatest 
- Should this Image Version be excluded from the latestfilter? If set totruethis Image Version won't be returned for thelatestversion. Defaults tofalse.
- location str
- The Azure Region in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
- managed_image_ strid 
- The ID of the Managed Image or Virtual Machine ID which should be used for this Shared Image Version. Changing this forces a new resource to be created. - NOTE: The ID can be sourced from the - azure.compute.Imagedata source or resource- NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.
- name str
- The version number for this Image Version, such as 1.0.0. Changing this forces a new resource to be created.
- os_disk_ strsnapshot_ id 
- The ID of the OS disk snapshot which should be used for this Shared Image Version. Changing this forces a new resource to be created. - NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.
- replication_mode str
- Mode to be used for replication. Possible values are FullandShallow. Defaults toFull. Changing this forces a new resource to be created.
- storage_account_ strid 
- The ID of the Storage Account where the Blob exists. Changing this forces a new resource to be created. - NOTE: - blob_uriand- storage_account_idmust be specified together
- Mapping[str, str]
- A collection of tags which should be applied to this resource.
- galleryName String
- The name of the Shared Image Gallery in which the Shared Image exists. Changing this forces a new resource to be created.
- imageName String
- The name of the Shared Image within the Shared Image Gallery in which this Version should be created. Changing this forces a new resource to be created.
- resourceGroup StringName 
- The name of the Resource Group in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
- targetRegions List<Property Map>
- One or more target_regionblocks as documented below.
- blobUri String
- URI of the Azure Storage Blob used to create the Image Version. Changing this forces a new resource to be created. - NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.- NOTE: - blob_uriand- storage_account_idmust be specified together
- deletionOf BooleanReplicated Locations Enabled 
- Specifies whether this Shared Image Version can be deleted from the Azure Regions this is replicated to. Defaults to false. Changing this forces a new resource to be created.
- endOf StringLife Date 
- The end of life date in RFC3339 format of the Image Version.
- excludeFrom BooleanLatest 
- Should this Image Version be excluded from the latestfilter? If set totruethis Image Version won't be returned for thelatestversion. Defaults tofalse.
- location String
- The Azure Region in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
- managedImage StringId 
- The ID of the Managed Image or Virtual Machine ID which should be used for this Shared Image Version. Changing this forces a new resource to be created. - NOTE: The ID can be sourced from the - azure.compute.Imagedata source or resource- NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.
- name String
- The version number for this Image Version, such as 1.0.0. Changing this forces a new resource to be created.
- osDisk StringSnapshot Id 
- The ID of the OS disk snapshot which should be used for this Shared Image Version. Changing this forces a new resource to be created. - NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.
- replicationMode String
- Mode to be used for replication. Possible values are FullandShallow. Defaults toFull. Changing this forces a new resource to be created.
- storageAccount StringId 
- The ID of the Storage Account where the Blob exists. Changing this forces a new resource to be created. - NOTE: - blob_uriand- storage_account_idmust be specified together
- Map<String>
- A collection of tags which should be applied to this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the SharedImageVersion resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SharedImageVersion Resource
Get an existing SharedImageVersion resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SharedImageVersionState, opts?: CustomResourceOptions): SharedImageVersion@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        blob_uri: Optional[str] = None,
        deletion_of_replicated_locations_enabled: Optional[bool] = None,
        end_of_life_date: Optional[str] = None,
        exclude_from_latest: Optional[bool] = None,
        gallery_name: Optional[str] = None,
        image_name: Optional[str] = None,
        location: Optional[str] = None,
        managed_image_id: Optional[str] = None,
        name: Optional[str] = None,
        os_disk_snapshot_id: Optional[str] = None,
        replication_mode: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        storage_account_id: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        target_regions: Optional[Sequence[SharedImageVersionTargetRegionArgs]] = None) -> SharedImageVersionfunc GetSharedImageVersion(ctx *Context, name string, id IDInput, state *SharedImageVersionState, opts ...ResourceOption) (*SharedImageVersion, error)public static SharedImageVersion Get(string name, Input<string> id, SharedImageVersionState? state, CustomResourceOptions? opts = null)public static SharedImageVersion get(String name, Output<String> id, SharedImageVersionState state, CustomResourceOptions options)resources:  _:    type: azure:compute:SharedImageVersion    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- BlobUri string
- URI of the Azure Storage Blob used to create the Image Version. Changing this forces a new resource to be created. - NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.- NOTE: - blob_uriand- storage_account_idmust be specified together
- DeletionOf boolReplicated Locations Enabled 
- Specifies whether this Shared Image Version can be deleted from the Azure Regions this is replicated to. Defaults to false. Changing this forces a new resource to be created.
- EndOf stringLife Date 
- The end of life date in RFC3339 format of the Image Version.
- ExcludeFrom boolLatest 
- Should this Image Version be excluded from the latestfilter? If set totruethis Image Version won't be returned for thelatestversion. Defaults tofalse.
- GalleryName string
- The name of the Shared Image Gallery in which the Shared Image exists. Changing this forces a new resource to be created.
- ImageName string
- The name of the Shared Image within the Shared Image Gallery in which this Version should be created. Changing this forces a new resource to be created.
- Location string
- The Azure Region in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
- ManagedImage stringId 
- The ID of the Managed Image or Virtual Machine ID which should be used for this Shared Image Version. Changing this forces a new resource to be created. - NOTE: The ID can be sourced from the - azure.compute.Imagedata source or resource- NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.
- Name string
- The version number for this Image Version, such as 1.0.0. Changing this forces a new resource to be created.
- OsDisk stringSnapshot Id 
- The ID of the OS disk snapshot which should be used for this Shared Image Version. Changing this forces a new resource to be created. - NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.
- ReplicationMode string
- Mode to be used for replication. Possible values are FullandShallow. Defaults toFull. Changing this forces a new resource to be created.
- ResourceGroup stringName 
- The name of the Resource Group in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
- StorageAccount stringId 
- The ID of the Storage Account where the Blob exists. Changing this forces a new resource to be created. - NOTE: - blob_uriand- storage_account_idmust be specified together
- Dictionary<string, string>
- A collection of tags which should be applied to this resource.
- TargetRegions List<SharedImage Version Target Region> 
- One or more target_regionblocks as documented below.
- BlobUri string
- URI of the Azure Storage Blob used to create the Image Version. Changing this forces a new resource to be created. - NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.- NOTE: - blob_uriand- storage_account_idmust be specified together
- DeletionOf boolReplicated Locations Enabled 
- Specifies whether this Shared Image Version can be deleted from the Azure Regions this is replicated to. Defaults to false. Changing this forces a new resource to be created.
- EndOf stringLife Date 
- The end of life date in RFC3339 format of the Image Version.
- ExcludeFrom boolLatest 
- Should this Image Version be excluded from the latestfilter? If set totruethis Image Version won't be returned for thelatestversion. Defaults tofalse.
- GalleryName string
- The name of the Shared Image Gallery in which the Shared Image exists. Changing this forces a new resource to be created.
- ImageName string
- The name of the Shared Image within the Shared Image Gallery in which this Version should be created. Changing this forces a new resource to be created.
- Location string
- The Azure Region in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
- ManagedImage stringId 
- The ID of the Managed Image or Virtual Machine ID which should be used for this Shared Image Version. Changing this forces a new resource to be created. - NOTE: The ID can be sourced from the - azure.compute.Imagedata source or resource- NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.
- Name string
- The version number for this Image Version, such as 1.0.0. Changing this forces a new resource to be created.
- OsDisk stringSnapshot Id 
- The ID of the OS disk snapshot which should be used for this Shared Image Version. Changing this forces a new resource to be created. - NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.
- ReplicationMode string
- Mode to be used for replication. Possible values are FullandShallow. Defaults toFull. Changing this forces a new resource to be created.
- ResourceGroup stringName 
- The name of the Resource Group in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
- StorageAccount stringId 
- The ID of the Storage Account where the Blob exists. Changing this forces a new resource to be created. - NOTE: - blob_uriand- storage_account_idmust be specified together
- map[string]string
- A collection of tags which should be applied to this resource.
- TargetRegions []SharedImage Version Target Region Args 
- One or more target_regionblocks as documented below.
- blobUri String
- URI of the Azure Storage Blob used to create the Image Version. Changing this forces a new resource to be created. - NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.- NOTE: - blob_uriand- storage_account_idmust be specified together
- deletionOf BooleanReplicated Locations Enabled 
- Specifies whether this Shared Image Version can be deleted from the Azure Regions this is replicated to. Defaults to false. Changing this forces a new resource to be created.
- endOf StringLife Date 
- The end of life date in RFC3339 format of the Image Version.
- excludeFrom BooleanLatest 
- Should this Image Version be excluded from the latestfilter? If set totruethis Image Version won't be returned for thelatestversion. Defaults tofalse.
- galleryName String
- The name of the Shared Image Gallery in which the Shared Image exists. Changing this forces a new resource to be created.
- imageName String
- The name of the Shared Image within the Shared Image Gallery in which this Version should be created. Changing this forces a new resource to be created.
- location String
- The Azure Region in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
- managedImage StringId 
- The ID of the Managed Image or Virtual Machine ID which should be used for this Shared Image Version. Changing this forces a new resource to be created. - NOTE: The ID can be sourced from the - azure.compute.Imagedata source or resource- NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.
- name String
- The version number for this Image Version, such as 1.0.0. Changing this forces a new resource to be created.
- osDisk StringSnapshot Id 
- The ID of the OS disk snapshot which should be used for this Shared Image Version. Changing this forces a new resource to be created. - NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.
- replicationMode String
- Mode to be used for replication. Possible values are FullandShallow. Defaults toFull. Changing this forces a new resource to be created.
- resourceGroup StringName 
- The name of the Resource Group in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
- storageAccount StringId 
- The ID of the Storage Account where the Blob exists. Changing this forces a new resource to be created. - NOTE: - blob_uriand- storage_account_idmust be specified together
- Map<String,String>
- A collection of tags which should be applied to this resource.
- targetRegions List<SharedImage Version Target Region> 
- One or more target_regionblocks as documented below.
- blobUri string
- URI of the Azure Storage Blob used to create the Image Version. Changing this forces a new resource to be created. - NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.- NOTE: - blob_uriand- storage_account_idmust be specified together
- deletionOf booleanReplicated Locations Enabled 
- Specifies whether this Shared Image Version can be deleted from the Azure Regions this is replicated to. Defaults to false. Changing this forces a new resource to be created.
- endOf stringLife Date 
- The end of life date in RFC3339 format of the Image Version.
- excludeFrom booleanLatest 
- Should this Image Version be excluded from the latestfilter? If set totruethis Image Version won't be returned for thelatestversion. Defaults tofalse.
- galleryName string
- The name of the Shared Image Gallery in which the Shared Image exists. Changing this forces a new resource to be created.
- imageName string
- The name of the Shared Image within the Shared Image Gallery in which this Version should be created. Changing this forces a new resource to be created.
- location string
- The Azure Region in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
- managedImage stringId 
- The ID of the Managed Image or Virtual Machine ID which should be used for this Shared Image Version. Changing this forces a new resource to be created. - NOTE: The ID can be sourced from the - azure.compute.Imagedata source or resource- NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.
- name string
- The version number for this Image Version, such as 1.0.0. Changing this forces a new resource to be created.
- osDisk stringSnapshot Id 
- The ID of the OS disk snapshot which should be used for this Shared Image Version. Changing this forces a new resource to be created. - NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.
- replicationMode string
- Mode to be used for replication. Possible values are FullandShallow. Defaults toFull. Changing this forces a new resource to be created.
- resourceGroup stringName 
- The name of the Resource Group in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
- storageAccount stringId 
- The ID of the Storage Account where the Blob exists. Changing this forces a new resource to be created. - NOTE: - blob_uriand- storage_account_idmust be specified together
- {[key: string]: string}
- A collection of tags which should be applied to this resource.
- targetRegions SharedImage Version Target Region[] 
- One or more target_regionblocks as documented below.
- blob_uri str
- URI of the Azure Storage Blob used to create the Image Version. Changing this forces a new resource to be created. - NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.- NOTE: - blob_uriand- storage_account_idmust be specified together
- deletion_of_ boolreplicated_ locations_ enabled 
- Specifies whether this Shared Image Version can be deleted from the Azure Regions this is replicated to. Defaults to false. Changing this forces a new resource to be created.
- end_of_ strlife_ date 
- The end of life date in RFC3339 format of the Image Version.
- exclude_from_ boollatest 
- Should this Image Version be excluded from the latestfilter? If set totruethis Image Version won't be returned for thelatestversion. Defaults tofalse.
- gallery_name str
- The name of the Shared Image Gallery in which the Shared Image exists. Changing this forces a new resource to be created.
- image_name str
- The name of the Shared Image within the Shared Image Gallery in which this Version should be created. Changing this forces a new resource to be created.
- location str
- The Azure Region in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
- managed_image_ strid 
- The ID of the Managed Image or Virtual Machine ID which should be used for this Shared Image Version. Changing this forces a new resource to be created. - NOTE: The ID can be sourced from the - azure.compute.Imagedata source or resource- NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.
- name str
- The version number for this Image Version, such as 1.0.0. Changing this forces a new resource to be created.
- os_disk_ strsnapshot_ id 
- The ID of the OS disk snapshot which should be used for this Shared Image Version. Changing this forces a new resource to be created. - NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.
- replication_mode str
- Mode to be used for replication. Possible values are FullandShallow. Defaults toFull. Changing this forces a new resource to be created.
- resource_group_ strname 
- The name of the Resource Group in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
- storage_account_ strid 
- The ID of the Storage Account where the Blob exists. Changing this forces a new resource to be created. - NOTE: - blob_uriand- storage_account_idmust be specified together
- Mapping[str, str]
- A collection of tags which should be applied to this resource.
- target_regions Sequence[SharedImage Version Target Region Args] 
- One or more target_regionblocks as documented below.
- blobUri String
- URI of the Azure Storage Blob used to create the Image Version. Changing this forces a new resource to be created. - NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.- NOTE: - blob_uriand- storage_account_idmust be specified together
- deletionOf BooleanReplicated Locations Enabled 
- Specifies whether this Shared Image Version can be deleted from the Azure Regions this is replicated to. Defaults to false. Changing this forces a new resource to be created.
- endOf StringLife Date 
- The end of life date in RFC3339 format of the Image Version.
- excludeFrom BooleanLatest 
- Should this Image Version be excluded from the latestfilter? If set totruethis Image Version won't be returned for thelatestversion. Defaults tofalse.
- galleryName String
- The name of the Shared Image Gallery in which the Shared Image exists. Changing this forces a new resource to be created.
- imageName String
- The name of the Shared Image within the Shared Image Gallery in which this Version should be created. Changing this forces a new resource to be created.
- location String
- The Azure Region in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
- managedImage StringId 
- The ID of the Managed Image or Virtual Machine ID which should be used for this Shared Image Version. Changing this forces a new resource to be created. - NOTE: The ID can be sourced from the - azure.compute.Imagedata source or resource- NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.
- name String
- The version number for this Image Version, such as 1.0.0. Changing this forces a new resource to be created.
- osDisk StringSnapshot Id 
- The ID of the OS disk snapshot which should be used for this Shared Image Version. Changing this forces a new resource to be created. - NOTE: You must specify exact one of - blob_uri,- managed_image_idand- os_disk_snapshot_id.
- replicationMode String
- Mode to be used for replication. Possible values are FullandShallow. Defaults toFull. Changing this forces a new resource to be created.
- resourceGroup StringName 
- The name of the Resource Group in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
- storageAccount StringId 
- The ID of the Storage Account where the Blob exists. Changing this forces a new resource to be created. - NOTE: - blob_uriand- storage_account_idmust be specified together
- Map<String>
- A collection of tags which should be applied to this resource.
- targetRegions List<Property Map>
- One or more target_regionblocks as documented below.
Supporting Types
SharedImageVersionTargetRegion, SharedImageVersionTargetRegionArgs          
- Name string
- The Azure Region in which this Image Version should exist.
- RegionalReplica intCount 
- The number of replicas of the Image Version to be created per region.
- DiskEncryption stringSet Id 
- The ID of the Disk Encryption Set to encrypt the Image Version in the target region. Changing this forces a new resource to be created.
- ExcludeFrom boolLatest Enabled 
- Specifies whether this Shared Image Version should be excluded when querying for the latestversion. Defaults tofalse.
- StorageAccount stringType 
- The storage account type for the image version. Possible values are Standard_LRS,Premium_LRSandStandard_ZRS. Defaults toStandard_LRS. You can store all of your image version replicas in Zone Redundant Storage by specifyingStandard_ZRS.
- Name string
- The Azure Region in which this Image Version should exist.
- RegionalReplica intCount 
- The number of replicas of the Image Version to be created per region.
- DiskEncryption stringSet Id 
- The ID of the Disk Encryption Set to encrypt the Image Version in the target region. Changing this forces a new resource to be created.
- ExcludeFrom boolLatest Enabled 
- Specifies whether this Shared Image Version should be excluded when querying for the latestversion. Defaults tofalse.
- StorageAccount stringType 
- The storage account type for the image version. Possible values are Standard_LRS,Premium_LRSandStandard_ZRS. Defaults toStandard_LRS. You can store all of your image version replicas in Zone Redundant Storage by specifyingStandard_ZRS.
- name String
- The Azure Region in which this Image Version should exist.
- regionalReplica IntegerCount 
- The number of replicas of the Image Version to be created per region.
- diskEncryption StringSet Id 
- The ID of the Disk Encryption Set to encrypt the Image Version in the target region. Changing this forces a new resource to be created.
- excludeFrom BooleanLatest Enabled 
- Specifies whether this Shared Image Version should be excluded when querying for the latestversion. Defaults tofalse.
- storageAccount StringType 
- The storage account type for the image version. Possible values are Standard_LRS,Premium_LRSandStandard_ZRS. Defaults toStandard_LRS. You can store all of your image version replicas in Zone Redundant Storage by specifyingStandard_ZRS.
- name string
- The Azure Region in which this Image Version should exist.
- regionalReplica numberCount 
- The number of replicas of the Image Version to be created per region.
- diskEncryption stringSet Id 
- The ID of the Disk Encryption Set to encrypt the Image Version in the target region. Changing this forces a new resource to be created.
- excludeFrom booleanLatest Enabled 
- Specifies whether this Shared Image Version should be excluded when querying for the latestversion. Defaults tofalse.
- storageAccount stringType 
- The storage account type for the image version. Possible values are Standard_LRS,Premium_LRSandStandard_ZRS. Defaults toStandard_LRS. You can store all of your image version replicas in Zone Redundant Storage by specifyingStandard_ZRS.
- name str
- The Azure Region in which this Image Version should exist.
- regional_replica_ intcount 
- The number of replicas of the Image Version to be created per region.
- disk_encryption_ strset_ id 
- The ID of the Disk Encryption Set to encrypt the Image Version in the target region. Changing this forces a new resource to be created.
- exclude_from_ boollatest_ enabled 
- Specifies whether this Shared Image Version should be excluded when querying for the latestversion. Defaults tofalse.
- storage_account_ strtype 
- The storage account type for the image version. Possible values are Standard_LRS,Premium_LRSandStandard_ZRS. Defaults toStandard_LRS. You can store all of your image version replicas in Zone Redundant Storage by specifyingStandard_ZRS.
- name String
- The Azure Region in which this Image Version should exist.
- regionalReplica NumberCount 
- The number of replicas of the Image Version to be created per region.
- diskEncryption StringSet Id 
- The ID of the Disk Encryption Set to encrypt the Image Version in the target region. Changing this forces a new resource to be created.
- excludeFrom BooleanLatest Enabled 
- Specifies whether this Shared Image Version should be excluded when querying for the latestversion. Defaults tofalse.
- storageAccount StringType 
- The storage account type for the image version. Possible values are Standard_LRS,Premium_LRSandStandard_ZRS. Defaults toStandard_LRS. You can store all of your image version replicas in Zone Redundant Storage by specifyingStandard_ZRS.
Import
Shared Image Versions can be imported using the resource id, e.g.
$ pulumi import azure:compute/sharedImageVersion:SharedImageVersion version /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Compute/galleries/gallery1/images/image1/versions/1.2.3
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.