Azure / terraform-azurerm-avm-utl-regions

Re-publish of Azure/terraform-azurerm-regions made official as AVM
https://registry.terraform.io/modules/Azure/avm-utl-regions/azurerm
MIT License
0 stars 1 forks source link

Azure Regions and Availability Zones module

This module provides an output of all Azure regions and availability zones.

The module outputs a list of objects with the following attributes:

This data is the further composed into useful maps keyed by region name and region display name. Useful filters are also provided.

Requirements

The following requirements are needed by this module:

Resources

The following resources are used by this module:

Required Inputs

No required inputs.

Optional Inputs

The following input variables are optional (have default values):

availability_zones_filter

Description: If true, the module will only return regions that have availability zones.

Type: bool

Default: false

enable_telemetry

Description: This variable controls whether or not telemetry is enabled for the module.
For more information see https://aka.ms/avm/telemetryinfo.
If it is set to false, then no telemetry will be collected.

Type: bool

Default: true

geography_filter

Description: If set, the module will only return regions that match the specified geography.

Type: string

Default: null

geography_group_filter

Description: If set, the module will only return regions that match the specified geography group.

Type: string

Default: null

recommended_filter

Description: If true, the module will only return regions that are have the category set to Recommended by the locations API.
This is default true as several regions are not available for general deployment and must be explicitly made available via support ticket.
Enabling these regions by default may lead to deployment failures.

Type: bool

Default: true

use_cached_data

Description: If true, the module will use cached data from the data directory. If false, the module will use live data from the Azure API.

The default is true to avoid unnecessary API calls and provide a guaranteed consistent output.
Set to false to ensure the latest data is used.

Using data from the Azure APIs means that if the API response changes, then the module output will change.
This may affect deployed resources that rely on this data.

Type: bool

Default: true

Outputs

The following outputs are exported:

regions

Description: A list of region objects subject to the filters supplied by input variables. Each region object contains the following attributes:

regions_by_display_name

Description: A map of region display names to region objects subject to the filters supplied by input variables. See regions output for more details.

regions_by_geography

Description: A map of geographies to a list of region objects subject to the filters supplied by input variables. See regions output for more details.

regions_by_geography_group

Description: A map of geography groups to a list of region objects subject to the filters supplied by input variables. See regions output for more details.

regions_by_name

Description: A map of region display names to region objects subject to the filters supplied by input variables. See regions output for more details.

regions_by_name_or_display_name

Description: A map of regions by either display names or name, to region objects subject to the filters supplied by input variables. See regions output for more details.

valid_region_display_names

Description: A set of valid region display names subject to the filters supplied by input variables.

valid_region_names

Description: A set of valid region names subject to the filters supplied by input variables.

valid_region_names_or_display_names

Description: A set of valid region names or display names subject to the filters supplied by input variables.

Modules

No modules.

Data Collection

The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft’s privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.