Hi Peter Stieber,
Welcome to Microsoft QnA Portal and thanks for posting your query!
Please find the solution for the Azure Firewall Policy API and how to get SNAT range information, especially when using a child policy that inherits SNAT settings from a parent policy.
Here’s what’s happening:
- When you enable “Use the IP ranges defined in parent policy” for SNAT on a child policy, the API response for that child policy does not include SNAT details. Because of this, the API cannot directly tell you whether the child is inheriting SNAT settings from the parent or just using the default SNAT behavior.
- The API only shows SNAT settings if they’re explicitly configured on a policy, such as “Always,” “Never,” or specific manual IP ranges.
- If SNAT settings are inherited or defaulted, the SNAT property won’t appear in the API result of the child policy.
- To determine what SNAT settings apply, you need to manually check the parent policy’s SNAT configuration. If the parent has SNAT settings, the child policy inherits them; otherwise, the default SNAT behavior applies.
Unfortunately, the API does not have a clear flag or property to say “this child policy is inheriting SNAT” or not.
Useful documents:
https://learn.microsoft.com/en-us/azure/firewall/snat-private-range
Please do not forget to "Accept the answer” and “upvote it” wherever the information provided helps you, this can be beneficial to other community members.it would be greatly appreciated and helpful to others
Thanks,
Pranitha