question

zr123 avatar image
0 Votes"
zr123 asked GeethaThatipatri-MSFT commented

Cosmos DB CIDR support

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

GeethaThatipatri-MSFT avatar image
0 Votes"
GeethaThatipatri-MSFT answered GeethaThatipatri-MSFT commented

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



image.png (9.8 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks... but that wasn't the question.
Is there a way where I can have a table which has a list of CIDRs, but have a query, which contains a bare IP address and be able to tell whether the IP address is contained in the CIDR?+

0 Votes 0 ·

Hi, @zr123 Sorry that my understanding was wrong.
202834-image.png
No, we do not have that information however this document talks about the private IP addresses in azure which can also help with understanding a little more on ranges.

Regards
Geetha


0 Votes 0 ·
image.png (5.4 KiB)