Class SharedImage
Manages a Shared Image within a Shared Image Gallery.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleSharedImageGallery = new Azure.Compute.SharedImageGallery("exampleSharedImageGallery", new Azure.Compute.SharedImageGalleryArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
Description = "Shared images and things.",
Tags =
{
{ "Hello", "There" },
{ "World", "Example" },
},
});
var exampleSharedImage = new Azure.Compute.SharedImage("exampleSharedImage", new Azure.Compute.SharedImageArgs
{
GalleryName = exampleSharedImageGallery.Name,
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
OsType = "Linux",
Identifier = new Azure.Compute.Inputs.SharedImageIdentifierArgs
{
Publisher = "PublisherName",
Offer = "OfferName",
Sku = "ExampleSku",
},
});
}
}
Inherited Members
Namespace: Pulumi.Azure.Compute
Assembly: Pulumi.Azure.dll
Syntax
public class SharedImage : CustomResource
Constructors
View SourceSharedImage(String, SharedImageArgs, CustomResourceOptions)
Create a SharedImage resource with the given unique name, arguments, and options.
Declaration
public SharedImage(string name, SharedImageArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| SharedImageArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDescription
A description of this Shared Image.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Eula
The End User Licence Agreement for the Shared Image.
Declaration
public Output<string> Eula { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
GalleryName
Specifies the name of the Shared Image Gallery in which this Shared Image should exist. Changing this forces a new resource to be created.
Declaration
public Output<string> GalleryName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
HyperVGeneration
The generation of HyperV that the Virtual Machine used to create the Shared Image is based on. Possible values are V1 and V2. Defaults to V1. Changing this forces a new resource to be created.
Declaration
public Output<string> HyperVGeneration { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Identifier
An identifier block as defined below.
Declaration
public Output<SharedImageIdentifier> Identifier { get; }
Property Value
| Type | Description |
|---|---|
| Output<SharedImageIdentifier> |
Location
Specifies the supported Azure location where the Shared Image Gallery exists. Changing this forces a new resource to be created.
Declaration
public Output<string> Location { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
Specifies the name of the Shared Image. Changing this forces a new resource to be created.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
OsType
The type of Operating System present in this Shared Image. Possible values are Linux and Windows.
Declaration
public Output<string> OsType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PrivacyStatementUri
The URI containing the Privacy Statement associated with this Shared Image.
Declaration
public Output<string> PrivacyStatementUri { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ReleaseNoteUri
The URI containing the Release Notes associated with this Shared Image.
Declaration
public Output<string> ReleaseNoteUri { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ResourceGroupName
The name of the resource group in which the Shared Image Gallery exists. Changing this forces a new resource to be created.
Declaration
public Output<string> ResourceGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
A mapping of tags to assign to the Shared Image.
Declaration
public Output<ImmutableDictionary<string, string>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>> |
Methods
View SourceGet(String, Input<String>, SharedImageState, CustomResourceOptions)
Get an existing SharedImage resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static SharedImage Get(string name, Input<string> id, SharedImageState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| SharedImageState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| SharedImage |