Skip to content

Commit

Permalink
cosmosdb sql function docs fix (hashicorp#12662)
Browse files Browse the repository at this point in the history
* cosmosdb sql function docs fix

* rename the file to the correct value
  • Loading branch information
Nilsas authored and yupwei68 committed Jul 26, 2021
1 parent c4fb5c9 commit a0be368
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
subcategory: "CosmosDB (DocumentDB)"
layout: "azurerm"
page_title: "Azure Resource Manager: azurerm_cosmosdb_sql_user_defined_function"
page_title: "Azure Resource Manager: azurerm_cosmosdb_sql_function"
description: |-
Manages an SQL User Defined Function.
---

# azurerm_cosmosdb_sql_user_defined_function
# azurerm_cosmosdb_sql_function

Manages an SQL User Defined Function.

Expand All @@ -33,7 +33,7 @@ resource "azurerm_cosmosdb_sql_container" "example" {
partition_key_path = "/id"
}
resource "azurerm_cosmosdb_sql_user_defined_function" "example" {
resource "azurerm_cosmosdb_sql_function" "example" {
name = "test-function"
container_id = azurerm_cosmosdb_sql_container.example.id
body = "function trigger(){}"
Expand Down Expand Up @@ -70,5 +70,5 @@ The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/d
SQL User Defined Functions can be imported using the `resource id`, e.g.

```shell
terraform import azurerm_cosmosdb_sql_user_defined_function.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DocumentDB/databaseAccounts/account1/sqlDatabases/database1/containers/container1/userDefinedFunctions/userDefinedFunction1
terraform import azurerm_cosmosdb_sql_function.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DocumentDB/databaseAccounts/account1/sqlDatabases/database1/containers/container1/userDefinedFunctions/userDefinedFunction1
```

0 comments on commit a0be368

Please sign in to comment.