Forum Discussion
Can't add IP address to storage account
I can no longer add an IP address to a storage account networking using the portal. This started within the last week.
I get the message "Invalid argument: 'The prefix must be between 0 and 30.'." I've tried a valid IP address and CIDR notation. (71.59.0.15 or 71.59.0.15/32).
Is this a problem with the Azure portal?
20 Replies
- DutchDevOpsBrass ContributorMicrosoft has confirmed that there is a problem in the portal and they are working on a solution. In the mean time it is only possible to add a single IP address through the cloudshell (Powershell or Azure CLI can also be used).
I will post an update when Microsoft confirmed the issue is solved.- usr21Copper ContributorThe problem seems to be solved: this morning I could add an IP address again.
- DutchDevOpsBrass ContributorI can confirm the problem is solved. I was able to add an IP address through the Azure portal.
- Unisys2095Copper Contributor
Just writing to confirm getting same behavior in the portal today as I was looking for a solution same as everyone else. Tom-S-2060
- TCNDCCopper Contributor
Experiencing the same issue. Unable to add a single IP address
- SeshadrrIron ContributorPlease are you adding Internal IP or External IP range in firewall address?
- SeshadrrIron ContributorFrom Azure Portal- Navigate to Storage account which you want to allow Secure network connection..
1) Go to the storage account you want to secure.
2) Select on the settings menu called Networking.
3) Check that you've selected to allow access from Selected networks.
To grant access to an internet IP range, enter the IP address or address range (in CIDR format) under Firewall > Address Range.
To remove an IP network rule, select the trash can icon next to the address range.
Select Save to apply your changes.
Note: You must provide allowed internet address ranges using CIDR notation in the form 16.17.18.0/24 or as individual IP addresses like 16.17.18.19.
Small address ranges using "/31" or "/32" prefix sizes are not supported. These ranges should be configured using individual IP address rules.- Tom-S-2060Copper ContributorI know how to add the IP address. I get the following error with valid IP addresses and CIDR notations.
"Invalid argument: 'The prefix must be between 0 and 30.'."
- DutchDevOpsBrass Contributor
I experienced the same problem but i found a workaround by creating a network rule via the Azure CLI. You can find the instructions here: https://docs.microsoft.com/en-us/azure/storage/common/storage-network-security?tabs=azure-cli#managing-ip-network-rules. I guess PowerShell should also work, so it must be a bug in the portal.
I just raised a support request at Microsoft to solve the problem in the portal.
- epapineauCopper ContributorWe're experiencing the same issue as of today. Was working last week. Is there a fix for this?