Forum Discussion
Tom-S-2060
Mar 30, 2021Copper Contributor
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.'."...
Seshadrr
Mar 31, 2021Iron Contributor
Please are you adding Internal IP or External IP range in firewall address?
TCNDC
Mar 31, 2021Copper Contributor
Seshadrrmy own single external IP address. The IP address is a valid external IP address.
When adding it in the Networking > Firewall for the storage account I receive the following error message.
The IP address is a single, valid external IPV4 address.
- SeshadrrMar 31, 2021Iron ContributorTry to use with CIDR notation with a small range, Usually, when you access the storage explorer on your own browser it will automatically pick up the client IP address where you can add with a single range, however for the definite manual range try to use CIDR notation. I have been tested with the same IP which i have received from ISP with CIDR which results in the success
- TCNDCMar 31, 2021Copper ContributorA small CIDR range is unacceptable as /30 results in 4 IP addresses having access.
Picking up my own client IP is fine, but this doesn't work when I need to add other single IP addresses for those without access to the Azure portal.- SeshadrrMar 31, 2021Iron ContributorYes, through Portal the argument error in which is accepting from o to 30 CIDR, whereas by CLI it accepts with your own IP
az storage account network-rule add --resource-group "myresourcegroup" --account-name "mystorageaccount" --ip-address "16.17.18.19"
- Tom-S-2060Mar 31, 2021Copper ContributorCIDR notation using /31 and /32 will not work.
- SeshadrrMar 31, 2021Iron ContributorI tested with CIDR /30 which has a minimum host address which works for me.
- TCNDCMar 31, 2021Copper Contributor
It also did used to allowing single IP addresses, as I have many storage accounts, each with a couple of single external IPV4 IP addresses in the firewall.
- Tom-S-2060Mar 31, 2021Copper ContributorI need to add a single IP address. I've tried 71.59.0.15, 71.59.0.12/32 and get the same error. The field validation should allow individual IP addresses or CIDR prefixes between 0 and 32.