Forum Discussion

Tom-S-2060's avatar
Tom-S-2060
Copper Contributor
Mar 30, 2021

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

  • DutchDevOps's avatar
    DutchDevOps
    Brass Contributor
    Microsoft 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.
    • usr21's avatar
      usr21
      Copper Contributor
      The problem seems to be solved: this morning I could add an IP address again.
      • DutchDevOps's avatar
        DutchDevOps
        Brass Contributor
        I can confirm the problem is solved. I was able to add an IP address through the Azure portal.
  • Unisys2095's avatar
    Unisys2095
    Copper 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 

  • TCNDC's avatar
    TCNDC
    Copper Contributor

    Experiencing the same issue. Unable to add a single IP address

    • Seshadrr's avatar
      Seshadrr
      Iron Contributor
      Please are you adding Internal IP or External IP range in firewall address?
      • TCNDC's avatar
        TCNDC
        Copper 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.

  • Seshadrr's avatar
    Seshadrr
    Iron Contributor
    From 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-2060's avatar
      Tom-S-2060
      Copper Contributor
      I 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.'."

  • DutchDevOps's avatar
    DutchDevOps
    Brass 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.

  • epapineau's avatar
    epapineau
    Copper Contributor
    We're experiencing the same issue as of today. Was working last week. Is there a fix for this?
      • Alsmk255's avatar
        Alsmk255
        Copper Contributor

        viwaabf 

         

        Also have exactly the same problem - can add it as a /30, but that's clearly no use.

Resources