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/azure-resource-manager/templates/template-functions-comparison.md
+76Lines changed: 76 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,12 +8,88 @@ ms.date: 04/27/2020
8
8
9
9
Resource Manager provides several functions for making comparisons in your Azure Resource Manager (ARM) templates.
10
10
11
+
*[coalesce](#coalesce)
11
12
*[equals](#equals)
12
13
*[greater](#greater)
13
14
*[greaterOrEquals](#greaterorequals)
14
15
*[less](#less)
15
16
*[lessOrEquals](#lessorequals)
16
17
18
+
## coalesce
19
+
20
+
`coalesce(arg1, arg2, arg3, ...)`
21
+
22
+
Returns first non-null value from the parameters. Empty strings, empty arrays, and empty objects are not null.
23
+
24
+
### Parameters
25
+
26
+
| Parameter | Required | Type | Description |
27
+
|:--- |:--- |:--- |:--- |
28
+
| arg1 |Yes |int, string, array, or object |The first value to test for null. |
29
+
| additional args |No |int, string, array, or object |Additional values to test for null. |
30
+
31
+
### Return value
32
+
33
+
The value of the first non-null parameters, which can be a string, int, array, or object. Null if all parameters are null.
34
+
35
+
### Example
36
+
37
+
The following [example template](https://github.com/Azure/azure-docs-json-samples/blob/master/azure-resource-manager/functions/coalesce.json) shows the output from different uses of coalesce.
title: Resource Manager templates for Azure Cosmos DB Cassandra API
3
3
description: Use Azure Resource Manager templates to create and configure Azure Cosmos DB Cassandra API.
4
-
author: TheovanKraay
4
+
author: markjbrown
5
5
ms.service: cosmos-db
6
6
ms.topic: conceptual
7
-
ms.date: 11/12/2019
8
-
ms.author: thvankra
7
+
ms.date: 04/27/2020
8
+
ms.author: mjbrown
9
9
---
10
10
11
11
# Manage Azure Cosmos DB Cassandra API resources using Azure Resource Manager templates
12
12
13
-
This article describes how to perform different operations to automate management of your Azure Cosmos DB accounts, databases and containers using Azure Resource Manager templates. This article has examples for SQL API accounts only, to find examples for other API type accounts see: use Azure Resource Manager templates with Azure Cosmos DB's API for[SQL](manage-sql-with-resource-manager.md), [Gremlin](manage-gremlin-with-resource-manager.md), [MongoDB](manage-mongodb-with-resource-manager.md), [Table](manage-table-with-resource-manager.md) articles.
13
+
This article describes how to perform different operations to automate management of your Azure Cosmos DB accounts, databases and containers using Azure Resource Manager templates. This article has examples for Cassandra API accounts only, to find examples for other API type accounts see: use Azure Resource Manager templates with Azure Cosmos DB's API for [SQL](manage-sql-with-resource-manager.md), [Gremlin](manage-gremlin-with-resource-manager.md), [MongoDB](manage-mongodb-with-resource-manager.md), [Table](manage-table-with-resource-manager.md) articles.
14
14
15
15
## Create Azure Cosmos account, keyspace and table <aid="create-resource"></a>
16
16
@@ -20,7 +20,190 @@ Create Azure Cosmos DB resources using an Azure Resource Manager template. This
20
20
> Account names must be lowercase and 44 or fewer characters.
21
21
> To update RU/s, resubmit the template with updated throughput property values.
az cosmosdb show --resource-group $resourceGroupName --name accountName --output tsv
47
230
```
48
231
49
232
The `az cosmosdb show` command shows the newly created Azure Cosmos account after it has been provisioned. If you choose to use a locally installed version of the Azure CLI instead of using Cloud Shell, see the [Azure CLI](/cli/azure/) article.
0 commit comments