From 17746266737de71a1d76cacc57bfb70167b57182 Mon Sep 17 00:00:00 2001 From: qiqing <46072066+heiazuo@users.noreply.github.com> Date: Wed, 1 Jun 2022 00:29:36 +0800 Subject: [PATCH] `connections` - `docs example improvement` (#17022) --- website/docs/r/api_connection.html.markdown | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/website/docs/r/api_connection.html.markdown b/website/docs/r/api_connection.html.markdown index 42bf650218a7..b7f439080d11 100644 --- a/website/docs/r/api_connection.html.markdown +++ b/website/docs/r/api_connection.html.markdown @@ -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" @@ -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