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.6k stars 4.64k forks source link

Outbound type selection in not available during the Spring App deployment azurerm_spring_cloud_service #21500

Closed jvlingam closed 1 year ago

jvlingam commented 1 year ago

Is there an existing issue for this?

Community Note

Terraform Version

1.0.8

AzureRM Provider Version

3.41.0

Affected Resource(s)/Data Source(s)

azurerm_spring_cloud_service

Terraform Configuration Files

provider "azurerm" {
  features {}
}

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "West Europe"
}

resource "azurerm_application_insights" "example" {
  name                = "tf-test-appinsights"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  application_type    = "web"
}

resource "azurerm_spring_cloud_service" "example" {
  name                = "example-springcloud"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
  sku_name            = "S0"

  config_server_git_setting {
    uri          = "https://github.com/Azure-Samples/piggymetrics"
    label        = "config"
    search_paths = ["dir1", "dir2"]
  }

  trace {
    connection_string = azurerm_application_insights.example.connection_string
    sample_rate       = 10.0
  }

  tags = {
    Env = "staging"
  }
}

Debug Output/Panic Output

Spring App deployed successfully with Load Balancer as its "default" outbound type. I do not have option to control the outbound type as UDR (which is available when I try to create via Azure portal)

Expected Behaviour

Attribute that controls the Outbound type is expected to be there under azurerm_spring_cloud_service so that we make a selection as "Load Balancer" or "UDR"

Actual Behaviour

Spring App deployed successfully with Load Balancer as its "default" outbound type. I do not have option to control the outbound type as UDR (which is available when I try to create via Azure portal)

Steps to Reproduce

  1. terraform init
  2. terraform plan
  3. terraform apply

Important Factoids

No response

References

No response

github-actions[bot] commented 5 months 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.