terraform-provider-azuread
terraform-provider-azuread copied to clipboard
azuread_named_location support for GPS coordinates country lookup method
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritise this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritise the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
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",
]
}
}