Class GetGeographicalLocation
Inheritance
System.Object
GetGeographicalLocation
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.TrafficManager
Assembly: Pulumi.Azure.dll
Syntax
[Obsolete("azure.trafficmanager.getGeographicalLocation has been deprecated in favor of azure.network.getTrafficManager")]
public static class GetGeographicalLocation
Methods
View SourceInvokeAsync(GetGeographicalLocationArgs, InvokeOptions)
Use this data source to access the ID of a specified Traffic Manager Geographical Location within the Geographical Hierarchy.
Example Usage (World)
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Network.GetTrafficManager.InvokeAsync(new Azure.Network.GetTrafficManagerArgs
{
Name = "World",
}));
this.LocationCode = example.Apply(example => example.Id);
}
[Output("locationCode")]
public Output<string> LocationCode { get; set; }
}
Declaration
public static Task<GetGeographicalLocationResult> InvokeAsync(GetGeographicalLocationArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetGeographicalLocationArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetGeographicalLocationResult> |