Skip to content

Commit

Permalink
connections - docs example improvement (#17022)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiqingzhang authored May 31, 2022
1 parent 2d9fb60 commit 1774626
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions website/docs/r/api_connection.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Manages an API Connection.
## Example Usage

```hcl
provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "West Europe"
Expand All @@ -23,6 +27,13 @@ data "azurerm_managed_api" "example" {
location = azurerm_resource_group.example.location
}
resource "azurerm_servicebus_namespace" "example" {
name = "acctestsbn-conn-example"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
sku = "Basic"
}
resource "azurerm_api_connection" "example" {
name = "example-connection"
resource_group_name = azurerm_resource_group.example.name
Expand Down

0 comments on commit 1774626

Please sign in to comment.