Cosmos DB CIDR support

zr123 1 Reputation point
2022-05-15T20:59:29.27+00:00

I'm trying to migrate a KV Store to Cosmos DB with the SQL API.

We want to query coming in with an IP address, while Cosmos DB stores the CIDR: 132.32.43.3/24.

Is that supported?

Searching around, it seems that people end up creating begin/end ranges in Cosmos, since it doesn't seem to support CIDR... but I want to confirm this.

Thanks

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,440 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 27,022 Reputation points Microsoft Employee
    2022-05-16T15:10:20.083+00:00

    Hi, @zr123 Welcome to the Microsoft Q&A forum, and thanks for reaching out.
    As we understand the ask here is you want to know if coming in IP address supported or not.

    The IP address you mentioned is not in the CIDR range the correct range is 132.32.43.0/24.
    202289-image.png

    you can also check in IP calculator Here for a valid IP address.

    Please let me know if you need any additional information

    Regards
    Geetha