hashicorp / terraform-provider-azuread

Terraform provider for Azure Active Directory
https://registry.terraform.io/providers/hashicorp/azuread/latest/docs
Mozilla Public License 2.0
415 stars 280 forks source link

azuread_named_location support for GPS coordinates country lookup method #1427

Open sdx-jkataja opened 4 days ago

sdx-jkataja commented 4 days ago

Community Note

Description

Currently any Named Location country lists created using the azuread_named_location resource with a country block have the Countries (IP) location type. On the Azure Portal this translates to Country lookup method parameter always having the Determine location by IP address setting.

Please add support for the Countries (GPS) location type. On the Azure Portal this translates to Country lookup method parameter having the Determine location by GPS coordinates option.

Concept documentation: https://learn.microsoft.com/en-us/entra/identity/conditional-access/concept-assignment-network#countries API documentation: see countryLookupMethodType value authenticatorAppGps in https://learn.microsoft.com/en-us/graph/api/resources/countrynamedlocation?view=graph-rest-1.0#properties

New or Affected Resource(s)

Potential Terraform Configuration

Suggestion 1

resource "azuread_named_location" "example-country" {
  display_name = "Country Named Location"
  country {
    countries_and_regions = [
      "GB",
      "US",
    ]
    country_lookup_method = "GPS"
  }
}

Suggestion 2

resource "azuread_named_location" "example-country" {
  display_name = "Country Named Location"
  country {
    countries_and_regions = [
      "GB",
      "US",
    ]
    lookup_lookup_method_gps = true
  }
}

Suggestion 3

resource "azuread_named_location" "example-country" {
  display_name = "Country Named Location"
  country {
    countries_and_regions_gps_coordinates = [
      "GB",
      "US",
    ]
  }
}

References