Show / Hide Table of Contents

Class GetImage

Inheritance
System.Object
GetImage
Inherited Members
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 static class GetImage

Methods

View Source

InvokeAsync(GetImageArgs, InvokeOptions)

Use this data source to access information about an existing Image.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var search = Output.Create(Azure.Compute.GetImage.InvokeAsync(new Azure.Compute.GetImageArgs
    {
        Name = "search-api",
        ResourceGroupName = "packerimages",
    }));
    this.ImageId = search.Apply(search => search.Id);
}

[Output("imageId")]
public Output<string> ImageId { get; set; }
}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetImageResult> InvokeAsync(GetImageArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetImageArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetImageResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.