You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/nosql/how-to-geospatial-index-query.md
+19-20Lines changed: 19 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ All containers include a default indexing policy that will successfully index ge
41
41
42
42
1. Create a shell variable for the name of your Azure Cosmos DB for NoSQL account and resource group.
43
43
44
-
```azurecli
44
+
```azurecli-interactive
45
45
# Variable for resource group name
46
46
resourceGroupName="<name-of-your-resource-group>"
47
47
@@ -51,7 +51,7 @@ All containers include a default indexing policy that will successfully index ge
51
51
52
52
1. Create a new database named ``cosmicworks`` using [``az cosmosdb sql database create``](/cli/azure/cosmosdb/sql/database#az-cosmosdb-sql-database-create).
53
53
54
-
```azurecli
54
+
```azurecli-interactive
55
55
az cosmosdb sql database create \
56
56
--resource-group $resourceGroupName \
57
57
--account-name $accountName \
@@ -89,7 +89,7 @@ All containers include a default indexing policy that will successfully index ge
89
89
90
90
1. Use [``az cosmosdb sql container create``](/cli/azure/cosmosdb/sql/container#az-cosmosdb-sql-container-create) to create a new container named ``locations`` with a partition key path of ``/region``.
91
91
92
-
```azurecli
92
+
```azurecli-interactive
93
93
az cosmosdb sql container create \
94
94
--resource-group $resourceGroupName \
95
95
--account-name $accountName \
@@ -101,7 +101,7 @@ All containers include a default indexing policy that will successfully index ge
101
101
102
102
1. Retrieve the primary connection string for the account using [``az cosmosdb keys list``](/cli/azure/cosmosdb/keys#az-cosmosdb-keys-list).
103
103
104
-
```azurecli
104
+
```azurecli-interactive
105
105
az cosmosdb keys list \
106
106
--resource-group $resourceGroupName \
107
107
--name $accountName \
@@ -180,10 +180,10 @@ The .NET SDK includes multiple types in the [``Microsoft.Azure.Cosmos.Spatial``]
180
180
181
181
| | Type | Description | Default value |
182
182
| --- | --- | --- | --- |
183
-
| **``id``** | ``string`` | Unique identifier | |
184
-
| **``name``** | ``string`` | Name of the office | |
185
-
| **``location``** | ``Point`` | GeoJSON geographical point | |
@@ -405,7 +405,6 @@ The [LINQ to NoSQL](query/linq-to-sql.md) functionality in the .NET SDK supports
405
405
406
406
```csharp
407
407
Region region = await container.ReadItemAsync<Region>("1000", new PartitionKey("business-region"));
408
-
409
408
```
410
409
411
410
1. Use the [``Container.GetItemLinqQueryable<>``](/dotnet/api/microsoft.azure.cosmos.container.getitemlinqqueryable) method to get a LINQ queryable, and the build the LINQ query fluently by performing these three actions:
@@ -457,7 +456,7 @@ Remove your database after you complete this guide.
457
456
458
457
1. Open a terminal and create a shell variable for the name of your account and resource group.
459
458
460
-
```azurecli
459
+
```azurecli-interactive
461
460
# Variable for resource group name
462
461
resourceGroupName="<name-of-your-resource-group>"
463
462
@@ -467,7 +466,7 @@ Remove your database after you complete this guide.
467
466
468
467
1. Use [``az cosmosdb sql database delete``](/cli/azure/cosmosdb/sql/database#az-cosmosdb-sql-database-delete) to remove the database.
0 commit comments