Class GetPlatformImage
Inheritance
System.Object
GetPlatformImage
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 GetPlatformImage
Methods
View SourceInvokeAsync(GetPlatformImageArgs, InvokeOptions)
Use this data source to access information about a Platform Image.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Compute.GetPlatformImage.InvokeAsync(new Azure.Compute.GetPlatformImageArgs
{
Location = "West Europe",
Publisher = "Canonical",
Offer = "UbuntuServer",
Sku = "16.04-LTS",
}));
this.Id = example.Apply(example => example.Id);
}
[Output("id")]
public Output<string> Id { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetPlatformImageResult> InvokeAsync(GetPlatformImageArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetPlatformImageArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetPlatformImageResult> |