hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.47k stars 4.56k forks source link

How to create a serverless azure logic app #15214

Closed abhinavssingh closed 2 years ago

abhinavssingh commented 2 years ago

Community Note

Terraform (and AzureRM Provider) Version

Terraform v1.1.4 on linux_amd64

Affected Resource(s)

Terraform Configuration Files

How to create a Serverless Logic App
resource "azurerm_logic_app_single_tenant" "example" {
  name                       = "logic-test-azure-functions"
  location                   = azurerm_resource_group.example.location
  type                       = "consumption"
  resource_group_name        = azurerm_resource_group.example.name
}

resource "azurerm_logic_app" "example" {
  name                       = "logic-test-azure-functions"
  location                   = azurerm_resource_group.example.location
  type                       = "consumption"
  resource_group_name        = azurerm_resource_group.example.name
}

resource "azurerm_logic_app_consumption" "example" {
  name                       = "logic-test-azure-functions"
  location                   = azurerm_resource_group.example.location
  resource_group_name        = azurerm_resource_group.example.name
}

Debug Output

on logicapp.tf line 25, in resource "azurerm_logic_app_single_tenant" "example": │ 25: resource "azurerm_logic_app_single_tenant" "example" { │ │ The provider hashicorp/azurerm does not support resource type "azurerm_logic_app_single_tenant".

Panic Output

NA

Expected Behaviour

NA

Actual Behaviour

NA

Steps to Reproduce

  1. terraform apply

Important Factoids

References

tombuildsstuff commented 2 years ago

hi @abhinavssingh

Thanks for opening this issue.

See the azurerm_logic_app_workflow resource (for consumption plan) and the azurerm_logic_app_standard resource which covers both Consumption Plan and when running this dedicated.

This forum is intended to be used for feature enhancements and bugs in the Azure Provider - so that we can keep this forum focused on that we instead ask that broader questions are raised using one of the Community Resources. As such I'm going to close this issue for the moment, but I believe you should be able to get an answer for this using one of the Community Resources.

Thanks!

github-actions[bot] commented 2 years ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.