We recommend using Azure Native.
Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi
azure.core.getExtendedLocations
Explore with Pulumi AI
This data source return the available Extended Locations for a specific Azure Region.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.core.getExtendedLocations({
location: "West Europe",
});
import pulumi
import pulumi_azure as azure
example = azure.core.get_extended_locations(location="West Europe")
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := core.GetExtendedLocations(ctx, &core.GetExtendedLocationsArgs{
Location: "West Europe",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.Core.GetExtendedLocations.Invoke(new()
{
Location = "West Europe",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.CoreFunctions;
import com.pulumi.azure.core.inputs.GetExtendedLocationsArgs;
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 = CoreFunctions.getExtendedLocations(GetExtendedLocationsArgs.builder()
.location("West Europe")
.build());
}
}
variables:
example:
fn::invoke:
Function: azure:core:getExtendedLocations
Arguments:
location: West Europe
Using getExtendedLocations
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getExtendedLocations(args: GetExtendedLocationsArgs, opts?: InvokeOptions): Promise<GetExtendedLocationsResult>
function getExtendedLocationsOutput(args: GetExtendedLocationsOutputArgs, opts?: InvokeOptions): Output<GetExtendedLocationsResult>
def get_extended_locations(location: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetExtendedLocationsResult
def get_extended_locations_output(location: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetExtendedLocationsResult]
func GetExtendedLocations(ctx *Context, args *GetExtendedLocationsArgs, opts ...InvokeOption) (*GetExtendedLocationsResult, error)
func GetExtendedLocationsOutput(ctx *Context, args *GetExtendedLocationsOutputArgs, opts ...InvokeOption) GetExtendedLocationsResultOutput
> Note: This function is named GetExtendedLocations
in the Go SDK.
public static class GetExtendedLocations
{
public static Task<GetExtendedLocationsResult> InvokeAsync(GetExtendedLocationsArgs args, InvokeOptions? opts = null)
public static Output<GetExtendedLocationsResult> Invoke(GetExtendedLocationsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetExtendedLocationsResult> getExtendedLocations(GetExtendedLocationsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:core/getExtendedLocations:getExtendedLocations
arguments:
# arguments dictionary
The following arguments are supported:
- Location string
- The Azure location to retrieve the Extended Locations for.
- Location string
- The Azure location to retrieve the Extended Locations for.
- location String
- The Azure location to retrieve the Extended Locations for.
- location string
- The Azure location to retrieve the Extended Locations for.
- location str
- The Azure location to retrieve the Extended Locations for.
- location String
- The Azure location to retrieve the Extended Locations for.
getExtendedLocations Result
The following output properties are available:
- Extended
Locations List<string> - The available extended locations for the Azure Location.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Extended
Locations []string - The available extended locations for the Azure Location.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- extended
Locations List<String> - The available extended locations for the Azure Location.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- extended
Locations string[] - The available extended locations for the Azure Location.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- extended_
locations Sequence[str] - The available extended locations for the Azure Location.
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- extended
Locations List<String> - The available extended locations for the Azure Location.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.