get Geographical Location
Deprecated
azure.trafficmanager.getGeographicalLocation has been deprecated in favor of azure.network.getTrafficManager
Use this data source to access the ID of a specified Traffic Manager Geographical Location within the Geographical Hierarchy.
Example Usage
World)
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.network.NetworkFunctions;
import com.pulumi.azure.network.inputs.GetTrafficManagerArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = NetworkFunctions.getTrafficManager(GetTrafficManagerArgs.builder()
.name("World")
.build());
ctx.export("locationCode", example.applyValue(getTrafficManagerResult -> getTrafficManagerResult.id()));
}
}Return
A collection of values returned by getGeographicalLocation.
Parameters
A collection of arguments for invoking getGeographicalLocation.
Deprecated
azure.trafficmanager.getGeographicalLocation has been deprecated in favor of azure.network.getTrafficManager
Return
A collection of values returned by getGeographicalLocation.
See also
Parameters
Specifies the name of the Location, for example World, Europe or Germany.
Deprecated
azure.trafficmanager.getGeographicalLocation has been deprecated in favor of azure.network.getTrafficManager
Return
A collection of values returned by getGeographicalLocation.
See also
Parameters
Builder for com.pulumi.azure.trafficmanager.kotlin.inputs.GetGeographicalLocationPlainArgs.