azure.entraid-named-location
EntraID Named Location resource for managing locations in Conditional Access policies.
Named locations are trusted IP ranges or countries/regions that can be used in Conditional Access policies. This resource type supports querying and managing both IP-based and country/region-based named locations.
Permissions: - Policy.Read.All for reading named locations - Policy.ReadWrite.ConditionalAccess for modifying named locations
- example:
Find all IP-based named locations:
policies:
- name: ip-named-locations
resource: azure.entraid-named-location
filters:
- type: location-type
location-type: ipNamedLocation
- example:
Find named locations containing specific IP ranges:
policies:
- name: specific-ip-ranges
resource: azure.entraid-named-location
filters:
- type: location-type
location-type: ipNamedLocation
- type: value
key: ipRanges[*].cidrAddress
op: contains
value: "10.0.0.0/8"
Filters
advisor-recommendation
Filter resources by Azure Advisor Recommendations
Select all categories with ‘all’
- example:
policies:
- name: disks-with-cost-recommendations
resource: azure.disk
filters:
- type: advisor-recommendation
category: Cost
key: '[].properties.recommendationTypeId'
op: contains
value: '48eda464-1485-4dcf-a674-d0905df5054a'
properties:
category:
type: string
default:
type: object
key:
type: string
op:
enum:
- eq
- equal
- ne
- not-equal
- gt
- greater-than
- ge
- gte
- le
- lte
- lt
- less-than
- glob
- regex
- regex-case
- in
- ni
- not-in
- contains
- difference
- intersect
- mod
tag_key_transforms:
items:
type: string
type: array
type:
enum:
- advisor-recommendation
value:
oneOf:
- type: array
- type: string
- type: boolean
- type: number
- type: 'null'
value_from:
additionalProperties: 'False'
properties:
expr:
oneOf:
- type: integer
- type: string
format:
enum:
- csv
- json
- txt
- csv2dict
headers:
patternProperties:
? ''
: type: string
type: object
query:
type: string
url:
type: string
required:
- url
type: object
value_path:
type: string
value_regex:
type: string
value_type:
enum:
- age
- integer
- expiration
- normalize
- size
- cidr
- cidr_size
- swap
- resource_count
- expr
- unique_size
- date
- version
- float
required:
- category
- type
location-type
Filter named locations by type (IP-based or country-based).
- example:
Find all country-based named locations:
policies:
- name: country-named-locations
resource: azure.entraid-named-location
filters:
- type: location-type
location-type: countryNamedLocation
properties:
location-type:
enum:
- ipNamedLocation
- countryNamedLocation
type: string
type:
enum:
- location-type
required:
- type