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
Try 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
TCNDC
Mar 31, 2021Copper Contributor
A 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.
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"