Class GetManagedDisk
Inheritance
System.Object
GetManagedDisk
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 GetManagedDisk
Methods
View SourceInvokeAsync(GetManagedDiskArgs, InvokeOptions)
Use this data source to access information about an existing Managed Disk.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var existing = Output.Create(Azure.Compute.GetManagedDisk.InvokeAsync(new Azure.Compute.GetManagedDiskArgs
{
Name = "example-datadisk",
ResourceGroupName = "example-resources",
}));
this.Id = existing.Apply(existing => existing.Id);
}
[Output("id")]
public Output<string> Id { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetManagedDiskResult> InvokeAsync(GetManagedDiskArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetManagedDiskArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetManagedDiskResult> |