Show / Hide Table of Contents

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",
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
SharedImage
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.Compute
Assembly: Pulumi.Azure.dll
Syntax
public class SharedImage : CustomResource

Constructors

View Source

SharedImage(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 Source

Description

A description of this Shared Image.

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

Eula

The End User Licence Agreement for the Shared Image.

Declaration
public Output<string> Eula { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

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>
View Source

Identifier

An identifier block as defined below.

Declaration
public Output<SharedImageIdentifier> Identifier { get; }
Property Value
Type Description
Output<SharedImageIdentifier>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.