feat: add IP formatting function for Azure Storage Firewall#7
Merged
bhavink merged 1 commit intoJun 2, 2026
Conversation
- Introduced `format_ips_for_azure_storage` function to convert `/31` and `/32` CIDRs into individual IP addresses for compatibility with Azure Storage Firewall. - Updated `databricks_ip_sync` function to utilize the new formatting function for IP comparison. - Revised documentation to clarify the handling of CIDR formats in the context of Azure Storage Account network rules.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
format_ips_for_azure_storage()to the Azure Function App example indocs/firewall-automation-guide.md— expands/31and/32CIDRs into individual host IPs before applying Storage Account network rules; leaves wider prefixes as CIDR strings. And wires the helper into the optional Storage Account sync path/31and/32CIDRsWhy
Azure Storage network rules do not accept the
/31and/32as CIDR strings, even in the Azure SDKThis is documentation-only (same scope as the guide's existing Function App sample). The Terraform CIDR module from PR #2 is unchanged — customers who use
source_fileswith-outbound.txtand write their ownazurerm_storage_account_network_rulesmay still need equivalent/31//32handling in their apply logic; this PR shows the pattern in the Azure automation walkthrough.Test plan
172.186.31.34/31→172.186.31.34,172.186.31.3551.140.203.27/32→51.140.203.27Backward compatibility
update_outputs.py, orterraform/.