Class GetPlacementGroup
Inheritance
System.Object
GetPlacementGroup
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.Proximity
Assembly: Pulumi.Azure.dll
Syntax
public static class GetPlacementGroup
Methods
View SourceInvokeAsync(GetPlacementGroupArgs, InvokeOptions)
Use this data source to access information about an existing Proximity Placement Group.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Proximity.GetPlacementGroup.InvokeAsync(new Azure.Proximity.GetPlacementGroupArgs
{
Name = "tf-appsecuritygroup",
ResourceGroupName = "my-resource-group",
}));
this.ProximityPlacementGroupId = example.Apply(example => example.Id);
}
[Output("proximityPlacementGroupId")]
public Output<string> ProximityPlacementGroupId { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetPlacementGroupResult> InvokeAsync(GetPlacementGroupArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetPlacementGroupArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetPlacementGroupResult> |