getExtendedLocations

This data source return the available Extended Locations for a specific Azure Region.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = Azure.Core.GetExtendedLocations.Invoke(new()
    {
        Location = "West Europe",
    });

});
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/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
	})
}
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());

    }
}
import pulumi
import pulumi_azure as azure

example = azure.core.get_extended_locations(location="West Europe")
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = pulumi.output(azure.core.getExtendedLocations({
    location: "West Europe",
}));
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:

ExtendedLocations List<string>

The available extended locations for the Azure Location.

Id string

The provider-assigned unique ID for this managed resource.

Location string
ExtendedLocations []string

The available extended locations for the Azure Location.

Id string

The provider-assigned unique ID for this managed resource.

Location string
extendedLocations List<String>

The available extended locations for the Azure Location.

id String

The provider-assigned unique ID for this managed resource.

location String
extendedLocations 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
extendedLocations 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
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.