Skip to content

Commit f009880

Browse files
author
Thomas Weiss
committed
Documented the publicNetworkAccess flag
1 parent 61ffd5d commit f009880

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

articles/cosmos-db/how-to-configure-private-endpoints.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to set up Azure Private Link to access an Azure Cosmos ac
44
author: ThomasWeiss
55
ms.service: cosmos-db
66
ms.topic: conceptual
7-
ms.date: 11/04/2019
7+
ms.date: 04/13/2020
88
ms.author: thweiss
99
---
1010

@@ -620,6 +620,10 @@ The following situations and outcomes are possible when you use Private Link in
620620

621621
* If you don't configure any public traffic or service endpoint and you create private endpoints, then the Azure Cosmos account is accessible only through the private endpoints. If you don't configure public traffic or a service endpoint, after all approved private endpoints are rejected or deleted, the account is open to the entire network.
622622

623+
## Blocking public network access during account creation
624+
625+
As described in the previous section, and unless specific firewall rules have been set, adding a private endpoint makes your Azure Cosmos account accessible through private endpoints only. This means that the Azure Cosmos account could be reached from public traffic after it is created and before a private endpoint gets added. To make sure that public network access is disabled even before the creation of private endpoints, you can set the `publicNetworkAccess` flag to `Disabled` during account creation. See [this Azure Resource Manager template](https://azure.microsoft.com/en-us/resources/templates/101-cosmosdb-private-endpoint/) for an example showing how to use this flag.
626+
623627
## Update a private endpoint when you add or remove a region
624628

625629
Adding or removing regions to an Azure Cosmos account requires you to add or remove DNS entries for that account. After regions have been added or removed, you can update the subnet's private DNS zone to reflect the added or removed DNS entries and their corresponding private IP addresses.

articles/cosmos-db/index-overview.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Understand how indexing works in Azure Cosmos DB, different kinds o
44
author: ThomasWeiss
55
ms.service: cosmos-db
66
ms.topic: conceptual
7-
ms.date: 10/11/2019
7+
ms.date: 04/13/2020
88
ms.author: thweiss
99
---
1010

@@ -77,7 +77,7 @@ Azure Cosmos DB currently supports three kinds of indexes.
7777

7878
Equality match on an array element
7979
```sql
80-
SELECT * FROM c WHERE ARRAY_CONTAINS(c.tags, "tag1)
80+
SELECT * FROM c WHERE ARRAY_CONTAINS(c.tags, "tag1")
8181
```
8282

8383
- Range queries:
@@ -159,11 +159,11 @@ Spatial indexes can be used on correctly formatted [GeoJSON](geospatial.md) obje
159159
SELECT * FROM container c WHERE c.property1 = 'value' AND c.property2 > 'value'
160160
```
161161

162-
As long as one filter predicate uses on of the index kind, the query engine will evaluate that first before scanning the rest. For example, if you have a SQL query such as `SELECT * FROM c WHERE c.firstName = "Andrew" and CONTAINS(c.lastName, "Liu")`
162+
As long as one filter predicate uses one of the index kind, the query engine will evaluate that first before scanning the rest. For example, if you have a SQL query such as `SELECT * FROM c WHERE c.firstName = "Andrew" and CONTAINS(c.lastName, "Liu")`
163163

164164
* The above query will first filter for entries where firstName = "Andrew" by using the index. It then pass all of the firstName = "Andrew" entries through a subsequent pipeline to evaluate the CONTAINS filter predicate.
165165

166-
* You can speed up queries and avoid full container scans when using functions that dont use the index (e.g. CONTAINS) by adding additional filter predicates that do use the index. The order of filter clauses isn't important. The query engine is will figure out which predicates are more selective and run the query accordingly.
166+
* You can speed up queries and avoid full container scans when using functions that don't use the index (e.g. CONTAINS) by adding additional filter predicates that do use the index. The order of filter clauses isn't important. The query engine is will figure out which predicates are more selective and run the query accordingly.
167167

168168

169169
## Querying with indexes

0 commit comments

Comments
 (0)